Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

Data Migration ADF CopyData- Azure SQL to D365 CE - The 'Create' method does not support entities of type 'activityparty'.

(0) ShareShare
ReportReport
Posted on by 5

We are migrating Emails from Azure SQL database to Email entity in D365 CE using Azure Data Factory (Copy Data). While creating the Activity party record for the emails, we are getting the below error.

Does anybody know how to resolve this?

ErrorCode=DynamicsOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=Dynamics operation failed with error code: -2147219456, error message: The 'Create' method does not support entities of type 'activityparty'. MessageProcessorCache returned MessageProcessor.Empty. .,Source=Microsoft.DataTransfer.ClientLibrary.DynamicsPlugin,''Type=System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=9.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]],Message=The creator of this fault did not specify a Reason.,Source=Microsoft.DataTransfer.ClientLibrary.DynamicsPlugin,'


Error Details

  • PB_ Profile Picture
    PB_ 5 on at
    RE: Data Migration ADF CopyData- Azure SQL to D365 CE - The 'Create' method does not support entities of type 'activityparty'.

    Hi Leah,

    Thanks for your response.

    We are migrating Email records from Azure SQL database to D365 CE. In order to populate the To & From fields, we need to populate ActivityParty records.

     // Create the 'From:' activity party for the email

               var fromParty = new ActivityParty

               {

                   PartyId = new EntityReference(SystemUser.EntityLogicalName, userId)

               };

               // Create the 'To:' activity party for the email

               var toParty = new ActivityParty

               {

                   PartyId = new EntityReference(Contact.EntityLogicalName, contactId)

               };

               Console.WriteLine("Created activity parties.");

               // Create an e-mail message.

               var email = new Email

               {

                   To = new ActivityParty[] { toParty },

                   From = new ActivityParty[] { fromParty },

                   Subject = "SDK Sample e-mail",

                   Description = "SDK Sample for SendEmail Message.",

                   DirectionCode = true

               };

               emailId = service.Create(email);

    Do you know how we can populate those fields without system allowing us to create those records? Do we need to pass that information in specific field like in Kingsway soft migration tool?

    www.kingswaysoft.com/.../Construct-ActivityParty-JSON-Values-for-Dataverse-Activity-Entity-Migration

    www.inogic.com/.../

  • Suggested answer
    Leah Ju Profile Picture
    Leah Ju Microsoft Employee on at
    RE: Data Migration ADF CopyData- Azure SQL to D365 CE - The 'Create' method does not support entities of type 'activityparty'.

    Hi Partner,

    Email is one Activity entity, and it involves four activity party types:

    An activity party represents a person or group associated with an activity. An activity can have multiple activity parties.

    https://learn.microsoft.com/en-us/dynamics365/customerengagement/on-premises/developer/activityparty-entity?view=op-9-1 

    pastedimage1669801331346v3.png

    And Create is not supported in ActivityParty, the only supported methods is RetrieveMultiple, which is by-design.

    ActivityParty entity reference (Dynamics 365 Customer Engagement) | Microsoft Learn

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey Pt 2

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,861 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,540 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans