Solved! Go to Solution.
Does it work if you use the CreateDatabaseSequence tool to create the sequence as the data owner?
Does it work if you use the CreateDatabaseSequence tool to create the sequence as the data owner?
Hi Robert,
I need some additional information regarding cross-schema access in PostgreSQL and ArcGIS Pro.
In our PostgreSQL database, we have multiple schemas created for project-related custom tables. For example:
My requirement is that when a feature is created or updated in ArcGIS Pro, an Arcade attribute rule should execute, retrieve information from a table in the ROSE schema, and then populate attributes in a feature class stored in the UNM_OWNER schema.
I developed a sample Arcade expression to test access to a table in the ROSE schema, but the table is not being accessed successfully. I have already granted the necessary permissions in PostgreSQL, including schema and table-level access.
Could you please let me know if there are any limitations or additional configuration requirements for accessing tables across different PostgreSQL schemas from Arcade attribute rules in ArcGIS Pro.
Any guidance on the root cause or recommended approach would be greatly appreciated.
var assocTable = FeatureSetByName(
$datastore,
"ni_20exdataun.Rose.bt_naming_sequences"
);
return Count(assocTable);
The recommended way to use sequences is to use the CreateDatabaseSequence tool to create managed sequences for all the different sequences you need to be used by the attribute rule using the data owner that will need access to these sequences. You can then reference that sequence in an attribute rule's run by that database user. You can find an example in this KB article: Add Auto Sequential Values Using Attribute Rules in ArcGIS Pro.
If you haven't already, please log a case with support to review the error you are receiving along with ensuring that everything is configured correctly.
@JayaramBT are the tables you're trying to access registered with the geodatabase?