ArcGIS API Python .publish() error

411
0
12-13-2019 11:46 AM
AhmedAskar
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\__init__.py 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\__init__.py 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
0 Replies