I am getting Error -21916254 'You have exceeded the maximum allowed containers'. Why ? Home Knowledge Base I am getting Error -21916254 'You have exceeded the maximum allowed containers'. Why ? Find the answer to your question
Advanced Search Product -Select Product- GDPR Trading API Shopping API Merchandising API Feedback API Finding API Product Services Sandbox Others MIP Media API Notification API Identity API Charity API Taxonomy API Catalog API Recommendation API Compliance API Logistics API Finances API(Alpha) Negotiation API Sell Feed API Marketing Ads API Account API Inventory API Fulfillment API Marketing Promotion API Analytics API Metadata API Offer API Marketplace Insights API Deal API Marketing API Feed API Browse API Order API Analytics API Key Management API Cancellation API Case Management API Inquiry API Return API Category -Select- Getting Started Sample Code Troubleshooting HowTo's / Best Practices No Value
Language -Select- C# Flex Java JavaScript PHP VB.NET VB6
Format -Select- All XML SOAP JSON Name Value N/A
SDK -Select- .NET Java JavaScript Flax/Flash Mobile - iOS None
Sort by Default Summary New Description Date Updated
Sort order Descending Ascending
Search
Published: February 08 2013, 4:29:00 PM Updated: August 26 2022, 1:43:41 PM
I am using BulkDataExchangeService for ReviseInventoryStatus api and getting Error -21916254 'You have exceeded the maximum allowed containers'. Why ?
- <BulkDataExchangeResponses xmlns="urn:ebay:apis:eBLBaseComponents">
- <ReviseInventoryStatusResponse xmlns="urn:ebay:apis:eBLBaseComponents">
<Timestamp>2013-01-31T13:08:25.448Z</Timestamp>
<Ack>Failure</Ack>
- <Errors>
<ShortMessage>You have exceeded the maximum allowed containers</ShortMessage>
<LongMessage>You have exceeded the maximum allowed containers</LongMessage>
<ErrorCode>21916254</ErrorCode>
<SeverityCode>Error</SeverityCode>
<ErrorClassification>RequestError</ErrorClassification>
</Errors>
The reason you are getting this error is because you can only pass upto 4 InventoryStatus nodes in a single request.
Please refer to the this link : http://developer.ebay.com/DevZone/XML/docs/Reference/eBay/ReviseInventoryStatus.html#Request.InventoryStatus
The same rule applies to LMS too.
So what you need to do is in one ReviseInventoryStatus api request you should pass only 4 InventoryStatus nodes, but make multiple ReviseInventoryStatus api calls in one single upload file.
Here is an example :
<?xml version="1.0" encoding="utf-8" ?> - <BulkDataExchangeRequests> - <Header> <SiteID>0</SiteID> <Version>1271</Version> </Header>- <ReviseInventoryStatusRequest xmlns="urn:ebay:apis:eBLBaseComponents"> <Version>1271</Version> - <InventoryStatus> <ItemID>Item-1</ItemID> <StartPrice>36.82</StartPrice> <Quantity>1</Quantity> </InventoryStatus> - <InventoryStatus> <ItemID>Item-2</ItemID> <StartPrice>231.88</StartPrice> <Quantity>1</Quantity> </InventoryStatus> - <InventoryStatus> <ItemID>Item-3</ItemID> <StartPrice>26.90</StartPrice> <Quantity>5</Quantity> </InventoryStatus> - <InventoryStatus> <ItemID>Item-4</ItemID> <StartPrice>26.97</StartPrice> <Quantity>3</Quantity> </InventoryStatus> </ReviseInventoryStatusRequest>
- <ReviseInventoryStatusRequest xmlns="urn:ebay:apis:eBLBaseComponents"> - <InventoryStatus> <ItemID>Item-5</ItemID> <StartPrice>97.98</StartPrice> <Quantity>16</Quantity> </InventoryStatus> - <InventoryStatus> <ItemID>Item-6</ItemID> <StartPrice>38.45</StartPrice> <Quantity>18</Quantity> </InventoryStatus> - <InventoryStatus> <ItemID>Item-7</ItemID> <StartPrice>85.62</StartPrice> <Quantity>29</Quantity> </InventoryStatus> - <InventoryStatus> <ItemID>Item-8</ItemID> <StartPrice>89.14</StartPrice> <Quantity>2</Quantity> </InventoryStatus> </ReviseInventoryStatusRequest>
---more ReviseInventoryStatus nodes -----
</BulkDataExchangeRequests>
How well did this answer your question? Answers others found helpful