Skip to main content

Notifications

Supply chain | Supply Chain Management, Commerce
Suggested answer

Schedule batch job for purchase order generation

Posted on by 72
Hi all,
 
Hope that you are doing well.
 
I have a question about: Schedule batch job for purchase order generation.
Basically after we create PR a PO is automatically created.
It all worked fine except couple of similar scenarios where instead of a single PO we have many PO's created.
 
In one of the examples the PR has 6 lines and we have 5 PO created.
1 is correct the other 4 are empty.
We also translate the header of the PR to PO and this is correctly done in the first PO, but the next 4 are basically empty.
I was reviewing our configuration and cannot find any reasonable explanation for this - policies, configuration etc it all looks fine and i cannot replicate this as well.
The only thing that is sketchy is the batch job recurrence.
 
Our partners advised us to set the recurrence to 1mint.
Do you think that this could have something to do with the duplicate PO's that are raised based on a single PR ?
 
Any other ideas are much appreciated.
 
Thanks
Simeon Manov.
  • Suggested answer
    Fasih Profile Picture
    Fasih 196 on at
    Schedule batch job for purchase order generation
    Hi,

    As you have mentioned that all the configurations are tried and tested and the system works fine in most of the scenarios, then it is highly likely that the issue, you are facing, is caused by the 1-minute recurrence interval set for the batch job. This short interval can cause the batch job to run multiple times before the previous one finishes, as two or more processes try to do the same thing at the same time, leading to race conditions and duplicate POs.

    To resolve this, Increase the batch job recurrence interval to at least 5–10 minutes to allow enough time for the PR processing to complete before a new job is triggered.

    This is the only sane explanation to your query, considering no custom modification are made to the setup and all the configurations e.g. PR to PO policies are set perfectly.

    Best Regards

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 229,658 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans