Global variables only change when something in the application specifically changes them.
<br>
<br>How is that variable being set? (Through a SQL Statement step?) What type of routine is being done? (Something like this: SQL Statement to gather data, SQL Fetch, SQL Statement to update, SQL Fetch, SQL statement to update >> If it is something like this, each fetch will/may get the next sequence number, which could be the problem)
<br>
<br>One of the best things you can do to attempt to track this down would be to capture a log of a complete call in which this goes wrong (or copy a complete log from a TFSimulator call into a notepad), and then search for all the places where SHLOGHID shows up in the log. You should see where/when @SHLOGHID is being updated in the application, and as such, why it is being updated when you don't expect/desire it to.
|