Is it possible to edit or add data from ArcGIS Pro (2.8.3, working with .gdb files) to PostgreSQL (PostGIS enabled), without ArcGIS Server ?
I already have a connection to PostgreSQL, and can see PostgreSQL stored layers in ArcGIS Pro. But it seems I can't edit or add data in Postgres. I'm used to QGIS where it's a straightforward process, but working from ArcGIS Pro only is mandatory here.
What I've tried :
- Directly edit the PostgreSQL layer : ArcGIS doesn't seems to allow it
- Right click on PostgreSQL DB and import : "Feature class to Feature class", ends up in "ERROR 000210: Cannot create output"
- Append tool (using a layer in my local .gdb as input) : ends up in "ERROR 160236: The operation is not supported by this implementation"
Checking ESRI documentation I have everything set up correctly. I've seen this post asking the same question and getting the same results, but the final anwser is unclear to me and I have an ArcGIS Pro Advanced license.
I also tried create new data in a database but it ends up in "ERROR 999999: Something unexpected caused the tool to fail." Reading the details it seems to try create a new table in a schema named after my username that doesn't exists, and I can't find where to parameter the schema ?
Others anwers here use ArcMap rather than ArcGIS Pro like Editing PostGIS layer from ArcMap without Enterprise Geodatabase (ArcSDE), or use others tools like ogr2ogr.
I also don't have the rights on PostgreSQL to create new schemas, or make modifications like adding the st-geometry type to -postgresql (even if I can't tell if this would be useful)
Is there any way I can make any type of modification on PostgreSQL staying in ArcGIS Pro ?
arcpy.ArcSDESQLExecute
absolutely functions as a generic SQL cursor.