Troubleshoot GraphQL
Invalid SalesTaxCodeEnum value
SalesTaxCodeEnum valueSymptoms
Creating a product with the GraphQL API returns the following error:
rpc error: code = InvalidArgument desc = CleverBridge:
GQL:
{"networkErrors":null,"graphqlErrors":[{"message":"Variable '$input.salesTaxCodeId' is invalid. Unable to convert 'SW054000' to 'SalesTaxCodeEnum'"}]}Cause
The request uses an outdated Sales Tax Code. The value SW054000 is no longer supported by the GraphQL API.
Resolution
Replace the deprecated Sales Tax Code with the current value:
| Deprecated | Current |
|---|---|
SW054000 | SW054002 |
Update your GraphQL request to use SW054002 before creating the product.