Skip to main content
Question

Multiple Parallel (concurrent) operations

  • April 29, 2025
  • 4 replies
  • 54 views

  • I have OrderQty, totalConsumedQty, and MaximumOrderQty.

  • Orders are being placed in parallel.

  • Each order reads the current totalConsumedQty, adds its OrderQty, and checks if it exceeds MaximumOrderQty.

  • When multiple orders are placed at exactly the same time, they all see the same original value of totalConsumedQty, and each thinks it’s safe to place the order.

  • Result: totalConsumedQty is exceeded because updates are not aware of each other.

  • Updating totalConsumedQty is happens while Saving, It is required

4 replies

darylbowman
Captain II
Forum|alt.badge.img+15
  1. How / where is TotalConsumedQty being stored?
  2. Does the Ordering need to be concurrent?

  • Author
  • Freshman I
  • April 30, 2025

Hi ​@darylbowman ,

Thank you for replying.

1.  TotalConsumedQty  is being store in SOLine Table

2. Yes the ordering need to be concurrent


darylbowman
Captain II
Forum|alt.badge.img+15

Could you post some of your code?


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • July 2, 2025

Hi ​@anupusefulbi were you able to find a solution? Thank you!