When processing orders you might come across the "Failed to generate label: shipment.References[0].Code:Code is required. 'id' cannot be null" error.
This error is shown when you have references that you are using but are empty.
This could be solved in two ways:
- Changing the reference being used in the Billing Account for the Client as detailed here: Using order References in your labels [Step-by-Step guide]
- Updating the reference field: if so, see the solution instructions below
Feel free to follow the step-by-step guide written below or the video guide, as you prefer:
To do so:
1. Find the order through any of the possible ways (after Import Orders, Batches, Order History, etc) as it applies to the case
2. Click the edit button of the order you wish to change
3. Correct the empty reference with the value that applies to the case
4. Press Save to apply the changes
If the rest of the information in the order is correct, you will be able to process it.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article