Esri / ArcREST

python package for REST API (AGS, AGOL, webmap JSON, etc..)
Apache License 2.0
192 stars 155 forks source link

Publish Does Not Return JobID? #205

Closed mshihadeh closed 8 years ago

mshihadeh commented 8 years ago

Trying to check the status of my geodatabase upload/publish code (which is working well, thanks for the help). Status requires the jobID, and the documentation states "jobId - The job ID returned during publish, generateFeatures, export, and createService calls." However, Publish returns the itemID. Are the itemID and jobID one and the same? It does not seem like it, because when I use the itemID to check the status, it returns"

{'status': '', 'itemId': '[itemID]', 'statusMessage': "Item status doesn't exist"}

which is obviously unhelpful. Is there another way to access the jobID if it is something different? If not, any thoughts on what could be wrong with my code? I can add it if need be, but I didn't want to clutter things up if it was a simple answer. Thanks!

MikeMillerGIS commented 8 years ago

Did you specify Wait? If so, it should return the item and the job has finished.

mshihadeh commented 8 years ago

Ahhh... I didn't even think of that, thank you. I tried using a wait, but it is a large geodatabase and I was getting timeout errors. Once I removed the wait, it worked just fine. I suppose I'll have to use a different method for verifying publishing was successful.