After a long day of collecting data in the field using an offline map area, we've received the Sync Error "Unknown error occurred". I've followed the instructions of adding global ids to our sde dataset and registering as versioned ("Register the selected objects with the option to move edits to base" unchecked), which allowed us to create an offline map area, but when we try to sync our edits through cell service or wifi, we receive the same error. Does anyone know why this error would arise?
Thanks
Solved! Go to Solution.
We found a resolution to our issue on SQL Server.
The SQL Server built-in "Editor" account "default schema" was mapped to the "data owner" schema.
by re-mapping the SQL Server "editor" account to its own schema, the offline syncs started working again.
I realize this 'redacted' screen grab is rough... but...
Using MSSQL Server Management Studio - Login to the instance
Security -> Logins -> "Editor account" -> properties (opens the window "Login Properties - <account name>")
Choose "User Mappings" on the right
Columns are:
And you can see the "edit" user was mapped to the "dbo" schema (data owner). This was the problem.
We re-mapped the default schema to the same account:
Hope this helps!
Which version of Collector are you using? New or Classic? If you're using the newer version of Collector, are you able to get a more detailed error message from the logs?
We are using the new version of Collector. I have found the logs in Server Manager and have attached the screenshot. I imagine it is related to the "No path for delta data changes" error...?
Thanks for posting a screenshot of the log! Unfortunately I have to admit that I don't know an exact answer to this issue, but it gives anyone else trying to help a much better lead to go on when troubleshooting.
I did find these pages when researching that error message:
ArcGIS Enterprise 10.6.1 Sync Service: No path for delta data changes
Maybe those will help? Good luck!!
I had just found the first link when I received your reply! I believe I've found the answer, but will respond when I know for sure.
Thank you!
After referencing the links Katherine Clark has posted, the solutions seem to be isolated to an Oracle database. We are using SQL Server. After granting CREATE TABLE privileges to the database user (which I'm sure were already granted), I've tried creating the SDE_UUID_TEMP temporary table manually in our SQL Server database, but still no dice for either of those methods.
Can someone explain how the ArcGIS Online account we used to collect the offline data is related to the database user?
We too have started to experience this situation in our ArcGIS Enterprise v10.7.1 environment.
Quick Tech Details:
If we publish the service with our data schema owner, then the offline download/sync functions as expected. If we publish with a built-in SQL Server "editor" account, then the sync fails with the same behavior mentioned in this thread "No path for delta data changes". All other references we searched for were related to the ORACLE "create table" issues.
We deployed a feature service with this configuration (sync enabled and published with a built-in SQL 'editor' account) when we originally built the ArcGIS Enterprise environment at v10.6.1 and were successful with offline sync then. Seems possibly related to the v10.7.1 upgrade?
We may try to upgrade the back-end Enterprise Geodatabase to v10.7.1 to see if it resolves, but expect it to continue to fail.
The back-end SQL Editor account has full "Insert/Create, Update, Delete, Query/Read" permissions on all back-end database tables (including their underlying 'a' and 'd' tables in the traditional versioned configuration). The SQL editor account also has "connect, create table/procedure/view/function" permissions.
Any help is appreciated. Thanks.
We found a resolution to our issue on SQL Server.
The SQL Server built-in "Editor" account "default schema" was mapped to the "data owner" schema.
by re-mapping the SQL Server "editor" account to its own schema, the offline syncs started working again.
I realize this 'redacted' screen grab is rough... but...
Using MSSQL Server Management Studio - Login to the instance
Security -> Logins -> "Editor account" -> properties (opens the window "Login Properties - <account name>")
Choose "User Mappings" on the right
Columns are:
And you can see the "edit" user was mapped to the "dbo" schema (data owner). This was the problem.
We re-mapped the default schema to the same account:
Hope this helps!
We found another inconsistent configuration on one of our SQL Server environments. Posting here for the community.
The account used to publish had the "Connect" permissions granted, but did NOT have the "Create Procedure", "Create Table", or "Create Function". See (redacted) screenshot:
Find this in SQL Server Management Studio under "Databases" -> Right-Click the database -> "Properties" -> "Permissions" and choose the account that was published to the server
Hi Patrick, I'm having very similar issues, running SQL as well. Could you clarify your statement:
The SQL Server built-in "Editor" account "default schema" was mapped to the "data owner" schema.
Are you talking about the administrative account that you use to connect to the database, and ultimately publish the service?