Locking issues in ASN processing due to multi threading
We are facing locking issues in ASN processing due to multi-threading. ASNs were threaded randomly, when ASNs coming from the same WareHouse (WH) are processed by a different thread it causes a locking error when the ASN processing attempts to update the FROM_LOCATION's Stock On Hand (SOH) in ITEM_LOC_SOH table.
So we have changed the threading logic to thread by FROM Location instead of random , but now the ASNOUT messages coming from WMS is getting threaded by from location before TAFR processing. After TAFR processing the ASNOUT messages again getting distributed randomly. Please suggest how to ensure that messages from one TAFR channel will route to particular subscriber channel of RMS only.