These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

How to define what itemID's are valid for Location.xml.aspx ?

Author
Bael Gar
Russian SOBR
#1 - 2012-11-04 11:35:35 UTC
Suppose I have output for api call AssetList.xml.aspx , how to define what itemID's from this output are valid to pass to Location.xml.aspx ? Im trying to reduce amount of calls to Location.xml.aspx by calling multiple ID`s at time, but very frequently I receiving error

Owner is not the owner of all itemIDs or a non-existant itemID was passed in. If you are not trying to scrape the API, please ensure your input are valid locations associated with the key owner.

I have already define some rules:
1) item should have non-empty locationID
2) item typeID <> 27 (Office)

But this is not enough.
For example any container is valid itemID for Location.xml.aspx. But blueprint lying near this container is invalid (though it has non-empty locationID).


At present, when Im encountering error, I must split the erroneous group of itemID's and call them one by one - but it makes overhead to eve api calls and loading the server.

How to define which itemID is valid for Location.xml.aspx beforehand?
Bael Gar
Russian SOBR
#2 - 2012-11-05 04:58:29 UTC
Well. It seems to be there are no way to determine wich itemID eligible to call Locations.xml.aspx.

I have finalaized with the approach described above. Split AssetList into chunks by 20 ID's and call Locations.xml.aspx for every chunk. If chunk call returns the error - split this chunk into separate ID's and make call for each ID one by one.
Harry Pearce
The Intel Project
#3 - 2012-11-05 10:12:47 UTC
https://forums.eveonline.com/default.aspx?g=posts&m=716856#post716856 is the most accurate guide to this that I know of.