A given field is not supported. This error occurs, for example, if the field variants, which is not supported by Product Import, is sent to the Product Import endpoint.

interface InvalidFieldError {
    allowedValues?: any[];
    code: "InvalidField";
    field: string;
    invalidValue: any;
    message: string;
    resourceIndex?: number;
}

Hierarchy (View Summary)

Properties

allowedValues?: any[]

The set of allowed values for the field, if any.

code: "InvalidField"

An error identifier.

field: string

The name of the field.

invalidValue: any

The invalid value.

message: string

A plain language description of the cause of an error.

resourceIndex?: number