Skip to main content

Notifications

Microsoft Dynamics CRM (Archived)

"activityMimeAttachment" from CRM2011 to CRMOnline with Kingswaysoft SSIS

Posted on by 417

Hi,

I am making a CRM data migration from CRM 2011 to CRM Online. Unfortunately I encountered a problem where the attachments in the "email" entity is missing.  So I tried to transfer the missing attachments with the entity "activitymimeattachment" but I can not make a link between the activities and the acitivitymimeattachment because of this error:

System.ServiceModel.FaultException<KingswaySoft.DynamicsCrmServices.Soap2011.OrganizationService.OrganizationServiceFault>: The attachment cannot be saved. Either specify activityId or ObjectTypeCode & ObjectId.

When I uncheck the "activityId" everything works fine but I can't see the attachments in the "emails". Do you have any ideas or workarounds?

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "activityMimeAttachment" from CRM2011 to CRMOnline with Kingswaysoft SSIS

    Hi Val Maly,   if you are using an integration tool like scribe, make sure you have the field activityid mapped and also, remove the links to the fields objectid, objecttypecode and attachmentid.   if you are using the sdk, make sure you do not populate those fields either.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: "activityMimeAttachment" from CRM2011 to CRMOnline with Kingswaysoft SSIS

    Could you please provide more details on how you solve this problem. I have experience same issue.

    Thanks,

    Val

  • Verified answer
    bernhards Profile Picture
    bernhards 417 on at
    RE: "activityMimeAttachment" from CRM2011 to CRMOnline with Kingswaysoft SSIS

    Hi Aiden,

    thanks it is solved now. The problem is you can not set the objecttype, objecttypecode with the activityid. Also the attachementid must be unchecked.

    Now we can see the attachments in the new system.

    Thanks,

    Bernhard

  • Suggested answer
    Aiden Kaskela Profile Picture
    Aiden Kaskela 19,692 on at
    RE: "activityMimeAttachment" from CRM2011 to CRMOnline with Kingswaysoft SSIS

    Hi,

    The error says that it can't figure out what to attach the file to. Are you setting the object type code, to tell it the entity type?

    Thanks,

     Aiden

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans