Select to view content in your preferred language

Register With Geodatabase fails due to lack of permission

423
2
Jump to solution
01-22-2025 12:53 AM
yockee
by
Frequent Contributor

I have a user called "user1" that creates a non-spatial table (it just contains tabular data) on SCHEMA-x on Postgresql.

Now, I want to register this table so that the geodatabase can read it.

Here is the privilege that I have granted:

GRANT USAGE ON SCHEMA sde TO user1;
GRANT USAGE ON SCHEMA SCHEMA-x TO user1;
GRANT SELECT, INSERT, UPDATE, DELETE ON new_table TO sde;

I login to SDE from Arcgis Pro 11.0 using the owner of SCHEMA-x . I then use tool Register With Geodatabase. This comes up "ERROR 160228: The user does not have permission to execute the operation."

 

So, what do I miss ?

0 Kudos
1 Solution

Accepted Solutions
VinceAngelo
Esri Esteemed Contributor

Table ownership and schema are different things in PostgreSQL. ArcObjects geodatabase registration functionality requires that the schema be the same as the owner login. You can use the tables without registration, or you can name them as required for registration.

- V

View solution in original post

2 Replies
George_Thompson
Esri Notable Contributor

I am wondering if "SCHEMA-x" (table owner) needs to have the same permissions as a data owner to "own" the object in the geodatabase; https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/manage-postgresql/privileges-postgre...

If you update SCHEMA-x's permissions to that of a data owner and re-run the tool, does that work?

--- George T.
0 Kudos
VinceAngelo
Esri Esteemed Contributor

Table ownership and schema are different things in PostgreSQL. ArcObjects geodatabase registration functionality requires that the schema be the same as the owner login. You can use the tables without registration, or you can name them as required for registration.

- V