09-14-2016, 06:09 AM
Debug and use breakpoints to see what's happening exactly while you are running the script.
Also if there are sync issues, take help of Synchronization Points or Wait.
Also if there are sync issues, take help of Synchronization Points or Wait.