Skip to main content

Notifications

Announcements

No record found.

Supply chain | Supply Chain Management, Commerce
Suggested answer

Schedule batch job for purchase order generation

(1) ShareShare
ReportReport
Posted on by 110
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 398 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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,234 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,994 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans