When attempting to transform a NetSuite Sales Order into an Invoice you may receive an error when NetSuite attempts to initialize the invoice.
USER_ERROR : Error while accessing a resource. You can not initialize invoice: invalid reference 30772
Cause
This error occurs if the Sales Order is not in an acceptable status to allow an invoice transformation. Verify all of the following conditions are met.
- Sales Order is Approved
- Sales Order is Fulfilled
Resolutions
There are two possible resolutions for this error.
1. Set the Sales Order to the correct status
- Open the Sales Order in NetSuite and check that it is approved
- Fulfill all lines that will be transformed from the Sales Order
2. Enable Invoicing in advance of fulfillment
- Log into NetSuite > Setup > Accounting > Accounting Preferences
- Navigate to Order Management > Invoicing
- Check the box for Invoice in advance of fulfillment
