Hi All,
I am getting below error while calling
Microsoft.Dynamics.AX.Framework.DocumentRender.DocumentGeneratorHelper::GenerateDocument. It was running fine and out of no where it got stuck to this error. Same code is running fine in Test environment. Usually this error occurs when running CIL.
Can anyone help me on this? I have tried many things,
- Running FULL CIL
- Deleting XPPIL folder, restarting AOS and running Full CIL and DB Synchronization.
- Debugging didn't help much.
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
at System.Collections.ObjectModel.KeyedCollection`2.get_Item(TKey key)
at Microsoft.Dynamics.AX.Framework.Services.Client.QueryFieldMetadataProxyExtensions.AsQueryFieldMetadata(QueryFieldMetadata queryFieldProxy, TableMetadata tableMetadata)
at Microsoft.Dynamics.AX.Framework.Services.Client.QueryMetadataProxyExtensions.QueryDataSourceProxyTransformer(QueryMetadata query, IQueryDataSourceMetadataProxy dataSource, TypeExpansionMode typeExpansionMode)
at Microsoft.Dynamics.AX.Framework.Services.Client.QueryMetadataProxyExtensions.QueryDataSourceProxyTransformer(QueryMetadata query, IQueryDataSourceMetadataProxy dataSource, TypeExpansionMode typeExpansionMode)
at Microsoft.Dynamics.AX.Framework.Services.Client.QueryMetadataProxyExtensions.AsQueryMetadata(IQueryMetadataProxy queryMetadataProxy, TypeExpansionMode typeExpansionMode)
at Microsoft.Dynamics.AX.Framework.Services.Client.QueryMetadata.Deserialize(Object serializedQueryMetadata, QueryMetadata& serviceContract)
at Microsoft.Dynamics.AX.Framework.OfficeAddin.DynamicsAX.DynamicsPersistenceProvider.Deserialize(DataSourceManager dataSourceManager, String queryDefinitionXml, Boolean validateSchema)
at Microsoft.Dynamics.AX.Framework.OfficeAddin.DynamicsAX.DynamicsPersistenceProvider.Open(DataSourceManager dataSourceManager, DataSourceXmlPart xmlPart, Boolean shouldCache)
at Microsoft.Dynamics.AX.Framework.DocumentRender.DocumentGenerator.GetDataSet(DocumentDataSource documentDataSource, DocumentXmlPart documentXmlPart)
at Microsoft.Dynamics.AX.Framework.DocumentRender.DocumentGenerator.Create()
at Microsoft.Dynamics.AX.Framework.DocumentRender.DocumentGeneratorHelper.GenerateOutputDocument(Uri outPath, AuthenticationType authenticationType, MemoryStream inputStream)
at Microsoft.Dynamics.AX.Framework.DocumentRender.DocumentGeneratorHelper.GenerateDocument(Uri inputPath, AuthenticationType inputAuthType, Uri outPath, AuthenticationType outAuthType, String tableName, String fieldName, String fieldValue, String company, String partitionKey, String aosHostAndWsdlPort)