How do I export a file geodatabase table to ArcGIS Online?

283
5
04-19-2024 09:32 AM
GeoMapIt
New Contributor II

Hi! I've been stuck for days on this. ChatGPT was not able to help me. This sounds like a simple thing to do. Or, at least it should be. 

I'm trying to publish a file geodatabase table to ArcGIS Online using python (ArcGIS Pro IDE). That's it. 

Tags (5)
0 Kudos
5 Replies
BlakeTerhune
MVP Regular Contributor
0 Kudos
GeoMapIt
New Contributor II

Thank you for your reply. No, I need help using python api to publish the table. Preferably someone to send a simple code snippet that does this. 

0 Kudos
BlakeTerhune
MVP Regular Contributor

Ah, yes, sorry about that. The FeatureSharingDraft class has a code sample for publishing a layer and a table.

FeatureSharingDraft—ArcGIS Pro | Documentation

GeoMapIt
New Contributor II

No worries! That looks promising. I'll give that a test later today. Thanks! 

0 Kudos
Sean_Works
New Contributor

I had some success with scripts derived from this blog post last year.  Publish and overwrite web layers in ModelBuilder (esri.com)

0 Kudos