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

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Issues with Importing organisation from CRM 4 to CRM 2011

(0) ShareShare
ReportReport
Posted on by 935

Hi All

We are facing issues with importing a CRM 4 organisation into CRM 2011, we get the following error.

System.Exception: Action Microsoft.Crm.Tools.Admin.UpgradeWorkflowActivitiesAction failed. ---> Microsoft.Crm.CrmException: The custom activity does not contain a valid CrmWorkflowActivity attribute
at Microsoft.Crm.Tools.Admin.UpgradeWorkflowActivitiesAction.CustomActivityData.LoadActivityParameters()
at Microsoft.Crm.Tools.Admin.UpgradeWorkflowActivitiesAction.CustomActivityData.get_ActivityName()
at Microsoft.Crm.Tools.Admin.UpgradeWorkflowActivitiesAction.MarshalByRefWorkflowActivityAction.UpgradeCustomActivityBatch(Int32 batchSize, Guid organizationId)
at Microsoft.Crm.Tools.Admin.UpgradeWorkflowActivitiesAction.MarshalByRefWorkflowActivityAction.UpgradeCustomActivityBatch(Int32 batchSize, Guid organizationId)
at Microsoft.Crm.Tools.Admin.UpgradeWorkflowActivitiesAction.Upgrade(Guid organizationId)
at Microsoft.Crm.Tools.Admin.UpgradeWorkflowActivitiesAction.Do(IDictionary parameters)
at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)

Now, I have done some research and followed the instructions in 

http://blog.cajunmchicken.com/2011/04/migration-to-crm-2011-custom-activity.html

But removing these dlls doesn't resolve the problem because when I try to import the organisation again, it says that it is successful but it doesn't import any of the components, only the reports.

My question is, is there a way to find out what the custom attribute is? As the error message (stack trace) is not very helpful ie: it doesn't identify the custom activity that is not valid.

Kind Regards

Charles

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Shahid H Shaikh Profile Picture
    495 on at
    RE: Issues with Importing organisation from CRM 4 to CRM 2011

    Hello Charles,

    One the following 2 reasons can cause the upgrading workflow error –

    1, If your V4 workflow activity has dependency on Microsoft.Crm.SDK.dll (Version 4.0.0.0), and your V2011 is in RTM version.  

    2, If the CrmWorkflowActivityAttribute of your V4 custom workflow activity is null or empty.

    You can try re-importing after removing the custom workflow activities from the CRM 4.0 Deployment.

  • Suggested answer
    VTec Profile Picture
    on at
    RE: Issues with Importing organisation from CRM 4 to CRM 2011

    Hi All,

    Not sure if it helps anyone anymore, but I have managed to find a workaround when I have unregistered custom workflow assemblies from CRM 4.0 and then placed them temporarily to GAC on the CRM 2011 during re-import of CRM Org. (after the actual upgrade is done).

    I id not have to delete any 'waiting' workflows and they resumed when the workflow dlls were registered back in CRM 2011 (you can use a solution) and removed from GAC... It s workaround but it might be useful when it is essential to preserve the state of workflows.

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
UllrSki Profile Picture

UllrSki 2

#3
SC-08081331-0 Profile Picture

SC-08081331-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans