An administrator is encountering errors when reusing a composite API call to load test orders via the Workbench. What are three possible causes of this issue?
Three possible causes of this issue are:
The administrator has duplicate Product SKUs in the JSON query. A Product SKU is a unique identifier for a product that is used to track inventory and sales. A Product SKU must be unique within an org, and it cannot be duplicated in a composite API call. If the administrator has duplicate Product SKUs in the JSON query, it will cause an error when loading test orders via the Workbench.
The number of subrequests in the JSON query exceeds the 20 subrequest limit. A subrequest is a single HTTP request that is part of a composite API call. A composite API call can contain up to 20 subrequests in a single JSON body. If the administrator has more than 20 subrequests in the JSON query, it will cause an error when loading test orders via the Workbench.
Record IDs used within the request are incorrect. A record ID is a unique identifier for a record that is used to reference and manipulate data in Salesforce. A record ID must be valid and exist in the org, and it must match the data type and format of the corresponding field. If the administrator has incorrect record IDs in the JSON query, such as using 15-character IDs instead of 18-character IDs, or using IDs from a different org, it will cause an error when loading test orders via the Workbench.
Verified Reference: https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_composite_composite.htm https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_composite_sobject_tree_flat.htm
Murray
2 months agoGail
2 months agoJusta
1 months agoMitsue
1 months agoCarlota
1 months agoElza
2 months agoJulie
30 days agoJanessa
1 months agoGail
2 months agoElli
2 months agoChantell
2 months agoKarl
2 months agoLeota
2 months agoMona
2 months agoLakeesha
3 months agoAlishia
2 months agoHyman
2 months agoSommer
2 months agoCarissa
3 months agoMilly
3 months agoShelia
3 months ago