Jun
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.

Download PDF

About the Author: Nitin G

Indian born, trekker, biker, photographer, lover of monsoons. I've been working full time with SQL Server since year 2005 and blogs to post the content aquired during my research on new topics or fixing issues faced by me as a DBA while working in different kind of projects, hope some of my posts may helps others in SQLDBA community. Everything you read on my blog is my own personal opinion and any code is provided "AS-IS" with no warranties!

Leave a comment

Subscribe to this blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 259 other subscribers

Translate this blog!

EnglishFrenchGermanItalianPortugueseRussianSpanish

Calender

September 2020
M T W T F S S
« Nov    
 123456
78910111213
14151617181920
21222324252627
282930  

View Post by Categories

%d bloggers like this: