Hi,
We have a custom workflow for PO product receipt. We are getting the "X++ Exception: Stack trace: The company does not exist" error message in the workflow. It is working for all users, but not working for specific user, but it is used to work for all.
I tried to assign system administrator role, but got the below error
Stopped (error): X++ Exception: Stack trace: The company does not exist.
at
X++ Exception: The workflow system could not access the business document data. Report this issue to your system administrator.
at SysWorkflowDocument-assertAsUser
SysWorkflowDocument-assert
Sy
Event viewer:
Workflow Instance ID: 124601 System.ServiceModel.Internals SysWorkflowQueue-resume SysWorkflow-save SysWorkflowWorkItem-createWorkItems SysWorkflowWorkItem-create X++ Exception: Stack trace: The company does not exist. at X++ Exception: The workflow system could not access the business document data. Report this issue to your system administrator. at SysWorkflowDocument-assertAsUser SysWorkflowDocument-assert SysWorkflowDocument-assertPermission SysWorkflowWorkItem-create SysWorkflowWorkItem-createWorkItems SysWorkflow-save SysWorkflowQueue-resume at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result) at System.Runtime.DurableInstancing.InstancePersistenceContext.EndOuterExecute(IAsyncResult result) at System.Activities.WorkflowApplication.UnloadOrPersistAsyncResult.OnPersisted(IAsyncResult result) at System.Runtime.AsyncResult.SyncContinue(IAsyncResult result) at System.Activities.WorkflowApplication.UnloadOrPersistAsyncResult.Track() at System.Activities.WorkflowApplication.UnloadOrPersistAsyncResult.InitializeProvider() at System.Activities.WorkflowApplication.UnloadOrPersistAsyncResult..ctor(WorkflowApplication instance, TimeSpan timeout, PersistenceOperation operation, Boolean isWorkflowThread, Boolean isInternalPersist, AsyncCallback callback, Object state) at System.Activities.WorkflowApplication.IdleEventHandler.OnStage1Complete(IAsyncResult lastResult, WorkflowApplication application, Boolean isStillSync) at System.Activities.WorkflowApplication.IdleEventHandler.Run(WorkflowApplication instance) at System.Activities.WorkflowApplication.OnNotifyPaused()
I got the same error on development machine, but it worked fine after reimported the user. But this solution is not working on production.
Thanks,
Hari