locked
CRM 4 to 2011, Workflow upgrade fails RRS feed

  • Question

  • Hello,

    Im trying to import a CRM 4 database to 2011 and get the error below.  The 4 database is restored to a new server in same AD. The import worked fine on a testserver in a different AD.

    Any ideas ?

    00:07:08|   Info| UpgradeWorkflowsAction : Upgrading workflow data
    00:07:08|  Error| Workflow c3258daa-e42f-de11-9c5b-001aa0057c6e failed upgrade with exception: System.InvalidCastException: [A]Microsoft.Crm.Workflow.ObjectModel.WorkflowStep cannot be cast to [B]Microsoft.Crm.Workflow.ObjectModel.WorkflowStep. Type A originates from 'Microsoft.Crm, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' in the context 'Default' at location 'C:\Windows\assembly\GAC_MSIL\Microsoft.Crm\4.0.0.0__31bf3856ad364e35\Microsoft.Crm.dll'. Type B originates from 'Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' in the context 'Default' at location 'C:\Program Files\Microsoft Dynamics CRM\Tools\Microsoft.Crm.dll'.
       at Microsoft.Crm.Tools.Admin.UpgradeWorkflowsAction.Upgrade(Guid organizationId).
    00:07:08|   Info| Upgraded 0 records from WorkflowBase in 00:00:00.3803139 ([d].hh:mm:ss).
    00:07:08|   Info| Average performance for upgrade action: 0 records per second.
    00:07:08|  Error| System.Exception: Handlingen Microsoft.Crm.Tools.Admin.UpgradeWorkflowsAction mislyktes. ---> System.InvalidCastException: [A]Microsoft.Crm.Workflow.ObjectModel.WorkflowStep cannot be cast to [B]Microsoft.Crm.Workflow.ObjectModel.WorkflowStep. Type A originates from 'Microsoft.Crm, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' in the context 'Default' at location 'C:\Windows\assembly\GAC_MSIL\Microsoft.Crm\4.0.0.0__31bf3856ad364e35\Microsoft.Crm.dll'. Type B originates from 'Microsoft.Crm, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' in the context 'Default' at location 'C:\Program Files\Microsoft Dynamics CRM\Tools\Microsoft.Crm.dll'.
       at Microsoft.Crm.Tools.Admin.UpgradeWorkflowsAction.Upgrade(Guid organizationId)
       at Microsoft.Crm.Tools.Admin.UpgradeWorkflowsAction.Do(IDictionary parameters)
       at Microsoft.Crm.Setup.Common.CrmAction.ExecuteAction(CrmAction action, IDictionary parameters, Boolean undo)
       --- End of inner exception stack trace ---, Error, RetryCancel, Option1

    Monday, June 25, 2012 5:43 AM

All replies

  • I had CRM 4 email router installed on the 2011 server.
    Upgrade ok after uninstalling email router..

    Tuesday, June 26, 2012 6:21 AM