Skip to main content

Error: null value in column "packing_option_id" of relation "box" violates not-null constraint in Prep & Ship Amazon

Error: null value in column "packing_option_id" of relation "box" violates not-null constraint and cannot create boxes in Prep & Ship Amazon batch shipment

Pankaj Singhal avatar
Written by Pankaj Singhal
Updated today

Overview

While creating boxes for a shipment, you may encounter the following error:

null value in column "packing_option_id" of relation "box" violates not-null constraint

πŸ” Why This Error Happens

This error occurs due to the following sequence:

  • Amazon does not return packaging options for the shipment plan.

  • The placement option has already been confirmed in Amazon.

  • Because packaging options are not available, the system cannot assign a valid packing_option_id.

  • Since packing_option_id is a required (not-null) field, the box cannot be created.

  • This results in the error shown above.

In short, once placement is confirmed and Amazon does not provide packaging data, boxes cannot be generated for that shipment plan.

πŸ›  Resolution

To resolve this issue, please follow the steps below:

  1. Cancel the Shipment Plan for the batch.

  2. Regenerate the Shipment Plan

  3. Allow Amazon to generate packaging options during shipment creation.

  4. Proceed to create boxes again.

Once a new shipment plan is generated and Amazon returns valid packaging options, the system will be able to assign a proper packing_option_id, and box creation should complete successfully.

Important Notes

  • This is not a system defect.

  • The issue occurs because Amazon does not return packaging information once placement is confirmed.

  • The only supported resolution is to cancel and regenerate the shipment plan.

Contact customer support if you see any issue.

Did this answer your question?