Skip to main content

TypeAlias.ImportError

type ImportError = {
externalId?: string;
field?: string;
lineNumber: number;
message: string;
};

Detailed error record for a failed product import.

Provides context for debugging import failures.

Type Declaration

NameType
externalId?string
field?string
lineNumbernumber
messagestring

Example

const error: ImportError = {
lineNumber: 42,
externalId: "SKU-99999",
field: "name",
message: "Product name is required"
};