13
2013
MAP toolkit v6.5 task generator failure error: Document Generator: An exception occurred – Unable to determine the identity of domain
In one of my environment MAP toolkit v6.5 is configured, when I ran discovery for SQL server, it resulted in around 1000+ SQL servers, now while generating SQL Server discovery proposal report task generator started failing and following error was found logged in file Microsoft.AssessmentPlatform.UI.Console.log located in %Program Files%\Microsoft Assessment and Planning Toolkit\bin\log\,
Note: We are not able to upgrade to latest MAP version (v8.0 at the time of writing this post) because of Windows version limitation as new toolkit can’t be installed on Windows Server 2003.
Error:
| Application: Microsoft.AssessmentPlatform.UI.Console.exe Build 6.5.4228.0 retail
| Platform: Win32NT 5.2.3790.131072 Service Pack 2
| UI Culture: en-US
| Culture: en-US
| Architecture: 32-bit
| OS Product Name: Microsoft(R) Windows(R) Server 2003, Standard Edition
<2013-06-10 09:09:03.06 TID-1@ProgressPage,I> ProgressPage.FormClosingHandler: Closing reason: UserClosing
<2013-06-10 09:10:25.01 TID-1@UICommonSingleton,E> An exception occurred in method: RemoveSavedWizardSettings()
|Exception message: Object reference not set to an instance of an object.
|Stack trace:
| at Microsoft.AssessmentPlatform.UI.Console.WizardManager.RemoveSavedWizardSettings()
<2013-06-10 09:10:42.03 TID-11@TaskProcessor,I> Run: Processing task: ‘Generate Proposals’
<2013-06-10 09:10:42.03 TID-11@TaskProcessor,I> StartWorkers: Starting worker thread: ‘Generate proposals’
<2013-06-10 09:10:42.03 Generate proposals@TaskProcessor,I> RunWorker: Running worker: ‘Generate proposals’
<2013-06-10 09:10:42.03 Generate proposals@DocumentGenerationWorker,I> DocGenStartedEventHandler() – Start event.
<2013-06-10 09:10:42.03 Generate proposals@DocumentManager,I> Generate proposal SQLServerProposal
<2013-06-10 09:10:42.06 Generate proposals@DocumentSigning,I> DocumentSigning:Load Config File DocumentSigningConfig.xml
<2013-06-10 09:10:42.17 Generate proposals@DocumentGenerator,I> GenerateDocument: SQLServerProposal-06-10-2013-09h10m42s
<2013-06-10 09:10:45.81 TID-1@ProgressPage,I> ProgressPage.FormClosingHandler: Closing reason: UserClosing
<2013-06-10 09:17:32.40 Generate proposals@DocumentGenerator,E> Document Generator: An exception occurred – Unable to determine the identity of domain.
| at System.IO.IsolatedStorage.IsolatedStorage._GetAccountingInfo(Evidence evidence, Type evidenceType, IsolatedStorageScope fAssmDomApp, Object& oNormalized)
| at System.IO.IsolatedStorage.IsolatedStorage.GetAccountingInfo(Evidence evidence, Type evidenceType, IsolatedStorageScope fAssmDomApp, String& typeName, String& instanceName)
| at System.IO.IsolatedStorage.IsolatedStorage._InitStore(IsolatedStorageScope scope, Evidence domainEv, Type domainEvidenceType, Evidence assemEv, Type assemblyEvidenceType, Evidence appEv, Type appEvidenceType)
| at System.IO.IsolatedStorage.IsolatedStorage.InitStore(IsolatedStorageScope scope, Type domainEvidenceType, Type assemblyEvidenceType)
| at System.IO.IsolatedStorage.IsolatedStorageFile.GetStore(IsolatedStorageScope scope, Type domainEvidenceType, Type assemblyEvidenceType)
| at MS.Internal.IO.Packaging.PackagingUtilities.ReliableIsolatedStorageFileFolder.GetCurrentStore()
| at MS.Internal.IO.Packaging.PackagingUtilities.ReliableIsolatedStorageFileFolder..ctor()
| at MS.Internal.IO.Packaging.PackagingUtilities.GetDefaultIsolatedStorageFile()
| at MS.Internal.IO.Packaging.PackagingUtilities.CreateUserScopedIsolatedStorageFileStreamWithRandomName(Int32 retryCount, String& fileName)
| at MS.Internal.IO.Packaging.SparseMemoryStream.SwitchModeIfNecessary()
| at MS.Internal.IO.Packaging.SparseMemoryStream.Write(Byte[] buffer, Int32 offset, Int32 count)
| at MS.Internal.IO.Packaging.CompressEmulationStream.Write(Byte[] buffer, Int32 offset, Int32 count)
| at MS.Internal.IO.Packaging.CompressStream.Write(Byte[] buffer, Int32 offset, Int32 count)
| at MS.Internal.IO.Zip.ProgressiveCrcCalculatingStream.Write(Byte[] buffer, Int32 offset, Int32 count)
| at MS.Internal.IO.Zip.ZipIOModeEnforcingStream.Write(Byte[] buffer, Int32 offset, Int32 count)
| at System.Xml.XmlUtf8RawTextWriter.FlushBuffer()
| at System.Xml.XmlUtf8RawTextWriter.WriteAttributeTextBlock(Char* pSrc, Char* pSrcEnd)
| at System.Xml.XmlUtf8RawTextWriter.WriteString(String text)
| at System.Xml.XmlWellFormedWriter.WriteString(String text)
| at DocumentFormat.OpenXml.OpenXmlElement.WriteAttributesTo(XmlWriter xmlWriter)
| at DocumentFormat.OpenXml.OpenXmlElement.WriteTo(XmlWriter xmlWriter)
| at DocumentFormat.OpenXml.OpenXmlCompositeElement.WriteContentTo(XmlWriter w)
| at DocumentFormat.OpenXml.OpenXmlElement.WriteTo(XmlWriter xmlWriter)
| at DocumentFormat.OpenXml.OpenXmlCompositeElement.WriteContentTo(XmlWriter w)
| at DocumentFormat.OpenXml.OpenXmlElement.WriteTo(XmlWriter xmlWriter)
| at DocumentFormat.OpenXml.OpenXmlPartRootElement.SaveToPart(OpenXmlPart openXmlPart)
| at DocumentFormat.OpenXml.OpenXmlPartRootElement.Save()
| at Microsoft.AssessmentPlatform.DocumentGenerationEngine.Docgen.UpdateTableOfContentsAndCloseDocument()
| at Microsoft.AssessmentPlatform.DocumentGenerationEngine.Docgen.Generate(DataAccessLayer dataAccessLayer, String documentDataXmlFileName, String outputFileName, String installPath, String customTemplatePath, String masterTemplatePath)
| at Microsoft.AssessmentPlatform.DocumentGenerationEngine.DocumentCreator.CreateDocument(Boolean createProposal, String databaseServerName, String databaseName, String xmlFilePath, String inputTemplateName, String outputDirectory, String outputFileName, String masterTemplatePath, String customTemplatePath)
| at Microsoft.AssessmentPlatform.DocumentGenerationEngine.DocumentGenerator.GenerateDocument(String databaseServerName, String databaseName, String masterTemplatePath, String customTemplatePath)
| at Microsoft.AssessmentPlatform.DocumentGenerationEngine.DocumentGenerator.CreateDocument(String databaseServerName, String databaseName, String[] scenarioXml, String masterTemplatePath, String customTemplatePath)
<2013-06-10 09:17:32.40 Generate proposals@DocumentGenerator,I> Document Generator: Getting localized error to flag back
<2013-06-10 09:17:32.40 Generate proposals@DocumentGenerator,I> Document Generator: Raising Failed Event!
<2013-06-10 09:17:32.40 Generate proposals@DocumentGenerationWorker,I> DocGenProgressHandler() – Progress event.
<2013-06-10 09:17:32.40 Generate proposals@DocumentManager,I> Document Manager completed with Failure
<2013-06-10 09:17:32.40 Generate proposals@DocumentGenerationWorker,I> DocGenCompletedEventHandler() – Completed event.
<2013-06-10 09:17:32.40 Generate proposals@TaskProcessor,I> WorkerCompleted: Worker: ‘Generate proposals’
<2013-06-10 09:17:32.40 TID-11@TaskProcessor,I> Run: Completed. Status: Failed
<2013-06-10 09:17:32.40 TID-11@ProgressPage,I> ProgressPage.TaskCompletedCallback: sender: Microsoft.AssessmentPlatform.UI.Console.Tasks.TaskProcessor
<2013-06-10 09:35:21.95 TID-1@SqmSessionHelper,I> Upload(): 0 files queued. Skipping upload.
<2013-06-10 09:35:21.95 TID-1@MAPSMain,I> ConsoleMain.Main: Application exiting.
Workaround/Solution:
When I reached Microsoft map feedback team @ mapfdbk@microsoft.com they provided following inputs,
This looks like the problem that is due to a limitation in the document generation engine we use and the bug was fixed in version 7.0. However, MAP 7 is no longer available and there were significant database changes in MAP 8, so you cannot upgrade older databases. Going forward, you should install MAP 8 and perform new inventory scans.
For now, if you don’t need the proposal then the workaround is quite simple:
1. Open the proposal template “SQLServerProposal.docx” located in %Program Files%\Microsoft Assessment and Planning Toolkit\DocumentTemplate\en
2. Find Table 3. SQL Server Component Details per Machine
3. Delete the comment(Right Click Comment > Delete Comment)
4. Save the document
5. Open MAP and run the Report/Proposal generation again
After modifying the SQLServerProposal.docx template as advised, report ran fine and I have extracted that Table 3 details from the excel sheet generated along with proposals as Table three consists of those details only.
So final conclusion is this: There is known issue with .docx document generator engine of MAP toolkit v6.5, this was fixed in v7.0 but as it was not available for download anywhere and MAP toolkit v8.0 doesn’t support the database migration from v6.5 to v8.0 hence the solution is either use above workaround and live with it or to upgrade to v8.0 or latest (provided you already have Windows server 2008+ available) and re-run discovery again.

