I check the ledger in the code to see if it is dormancy locked and it says it is not.
Code: Select all
if(ledger.IsDormancyLocked)
{
PERFUTIL.Log("Ledger " + ledger.Name + " is Locked");
ledger.IsDormancyLocked = false;
lm.ApplyChanges(ledger);
PERFUTIL.Log("Ledger Unlocked");
}
else
{
PERFUTIL.Log("Ledger " + ledger.Name + " is not locked");
}
Even if I step through the code and it sets the IsDormancyLocked to false I still get the error.
Logs from my run:
2022-10-31 02:43:12- Ledger 01QA-0418-143156-CDFValidCML is not locked
2022-10-31 02:43:12- Void Ledger
2022-10-31 02:43:12- EXCEPTION1: You cannot void transfers that are associated with ledgers that have either been manually locked or auto-locked due to dormancy.
Is there something I am missing or is there something else I need to set?