Change invoice to cancelled in CRM from Scribe

We have had a previously working integration from GP where if an invoice is credit noted (with a particular status) it is then changed to the relevant stateCode and StatusReason in CRM.

This has stopped working when upgrading to CRM 2016

Looking at the integration it tries to change StateCode and StatusReason in the same update step (in Scribe) to valid State Code (cancelled) and Status Reason. The Invoice is being changed to Cancelled, but it is only going to the Default Status Reason, not the one specified in the Scribe Integration.


Any idea how to get around this?