--- title: InventoryShipmentSetBarcodeUserErrorCode - GraphQL Admin description: >- Possible error codes that can be returned by `InventoryShipmentSetBarcodeUserError`. api_version: unstable api_name: admin source_url: html: >- https://shopify.dev/docs/api/admin-graphql/unstable/enums/InventoryShipmentSetBarcodeUserErrorCode md: >- https://shopify.dev/docs/api/admin-graphql/unstable/enums/InventoryShipmentSetBarcodeUserErrorCode.md --- # Inventory​Shipment​Set​Barcode​User​Error​Code enum Possible error codes that can be returned by `InventoryShipmentSetBarcodeUserError`. ## Valid values * BARCODE\_​DUPLICATE This barcode is already assigned to another shipment. * SHIPMENT\_​NOT\_​FOUND The shipment was not found. *** ## Fields * [Inventory​Shipment​Set​Barcode​User​Error.code](https://shopify.dev/docs/api/admin-graphql/unstable/objects/InventoryShipmentSetBarcodeUserError#field-InventoryShipmentSetBarcodeUserError.fields.code) OBJECT An error that occurs during the execution of `InventoryShipmentSetBarcode`. *** ## Map ### Fields with this enum * [Inventory​Shipment​Set​Barcode​User​Error.code](https://shopify.dev/docs/api/admin-graphql/unstable/objects/InventoryShipmentSetBarcodeUserError#field-InventoryShipmentSetBarcodeUserError.fields.code)