locked
Error upgrading CRM 4.0 to 2011 RRS feed

  • Question

  • Hello,

    I am in the process of upgrading a 4.0 dB to 2013. Obviously the first step is to upgrade the dB to 2011. Upgrade to 2011 goes on for couple of hours and almost towards the end, it fails with the following error message. Looks like the issue is related to a WF. It is extremely difficult to go back to the 4.0 and disable this WF and get another copy of 165GB database. Is there a way around this error by fixing the backup copy of the dB I currently have. Maybe, running a query against the SQL to find this WF and disable it in SQL? Thanks. Here is the error log.

    Error|
    System.Exception: Action Microsoft.Crm.Tools.Admin.UpgradeWorkflowsAction
    failed. ---> Microsoft.Crm.CrmException: Error generating UiData --->
    System.FormatException: Guid should contain 32 digits with 4 dashes
    (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).

       at System.Guid.GuidResult.SetFailure(ParseFailureKind failure,
    String failureMessageID, Object failureMessageFormatArgument, String
    failureArgumentName, Exception innerException)

       at System.Guid.TryParseGuidWithNoStyle(String guidString,
    GuidResult& result)

       at System.Guid.TryParseGuid(String g, GuidStyles flags,
    GuidResult& result)

       at System.Guid..ctor(String g)

       at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.ReadPrimitiveExression(WorkflowAttributeType
    type, String stringValue)

       at
    Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.ReadEvaluateExression(EvaluateExpression
    activity, String attributeName, String targetEntityName)

       at Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.ReadExpression(Collection`1
    activities, Type endActivityType, Boolean customActivity, Int32&
    activityIndex)

       at
    Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.ReadBranchStep(StepBase
    parentStep, Collection`1 sequenceActivities, Int32& activityIndex)

       at
    Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.ReadConditionStep(Boolean
    wait, ConditionSequence sequence)

       at
    Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.ReadCompositeStep(String
    stepId, String description, Activity activity, Collection`1 variables)

       at
    Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.ReadSingleStep(Activity
    activity)

       at
    Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.GenerateUIData()

       --- End of inner exception stack trace ---

       at
    Microsoft.Crm.Workflow.ObjectModel.UIDataGenerator.GenerateUIData()

       at
    Microsoft.Crm.Tools.Admin.UpgradeWorkflowsAction.VerifyBackConversionToUIData(Entity
    workflow, ExecutionContext context, IMetadataProvider metadataProvider, Int32
    primaryEntityOtc)

       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 para<o:p></o:p>




    • Edited by RickySMX Friday, July 25, 2014 3:53 AM
    Friday, July 25, 2014 3:52 AM

All replies

  • Direct SQL modifications would not be supported.  There are too many dependencies that could be messed up along the way.

    If going back to the source and turning off the workflows is not an option, then you may need to set up a separate CRM 4.0 environment, import the database you have and then make the changes needed through the UI.  Then create a new backup from that to use in the upgrade to CRM 2011.

    Also, you may want to look at deleting the completed system jobs if possible.  And remember that they will need to be hard deleted from 4.0 since this is only done once ever 24 hours in CRM 4.0.  Just to help reduce the database size and upgrade time later on.


    Jason Peterson

    Friday, July 25, 2014 3:21 PM