Scheduled Jobs creating multiple Request Items on same Request
When there are multiple scheduled jobs configured at the same time to generate requests using Service Catalog Script API, Run As is same user for all Scheduled Jobs for the same item, multiple Request Items on same Request might get created. Some Requests doesn't have Request Items.
Sample Script in Scheduled Jobs, where these are trying to order same Catalog Item:
Run as: System Administrator
Time to Run: 12 AM
Since all Scheduled Jobs are ordering same Catalog Item with the same User at the same Time, records in "sc_cart" table might get duplicated or messed up while submitting.
1) Run the scheduled Jobs at different Times.
2) Merge All scheduled Jobs to a single Scheduled Job and place the code in a While Loop to make sure Item Submission follows an order.