Hi All,
Getting the below error while getting the OData code after entering the URL and hit save in "tt" file.
URL is public const string MetadataDocumentUri = "xxx.sandbox.ax.dynamics.com/data$metadata";
VS: 2017
Running transformation: System.InvalidCastException: Unable to cast object of type 'Microsoft.OData.Edm.AmbiguousTypeBinding' to type 'Microsoft.OData.Edm.IEdmCollectionType'.
One of the forum https://community.dynamics.com/ax/f/33/t/266164 given that use try catch block at some place and need to change the ItemType DataEntity name. But after doing this change also getting DataEntities already contains "ItemType". So to avoid this, made a change in Enum name from "ItemType" to "ItemTypeE", and commented the other lines where error is throwing. Now no errors found but doing these changes again and again takes 3 to 4 hours as VS is restarting automatically because of huge size of ODataClient.cs file. I am doing this class generator again because to update Data Entities.
Is there any way that I can reduce this change in VS without hang more time?
*This post is locked for comments
I have the same question (0)