Skip to main content
Version: v1.0.0(int)

W086: Bulk-import SKUs

Creates many SKUs at once from an uploaded CSV or Excel file. Triggered from the Data page, SKUs import. Atomic.

Steps

  1. Parse the upload. Collect parse errors into a list.

  2. Abort on parse failures. Raise a ValidationError listing the failed rows.

  3. Create each SKU inside one transaction. For each parsed row, run W076 steps 1 to 3 inside withTransaction.

  4. Commit. Any single-row failure rolls the whole batch back.

Returns

The list of created SKU ids.

Business rules

  • All or nothing.

Errors

  • ValidationError. Parse failures or any single row failing the Create SKU rules.