Select to view content in your preferred language

ArcGIS API Python .publish() error

12-13-2019 11:46 AM
New Contributor

created a csv with 1 record and 10 columns then used arcgis api for python to publish it in to feature layer.

the job fails. any suggestions would greatly be appreciated?

---------------------------------------------------------------------------Exception                                 Traceback (most recent call last)<ipython-input-234-6f9c149e26d2> in <module>      1 # publish the csv item into a feature layer----> 2 cities_item = csv_item.publish()      3 cities_item      4       5 #flood_feature_layer_item = flood_csv_item.publish()C:\anaconda3\lib\site-packages\arcgis\gis\ in publish(self, publish_parameters, address_fields, output_type, overwrite, file_type, build_initial_cache)   8133             return Item(self._gis, ret[0]['serviceItemId'])   8134         else:-> 8135             serviceitem_id = self._check_publish_status(ret, folder)   8136         return Item(self._gis, serviceitem_id)   8137  C:\anaconda3\lib\site-packages\arcgis\gis\ in _check_publish_status(self, ret, folder)   8360                     #print(str(job_response))   8361                     if job_response.get("status") in ("esriJobFailed","failed"):-> 8362                         raise Exception("Job failed.")   8363                     elif job_response.get("status") == "esriJobCancelled":   8364                         raise Exception("Job cancelled.")Exception: Job failed.
Tags (1)
0 Kudos
1 Reply
New Contributor II

I am getting this same error.  I can add and update a CSV file in ArcGIS Online, but when I publish it, it only displays a blank table as a feature layer and simply says "raise Exception("Job failed.")"

Anyone have information on this?  We had previously had a similar error when we were storing the data in Tab Separated format, but changed this and it had been working.  Not sure what is going on now 😞 

Thanks for any info!

0 Kudos