I am attempting to migrate/export an existing geodatabase into an existing database that I created in pgAdmin. When I attempt to transfer tables inside my existing geodatabase into my PostgreSQL database connection, I receive a schema error. The error I keep receiving is a schema error reading:
Message [Error]: ERROR 000260: Database user name and current user schema do not match. [Database user name and current user schema do not match.] [arcgis_db.sde.DataSources]
I also have an error when copy a featureclass that reads:
Message [Error]: ERROR 000260: Function or procedure does not exist [Function or procedure does not exist] [arcgis_db.sde.GDB_Items][STATE_ID = 0] Message [Error]: ERROR 000260: Function or procedure does not exist [Function or procedure does not exist [arcgis_db.sde.GDB_Items][STATE_ID = 0] Message [Error]: Failed to execute (CopyMultiple).
The CRS I have set to the featureclasses and data inside my existing geodatabase is WGS 1984, so that can't be the issue. It seems like I have something incorrectly set up with my PostgreSQL database. The context to my problem is that I am attempting to migrate my existing geodatabase to PostgreSQL so that I can then deploy the geodatabase from PostgreSQL to ArcGIS Server. I can't deploy geodatabases from ArcGIS Pro it seems to Server, so I am trying to do this from PostgreSQL. I tried simply copying and pasting the data in the ArcGIS Pro contents pane, as documentation suggested was plausible. This is where I get errors. But I also get an error when using the export tool of a single featureclass.
Here are my software versions:
- ArcGIS Pro Version: 3.2.0
- pgAdmin Version: 8.10
- PostGIS Extension: 3.4
- PostgreSQL 14
I have followed the seemingly correct procedures to set up my database connection to PostgreSQL. That procedure is as follows:
- Installed PostgreSQL
- Installed PostGIS
- Created a new PostgreSQL Database using
CREATE DATABASE your_database_name;
- Enabled PostGIS in my Database using
CREATE EXTENSION postgis;
- Created a database connection in ArcGIS Pro
- Right-clicked databases and selected new database connection
- Entered the following: Database Platform: PostgreSQL, Instance (host & port info.), Database Name, username/password. Then I verified and created it.
- I also followed these steps to grant specific privileges to users just in case if multiple people will be working with the database in SQL with these following commands:
GRANT ALL PRIVILEGES ON DATABASE my_database_name_here TO my_user;
and this command:
GRANT USAGE ON SCHEMA public TO my_databasename_here;
Neither of these made an effect to
Also, here is a screenshot of the properties of my PostgreSQL database: