Skip to main content

Notifications

Microsoft Dynamics AX (Archived)

Workflow configuration in Procurement and Sourcing

Posted on by 1,295

I have generated a workflow with multiple approvals in Procurement and Sourcing.When i generate a PR and submit it, the workflow gets activated but the PR does not go to the approver for approval.First the PR goes for approval and then the condition is set to check whether it is above particular value so that it goes to the other approver.Can somebody help me in this.

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Workflow configuration in Procurement and Sourcing

    I agree, your starting point to isolate the issue and finding the root cause lies in in the workflow history and workflow event log.

     Should there be no error, then from the workflow history you can verify which elements in the workflow were executed in the flow.

    Some other setups that needs to be verified is the association of the approving user to an employee record and the approving user having sufficient privileges/role assigned. 

    The also verify the workflow hierarchy type being used and if using position hierarchy then ensure the approver is the manager of the current submitting user/employee.

    Regards

    Rahul

  • Verified answer
    Iulian Cordobin Profile Picture
    Iulian Cordobin 8,201 on at
    RE: Workflow configuration in Procurement and Sourcing

    Hi.

    Just a short comment on this: my post on 28 Jan 2015 at 2:45 PM clearly stated that you can clean up the (entire content of the) Batch / BatchJob tables in order to resolve that error you faced last with the WF infrastructure form, that resulted from an incomplete deletion of the record on the previous retry.

    Anyway, glad to hear the WFs are working for you too.

  • Verified answer
    munafkhatib Profile Picture
    munafkhatib 1,295 on at
    RE: Workflow configuration in Procurement and Sourcing

    This issue was resolved by Microsoft by giving command in SSMS :

    delete from BATCH

    where

    CAPTION like 'workflow%'

    --GROUPID = 'workflow'

  • munafkhatib Profile Picture
    munafkhatib 1,295 on at
    RE: Workflow configuration in Procurement and Sourcing

    I compiled full application and did CIL compile also .I restarted the AOS still i am getting the same error.Is this something to do with the delete command i had given contained "BR" and "JR" values same.

  • Jonathan  Halland Profile Picture
    Jonathan Halland 11,304 on at
    RE: Workflow configuration in Procurement and Sourcing

    Please compile either your full system or the "WorkflowSetupWizard" class and perform a CIL Compile.

  • munafkhatib Profile Picture
    munafkhatib 1,295 on at
    RE: Workflow configuration in Procurement and Sourcing

    Restarted the AOS, still getting above error while running WF Infrastructure Wizard.

  • Iulian Cordobin Profile Picture
    Iulian Cordobin 8,201 on at
    RE: Workflow configuration in Procurement and Sourcing

    Can you try to

    1. delete the entire set of batches by running in SSMS the following:

    delete from Batch

    delete from BatchJob

    (NOTE that this will delete all the batch jobs you have defined in your system, so if you do not want this, then don't use it)

    2. restart the AOS

    3. rerun the WF infrastucture.

  • munafkhatib Profile Picture
    munafkhatib 1,295 on at
    RE: Workflow configuration in Procurement and Sourcing

    The workflow batch job is deleted but i am getting above error while running Workflow Infrastructure Wizard.

  • munafkhatib Profile Picture
    munafkhatib 1,295 on at
    RE: Workflow configuration in Procurement and Sourcing

    When trying to run Workflow Infrastructure Wizard:

    Error executing code: Wrong argument type for function.

    Stack trace

    (C)\Classes\WorkflowSetupWizard\new - line 77

    (C)\Classes\WorkflowSetupWizard\construct

    (C)\Classes\WorkflowSetupWizard\main

  • munafkhatib Profile Picture
    munafkhatib 1,295 on at
    RE: Workflow configuration in Procurement and Sourcing

    Got message : (3 row(s) affected) but still i can see the job in Batch Jobs and when running Workflow Infrastructure Wizard,the batch group is greyed out.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

New! Quick response templatesâš¡

Save time with the new custom templates!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,056 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans