Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Error on Purchase Order workflow

Posted on by 760

I am getting the following error whenever I try to open my existing Purchase Order workflow or try to create a new one. 

"An unexpected error has occurred while opening the workflow. See the event log on the AOS and contact your system administrator to resolve the issue." 

When I open an existing Purchase Requisition workflow, it opens up and works smoothly.

It's quite strange. 

I have followed some steps still no good

  • Refresh WCF in client configuration:
    • In Administrative Tools select AX 2012 Configuration
    • in Configuration Target select Business Connector (non-interactive use only)
    • In Configuration create new configuration if you only have the original,
    • click on Connection tab, then click on Refresh configuration.
  • Stop AOS service
  • Delete files in Xppil (files ONLY, don’t delete the folders inside Xppil)
    • C:\Program Files\Microsoft Dynamics AX\60\Server\(your dev. repo. name)\bin\XppIL
  • Start AOS
  • Generate Full CIL
  • Data dictionary synchronize

*This post is locked for comments

  • Abubaker Siddiq Profile Picture
    Abubaker Siddiq 760 on at
    RE: Error on Purchase Order workflow

    Have already tried this link. The solution is wierd and not actually a solution but a work around. I don't want to change the Timezone. My client is in Pakistan, therefore, I need that timezone. The solution provided doesn't work. The error is still the same.

  • Abubaker Siddiq Profile Picture
    Abubaker Siddiq 760 on at
    RE: Error on Purchase Order workflow

    Have already tried this link. The solution provided doesn't work. The error is still the same.

  • Suggested answer
    udaY-ch Profile Picture
    udaY-ch 4,624 on at
  • Abubaker Siddiq Profile Picture
    Abubaker Siddiq 760 on at
    RE: Error on Purchase Order workflow

    What can be the issue? This is quite weird issue.

  • Abubaker Siddiq Profile Picture
    Abubaker Siddiq 760 on at
    RE: Error on Purchase Order workflow

    Thank you for your quick response.

    Yes. Getting following error in event log:

    Workflow threw an exception for the following reason: Invalid enum value 'GMTPLUS0500ISLAMABAD_KARACHI' cannot be deserialized into type 'Microsoft.Dynamics.AX.Framework.Workflow.Model.AxWorkflowServiceReference.Timezone'. Ensure that the necessary enum values are present and are marked with EnumMemberAttribute attribute if the type has DataContractAttribute attribute.

    No customization.

  • guk1964 Profile Picture
    guk1964 10,877 on at
    RE: Error on Purchase Order workflow

    Any message in the Event log?

    Any customisation?

    Check for client server kernel build match.

    I have seen the error before due to permisions - can other users open it OK? Does it open if you log in with a service account?

    https://docs.microsoft.com/en-us/dynamicsax-2012/appuser-itpro/create-service-accounts

    With regard to WCF account see this useful post and the links https://community.dynamics.com/ax/f/33/t/235685 - the link mentions an obscure issue arising from a language pack issue with the dot net framework

  • udaY-ch Profile Picture
    udaY-ch 4,624 on at
    RE: Error on Purchase Order workflow

    Hi Siddiq,

    Have you checking the event viewer? You can check the event log in AOS machine to get the error details

    Best,

    Uday.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans