We have updated the workflow multiple times using single delivery id but the behavior is repeated.
Any help will be very much appreciated!
It's difficult to me to figure out what's going on.
I understand that you use a JS to perform some changes on a JST. It fails, but there is no visible workflow log, and the workflow restart (is it a consecutive restart, in a "warning" log (yellow icon) ? it could be an exceeded timeout)
Can you access to the supervision of your plateforme, and get the wkf process logs ? Go to the Welcome/Home button in the left upper corner => Monitoring => Wait for the details loading, then in the process list, try to open the wfserver@yourinstncename details, you should open the log journal (you have to be admin of your instance). I'm not sure you'll get more details, but it's a start.
In case of workflow error, during Fast load, while processing data, the Error and log tables associated with the work table become persistent and will not be deleted even if you drop the worktable.
To identify, what's happening, logs would be needed to identify the scenario.
You can monitor workflow execution and check the workflow logs for specific details.
Do you have any specific error /warning which is thrown when you are trying to update the mentioned delivery templates?