Can you get the arcgis python api to publish data?

715
1
10-24-2016 06:02 AM
GuidoStein
New Contributor III

My apologizes for cross posting, but I did not get any response on the rest board.

I am using the arcgis python api to push data into my arcgis online account and then publish the data to a group. Using the following code I am able to do all this, but when I look at the published table, it's empty.

 

I have also tried to do this trying to set the last parameter to csv, and passing None values into the address field mapping.

 

Does anyone have any thoughts on how to get this to work?

 

print('Add table into account')
item = gis.content.add({}, data)

 

print('Publish table')
published_item = item.publish(None, {"Neighborhood": "BLOCK"})
published_item.share(groups='<group_id>')

Tags (1)
0 Kudos
1 Reply
ChristianWells
Esri Contributor

Hi Guido Stein‌, as the Python API is still in Beta, I would recommend posting your questions to the user forums on the Esri Early Adopter Community:

https://earlyadopter.esri.com/project/home.html?cap=035D6DE6E9674EF8A396B8C29CA3C6B1 

On those forums the Product Team and Support are actively looking at issues and providing responses there.

Best,

Christian

0 Kudos