Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

Sales Document Workflow Error

Posted on by Microsoft Employee

In the approval user setup, I have unlimited Sales Approval, Unlimited Purchase Approval, Unlimited Request Approval checked, and no approval ID for my user ID, but I still can't release a sales document. And when I run the Approval use setup test, I get "Approval ID must have a value in User Setup: User ID=EASTWEST\F00010. If cannot be zero or empty"

I 'm an approver, and do not require approval from anyone else. I 'm also using direct approver in the workflow setup.

Can anyone help?

*This post is locked for comments

  • Suggested answer
    Binesh Profile Picture
    Binesh 7,885 on at
    RE: Sales Document Workflow Error

    Hello Friday,

    Do some changes:

    1)  Create a "Workflow User Groups"

    See the bellow screenshot.

    6180.2.png

    2)  Create a Workflow from Template And assign Workflow User Group That you created.

         See the bellow screenshot.

    6180.2.png

    3) Run job Queue.

    8156.3.png

    And if you want to solve your error then just do some changes in User Setup Table (91)

    In Approver ID field comments the trigger code, like bellow:

    Approver ID - OnValidate()
    //IF "Approver ID" = "User ID" THEN
    // FIELDERROR("Approver ID");

    Approver ID - OnLookup()
    //UserSetup.SETFILTER("User ID",'<>%1',"User ID");
    IF PAGE.RUNMODAL(PAGE::"Approval User Setup",UserSetup) = ACTION::LookupOK THEN
    VALIDATE("Approver ID",UserSetup."User ID");

  • Suggested answer
    HoangNam Profile Picture
    HoangNam 315 on at
    RE: Sales Document Workflow Error

    1. You can modify Approve Request on Workflow(Create an approval request for the record using approver type Workflow User Group and workflow user group code MYWFUSERGROUP.). Setup Approver Type=Workflow User Group, Workflow User Group Code=<Your WF User Group Code>. Setup your User ID via member of Your WF User Group.

    2. Base on 1. You can setup Approval Type=Salesperson/Purchaser, Approver Limit Type=Direct Approver. And, Salesperson Code on your sales order must be same Salesper./Purch. Code on Approval User Setup of your User ID

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Sales Document Workflow Error

    Yes. Basically, I want to be my own approver. But won't let me be my own approver.

  • Suggested answer
    RE: Sales Document Workflow Error

    Hi Friday,

    Do you still face 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

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans