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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

X++ Exception: Stack trace: The company does not exist

(0) ShareShare
ReportReport
Posted on by 3

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

I have the same question (0)
  • MuthukumaranAX Profile Picture
    2,903 on at

    can you verify if the user has default company assigned in the user form?

  • Hariharans87 Profile Picture
    3 on at

    Purchase requisition table was added as innner join in the workflow document query. For some reason the purchase requisition record was deleted. So, the workflow could not find the record on this query. It worked fine after i changed the join type from inner join to outer join.

    It worked fine on development, because we disabled the user email notification.

    It was very strange issue.

  • Suggested answer
    Hariharans87 Profile Picture
    3 on at

    By following this step i resolved this issue

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 565 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans