On Success script no longer works properly

On Success script no longer works properly

I have an 'on success' script which grabs data from the current form (add sales order) and populates the next form (add line) with that data. This used to work well but has now stopped working. The 'Add line' form opens correctly, but it is empty. There is no error reported.

What might have changed?