Using parameter from 1 list to change data in a second list

I have a backend workflow which updates a “payments” table and then updates an invoice table.
the first part of the workflow works perfectly but the second part does not make the changes to the invoice table that i need.
I am using the “Order ID” field passed to the workflow as a list from the “payments” table to lookup the invoice which needs to be changed but when i execute the workflow, nothing in the invoice table is updated.
Am i referencing the Order ID parameter incorrectly or is there some other way to do this?
I tried reviewing the server logs but they are not telling me much and i don’t see any errors.