Hi all,
I upgraded a CRM 2011 UR18 organization to CRM 2013 SP1 UR4 (not in place, I used two different environments) without issues (no errors in log file).
After the upgrade I tried to import a solution with some workflows, and I received the following error:
'Workflow' entity doesn't contain attribute with Name = 'Workflowid'
Enabling the trace logging I can see the following:
>----- dump exception/fault tree (TryConvertToFaultExceptionInternal: before) -----
>>>>>> EXCEPTION: 0
>Type: Microsoft.Crm.CrmException
>ErrorCode: 0x80040216: ErrorCodes.UnExpected
>Message (96): Error while importing workflow {f88f7cc7-1d3f-46ca-9ff4-74be651b6f97} name Close Engagement Plan
>>>>>> StackTrace (2395):
> at Microsoft.Crm.Extensibility.VersionedPluginProxyStepBase.Execute(PipelineExecutionContext context)
> at Microsoft.Crm.Extensibility.Pipeline.Execute(PipelineExecutionContext context)
> at Microsoft.Crm.Extensibility.MessageProcessor.Execute(PipelineExecutionContext context)
> at Microsoft.Crm.Extensibility.InternalMessageDispatcher.Execute(PipelineExecutionContext context)
> at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.ExecuteInternal(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId, Version endpointVersion)
> at Microsoft.Crm.Extensibility.ExternalMessageDispatcher.Execute(IInProcessOrganizationServiceFactory serviceFactory, IPlatformMessageDispatcherFactory dispatcherFactory, String messageName, String requestName, Int32 primaryObjectTypeCode, Int32 secondaryObjectTypeCode, ParameterCollection fields, CorrelationToken correlationToken, CallerOriginToken originToken, UserAuth userAuth, Guid callerId, Guid callerRegardingObjectId, UserType userType, Guid transactionContextId, Int32 invocationSource, Nullable`1 requestId)
> at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequestRequestWithInstrumentation(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, UserAuth userAuth, Guid targetUserId, OrganizationContext context, Boolean returnResponse, Boolean checkAdminMode, Object operation, UserType targetUserType)
> at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.ExecuteRequest(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext)
> at Microsoft.Crm.Extensibility.OrganizationSdkServiceInternal.Execute(OrganizationRequest request, CorrelationToken correlationToken, CallerOriginToken callerOriginToken, WebServiceType serviceType, Boolean checkAdminMode, ExecutionContext executionContext)
><<<<< StackTrace:
>no PluginTrace
>>>>>> EXCEPTION: 1
>Type: Microsoft.Crm.CrmException
>ErrorCode: 0x80040216: ErrorCodes.UnExpected
>Message (96): Error while importing workflow {f88f7cc7-1d3f-46ca-9ff4-74be651b6f97} name Close Engagement Plan
>>>>>> StackTrace (463):
> at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport(String[] ImportEntities)
> at Microsoft.Crm.Tools.ImportExportPublish.ImportXml.RunImport()
> at Microsoft.Crm.WebServices.ImportXmlService.ImportSolutionSkipCapable(Boolean overwriteUnmanagedCustomizations, Boolean publishWorkflows, Byte[] customizationFile, Guid importJobId, Boolean convertToManaged, Boolean skipProductUpdateDependencies, Boolean holdingSolution, ExecutionContext context)
><<<<< StackTrace:
>PluginTrace <null>
>>>>>> EXCEPTION: 2
>Type: Microsoft.Crm.Metadata.AttributeMetadataNotFoundException
>ErrorCode: 0x80041103:
>Message (69): 'Workflow' entity doesn't contain attribute with Name = 'Workflowid'.
>>>>>> StackTrace (516):
> at Microsoft.Crm.Metadata.EntityMetadata.GetAttribute(String attributeName, NameMappingType mapping)
> at Microsoft.Crm.BusinessEntities.BusinessEntity.ValidateForRead(String attributeName)
> at Microsoft.Crm.Tools.ImportExportPublish.ImportWorkflowSubHandler.CheckUpdateWorkflow(WorkflowService w, String id, String name, EntityMetadata emd)
> at Microsoft.Crm.Tools.ImportExportPublish.ImportWorkflowSubHandler.ImportItem()
> at Microsoft.Crm.Tools.ImportExportPublish.ImportWorkflowHandler.ImportItem()
><<<<< StackTrace:
>no PluginTrace
>InnerException <null>
><<<<< EXCEPTION: 2
>
Did you ever experienced this? Could someone help me on this?
Thanks
Salvo









