Error On Product, Even After Re-Creating Product

BFentressBFentress Member Posts: 15

I have a client that is receiving this error, even after re-creating the product:


<Error><httpCode>400</httpCode><httpMessage>Bad Request</httpMessage><message>Cannot set attribute2 on an Item with ItemAttributeSet type Color. Valid fields are attribute1</message><errorClass>Exception</errorClass></Error>

ResponseHeaders: {"IsMutuallyAuthenticated":false,"Cookies":[],"Headers":["Transfer-Encoding","Connection","x-frame-options","X-XSS-Protection","X-Content-Type-Options","X-LS-Acct-Id","X-LS-OAuth-Client-Id","X-LS-API-Bucket-Level","X-LS-Shard-Id","X-LS-API-Drip-Rate","X-LS-Master-System","X-LS-Master-Account","X-LS-Master-Catalog","Vary","CF-Cache-Status","Expect-CT","CF-RAY","Content-Type","Date","Set-Cookie","Server"],"SupportsHeaders":true,"ContentLength":-1,"ContentEncoding":"","ContentType":"application/vnd.merchantos.pos-v1+xml","CharacterSet":"","Server":"cloudflare","LastModified":"\/Date(1582895095583)\/","StatusCode":400,"StatusDescription":"Bad Request","ProtocolVersion":{"Major":1,"Minor":1,"Build":-1,"Revision":-1,"MajorRevision":-1,"MinorRevision":-1},"ResponseUri":"https://api.merchantos.com/API/Account/147571/Item/2708","Method":"PUT","IsFromCache":false}


Any explanation why this is happening?

1 comment

  • sam123456sam123456 Member Posts: 35

    If you didn't figure it out already, my best guess is that this:

    Bad Request</httpMessage><message>Cannot set attribute2 on an Item with ItemAttributeSet type Color. Valid fields are attribute1

    is telling you that when the specified attribute set only has one parameter, you can't assign a value to a second parameter.

    So if you have an attribute set of "color/size" I think you could assign a value to attribute 2, but as there is no second parameter in your request, you're getting an error.

Sign In or Register to comment.