Leave a comment
Subscribe to this blog via Email
Old Posts
- November 2017 (3)
- October 2017 (4)
- September 2017 (2)
- May 2017 (1)
- April 2017 (1)
- July 2016 (3)
- May 2016 (1)
- April 2016 (1)
- February 2016 (2)
- January 2016 (1)
- October 2015 (1)
- September 2015 (1)
- August 2015 (1)
- July 2015 (2)
- June 2015 (3)
- April 2015 (1)
- March 2015 (1)
- December 2014 (1)
- September 2014 (2)
- April 2014 (1)
- January 2014 (3)
- October 2013 (2)
- September 2013 (2)
- August 2013 (4)
- July 2013 (1)
- June 2013 (2)
- May 2013 (5)
- April 2013 (3)
- March 2013 (1)
- February 2013 (9)
- January 2013 (11)
- December 2012 (14)
- November 2012 (3)
- October 2012 (4)
- July 2012 (2)
- June 2012 (3)
- May 2012 (2)
- April 2012 (8)
- March 2012 (6)
- February 2012 (3)
- January 2012 (1)
- December 2011 (5)
- November 2011 (8)
- October 2011 (5)
- September 2011 (3)
- August 2011 (3)
- July 2011 (3)
- May 2011 (1)
- November 2010 (1)
Tags
Calender
M | T | W | T | F | S | S |
---|---|---|---|---|---|---|
« Nov | ||||||
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
View Post by Categories
Recent Articles
- Setting up Always ON Availability Group in Multi Subnet Cluster – Recommendations
- Configuring Replication with Always ON Availability Group
- Login failed for user ‘DOMAIN\COMPUTER$’. Reason: Could not find a login matching the name provided. [CLIENT: ]
- Modern Servicing Model (Service Pack and Cumulative Updates) for SQL Server 2017 and onwards
- Fix: SSMS 2012 opening Debug window when pressing F5