Dynamics Template-based Code Generator – Supercharged – Overview | Mage Series

You may also like...

4 Responses

  1. abdulimp says:

    Hi! This is a great article about Dynamics Template-based Code Generator. I appreciate you explaining the benefits and improvements of this tool. It’s interesting to know that the tool replaces SDK-specific properties with .NET value-type and primitive types, and generates only what is needed. The feature of generating metadata, including field logical and schema names and localised labels, is also very helpful. Thanks for sharing!

  2. Nipper Napp says:

    Hey there. Love the generator. But getting serialization errors when attempting to create new early-bound classes. The error mentions the attributes missing the DataMemberAttribute. But the classes have the DataContract attribute.

    The full XML error below. Would appreciate advice!

    ======================================================================

    Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Unexpected exception from plug-in (Execute): FPC.CRM.OnPremise.Plugins.ProcessSegregationStaging: System.Exception: Unhandled Exception in SegregationTaskHelper(): Type ‘FPC.CRM.OnPremise.Plugins.GeneratedEntity`1[FPC.CRM.OnPremise.Plugins.Segregation+RelationName]’ cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.Detail:

    a5ac3d1e-852d-45ec-8e3f-b1a0e204115e
    -2147220956

    Unexpected exception from plug-in (Execute): FPC.CRM.OnPremise.Plugins.ProcessSegregationStaging: System.Exception: Unhandled Exception in SegregationTaskHelper(): Type ‘FPC.CRM.OnPremise.Plugins.GeneratedEntity`1[FPC.CRM.OnPremise.Plugins.Segregation+RelationName]’ cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. If the type is a collection, consider marking it with the CollectionDataContractAttribute. See the Microsoft .NET Framework documentation for other supported types.
    2023-10-18T15:46:25.1546759Z
    false

    [FPC.CRM.OnPremise.Plugins: FPC.CRM.OnPremise.Plugins.ProcessSegregationStaging]
    [7cafe2e2-1d6c-ee11-81a8-0050563b3dc7: FPC.CRM.OnPremise.Plugins.ProcessSegregationStaging: Create of tcs_segregationstaging]

    • Hello, Nipper,
      Thank you for reporting the issue. I would appreciate reporting issues on GitHub, as it’s easier to track and more efficient.

      What was the plugin trying to do when the exception was thrown?

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Social Share Buttons and Icons powered by Ultimatelysocial
LinkedIn2k
LinkedIn
Share
Facebook200
YouTube300
YouTube