Personalized Community is here!
Quickly customize your community to find the content you seek.
Check out the latest Commerce updates!Learn about the key capabilities and features of Dynamics 365 Commerce and experience some of the new features.
Download overview guide | Watch Commerce video
2020 Release Wave 2Discover the latest updates and new features to Dynamics 365 planned through March 2021.
Release overview guides and videos Release Plan | Preview 2020 Release Wave 2 TimelineWatch the 2020 Release Wave 1 virtual launch event
Ace your Dynamics 365 deployment with packaged services delivered by expert consultants. | Explore service offerings
Connect with the ISV success team on the latest roadmap, developer tool for AppSource certification, and ISV community engagements | ISV self-service portal
The FastTrack program is designed to help you accelerate your Dynamics 365 deployment with confidence.
FastTrack Program | Finance TechTalks | Customer Engagement TechTalks | Upcoming TechTalks
Hope all are doing well.
I am trying generate typescript proxy using commerceproxy generator but it throws error "Commerce Proxy Generator failed due to the error: The entity 'SuspendedTransaction' does not have a key defined..".
I have defined the key inside the entity.
Can anyone please tell me, how to resolve the error?
Hi, is SuspendedTransaction your custom entity?
As soon as you define any OData new entity, you should also define primary key on some of its fields using 'Key' attribute. If your entity does not have natural primary key, most probably you need to use complex type instead of using the entity.
Hope you are doing well.
Suspended transaction is our custom entity. I have defined the primary key. I tried to generate the typescript proxy of the "StoreHourSample" project. It is also throwing the same error.
If possible, please share any sample.
Hi, if you can share how your C# classes look like (for which you generate proxies) - we can check what can be wrong
Thanks for your reply...
Basically this issue is fixed some how...
I am getting below error while generating the proxy class. In my reference folder this dll is present with 126.96.36.199 version, still getting error.
Loading core metadata from assembly file C:\Users\Adminb7a0354d41\Desktop\RetailSDK\References\Microsoft.Dynamics.Retail.Proxies.ExtensionsGenerator.9.17.19329.14\build\Microsoft.Dynamics.Retail.RetailServerLibrary.dll.
Loading extended metadata from assembly file C:\Users\Adminb7a0354d41\Desktop\RetailSDK\References\POS.CustomerEx.Extension.dll.
Commerce Proxy Generator failed due to the error: Could not load file or assembly 'System.Web.OData, Version=188.8.131.52, Culture=neutral, PublicKeyToken=31bf3856ad364e35' or one of its dependencies. The system cannot find the file specified..
at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.TypeExtensions.CallMethod(Type source, Object instance, String methodName, Object parameters)
at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.MetadataResolver.LoadEdmxFromAssemblyFile(String filePath, IEnumerable`1 extendedAssemblyPaths, String apiVersion)
at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.MetadataResolver.GetEdmxStringInternal(String metadataPath, Collection`1 extendedMetadataPaths, String apiVersion)
at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.MetadataResolver.GetEdmxString(String metadataPath, Collection`1 extendedMetadataPaths, String apiVersion)
at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.StartUp.Start(String args)
at Microsoft.Dynamics.Commerce.CommerceProxyGenerator.Program.Main(String args)
Thanks for your response....
Now I am able to generate the proxy class.
Could you please share how you resolved this issue? I am facing the same problem. I am also using a custom entity and the key attribute has been specified for one of the data members. I get this error when trying to compile my RetailProxy project and when trying the access the retail server via IIS Express.
Business Applications communities