How to resolve 'The document cannot be updated because the batch has the Temporary status' error on invoicing a sales order generated from the service order or appointment
On the Process Orders (SO501000) form, on a user's attempt to run the Prepare Invoice action for a sales order generated from the service order or appointment, the system returned the following error: The document cannot be updated because the batch has the Temporary status
This error usually happens when the billing process was interrupted and some documents were partially billed
Solution
On the Run Service Order Billing (FS500600) form, when there are documents with the Temporary status presented in the system, the View Temporary Batches action is available.
- Select AR Documents and/or AP Bills option on the Generated Billing Documents drop down.
- Click View Temporary Batches action.

- Select and delete batches with Temporary status.
- On the Process Orders form, run the billing process again.