Xero Sync Error | Invoice not of valid status for modification This document cannot be edited as it has a payment or credit note allocated to it.
This error occurs when a bill has already been fully paid or has a payment or credit applied. In this state, Xero does not allow any further modifications to the bill, which is why the updated version is not syncing in from Ramp.
To give more context, here is a resource that walks through this specific error and why it appears:
Since Xero blocks changes once a bill has payments or credits allocated, any updates you intend to make to a reconciled bill typically need to be handled directly within Xero rather than via a re-sync from Ramp.