Check-out and check-in operations in scripts must occur in matching pairs.

Hello there,

I have a Workflow State script on the invoice workflow that looks for a matching Purchase Order(PO) and updates the PO's Remaining Balance.

That method checks out the matching PO, updates de Remaining Balance and then checks in the updated PO.

It was working fine, but it stopped working when I replicated the code to a new Vault and VAF. I'm getting the error message " Check-out and check-in operations in scripts must occur in matching pairs." when it tries to do the CheckOut.

I'm using the COM API in VAF to do it with the following commands:

env.Vault.ObjectOperations.CheckOut()

env.Vault.ObjectOperations.CheckIn()

My questions:

What may cause it to stop working on the replication to a new vault?

Why is this error happening at check-out? 

Parents Reply Children
No Data