web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
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

I have the same question (0)
  • Suggested answer
    Leah Ju Profile Picture
    Microsoft Employee on at

    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

  • PB_ Profile Picture
    5 on at

    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/.../

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Martin Dráb Profile Picture

Martin Dráb 60 Most Valuable Professional

#2
#ManoVerse Profile Picture

#ManoVerse 51

#3
Satyam Prakash Profile Picture

Satyam Prakash 42

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans