Session hangs in AFS
We have a small routine which simply updates warehouse in all production orders from C to BR. What this session does is find all the production orders where the warehouse code is " C" and replaces it with warehouse " BR" using stpapi calls.
The session executes properly but when we try to end the session, it just hangs. I have attached portion of the script if someone can find what causes the session to hang.