microsoft / Dynamics-AX-Integration

Dynamics AX Integration samples and demos.
287 stars 356 forks source link

Unable to cast object of type 'Microsoft.OData.Edm.BadType' to type 'Microsoft.OData.Edm.IEdmCollectionType'. #71

Open zameer218 opened 6 years ago

zameer218 commented 6 years ago

Hi There,

I`m unable to build the solution as I get the following error: Severity Code Description Project File Line Suppression State Error Running transformation: System.InvalidCastException: Unable to cast object of type 'Microsoft.OData.Edm.BadType' to type 'Microsoft.OData.Edm.IEdmCollectionType'. at Microsoft.VisualStudio.TextTemplatingEC662FFD71C0FA8F6ACC039AFE7A794F35F761C8B54636650AD72EE4FCC506A4CFBF70E37351EE697543315BD314823A3429BF57EF70F6A0DC082305F7276095.GeneratedTextTransformation.Utils.GetClrTypeName(IEdmTypeReference edmTypeReference, Boolean useDataServiceCollection, ODataClientTemplate clientTemplate, CodeGenerationContext context, Boolean addNullableTemplate, Boolean needGlobalPrefix, Boolean isOperationParameter, Boolean isEntitySingleType) in :line 2802 at Microsoft.VisualStudio.TextTemplatingEC662FFD71C0FA8F6ACC039AFE7A794F35F761C8B54636650AD72EE4FCC506A4CFBF70E37351EE697543315BD314823A3429BF57EF70F6A0DC082305F7276095.GeneratedTextTransformation.ODataClientTemplate.WriteNamespace(String fullNamespace) in :line 1298 at Microsoft.VisualStudio.TextTemplatingEC662FFD71C0FA8F6ACC039AFE7A794F35F761C8B54636650AD72EE4FCC506A4CFBF70E37351EE697543315BD314823A3429BF57EF70F6A0DC082305F7276095.GeneratedTextTransformation.ODataClientTemplate.WriteNamespaces() in :line 1209 at Microsoft.VisualStudio.TextTemplatingEC662FFD71C0FA8F6ACC039AFE7A794F35F761C8B54636650AD72EE4FCC506A4CFBF70E37351EE697543315BD314823A3429BF57EF70F6A0DC082305F7276095.GeneratedTextTransformation.ODataClientTemplate.TransformText() in :line 1201 at Microsoft.VisualStudio.TextTemplatingEC662FFD71C0FA8F6ACC039AFE7A794F35F761C8B54636650AD72EE4FCC506A4CFBF70E37351EE697543315BD314823A3429BF57EF70F6A0DC082305F7276095.GeneratedTextTransformation.TransformText() in :line 93 2802

Can anyone please help me fix this issue.

Regards,