Skip to main content
Published: February 08 2013, 4:29:00 PMUpdated: 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

Got thoughts? Click the feedback button – your insights help us improve!