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 :
Microsoft Dynamics AX (Archived)

Workflow: Error in call of method EventContextInformation.unpack

(0) ShareShare
ReportReport
Posted on by

Good morning to my Dynamics Community people, 

I have set up workflows on the Purchase Order and Vendor Invoicing processes. 

However, I have received this error "Error in call of method EventContextInformation.unpack" on the Vendor Invoice workflow after it was the form was submitted. Although I tried recalling the workflow, it was to no avail. The error simply reoccurred. 

Is there anything else I can do to get the pending invoice out of the workflow? 

Regards

AC

*This post is locked for comments

I have the same question (0)
  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    The error message represents the state that Record is missing against which workflow process was supposed to generate notification.

    There is a Hotfix provided by Microsoft for this issue. Not sure, if that can work for you or not. For my case, the hotfix did not helped.

    This week I will be working on my case. Once I finish further debugging, I will post my findings. Meanwhile you can have a look at reasons of this issue and debugged stack track. 

  • Community Member Profile Picture
    on at

    Thanks for the feedback.

    What "Record" could it be referring to? The process is PO > Receipt > Invoice. I can't see what would be missing.

    Secondly, what do you mean by debug stack track? I'm not familiar with coding, if that's what you mean.

    Also, is there any way to retrieve the document if I were to deactivate the workflow?

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    1) What "Record" could it be referring to?

    it is referring to same record which is origin. Speaking in functional language, when any activity happens in workflow, a notification is generated. e.g. on Approval a notification can be sent to a user ABC, or to workflow originator.

    The system fails to find the record, for which it needs to send notification, i.e. same document for which workflow is being operated. The major reason of failure can be inconsistency in primary key(unique identification of a document)

    So, it is referring to same record i.e. on which workflow is being operated.

    2) Secondly, what do you mean by debug stack track? I'm not familiar with coding, if that's what you mean.

    Yes Stack and FIFO are Data Structure terms. In functional Language Stack Trace simply mean "a lead starting from your point of failure to your work start point"

    I am afraid that it may not be very easy for you to fix if you are not aware of coding. As debugging is required in such cases.

    3) Also, is there any way to retrieve the document if I were to deactivate the workflow?

    Yes, you can deactivate workflow, and you can continue without workflow provided that your organization can afford that. For existing/pending documents you can update status by Code to "Approved"

  • Community Member Profile Picture
    on at

    I appreciate your assistance. I suppose I'd have to pass this issue unto a developer who may be more familiar.

    Best regards.

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Yes, that would be a much better, as on site development consultant can look deep.

    Do provide us feedback, once you get any  update

  • Sohaib Cheema Profile Picture
    49,438 User Group Leader on at

    Hi,

    I have changed title of question from "Workflow that won't work..." to currently what you can see.

    Keeping meaningful titles can help new comers to search quickly.

  • Jay Barot Profile Picture
    1,502 on at

    HI sohaib,

    Few days ago, i recalled invoices and submitted again and posted without any error. but today After recalling invoice workflow, it's stopped again. and i am not able to process the purchase invoice. i tried to recall it many times but i am helpless. please suggest solution.

  • Suggested answer
    Jay Barot Profile Picture
    1,502 on at

    I got same error while recalling the Vendor invoice workflow. And i have tried many times to recall it but workflow got stopped again. 

    Finally i have checked in vendInvoiceInfotable and found 2 records one with status executed and one with waiting.  So i have checked the "Invoice History and matching details" and deleted the record which having status waiting. and the issue resolved.

    Thanks,

    Jay

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans