Good afternoon.
I am trying to debug a SDE sql server to file geodatabase missing records during export from both Arc Catalog and ArcGIS Pro - that is a critical task in our office.
ESRI rep suggested to me 'move' that file gdb layer to SQL Server to compare the missing records to determine the next steps. I thought it would be a piece of cake. It turned out to be a very challenging task.
When I tried an import into SDE from a file geodb, At first I got ERROR: 000210 - Cannot create output db connections\mySDEConn.sde\myTargetLyr
failed to execute (FC to FC).
I am not a SQL dba - let alone a SQL SDE dba.
So I located the security panel on SQL Server Management Studio and made my accounts (windowsDomain\acct1 and database user acct2) as gods for that particular database I wanted to import the records. so I did an import into SDE from these 2 SDE connections and I got this error:
Failed to Create Feature Class:
Database user name and current schema do not match.
[mySpatialDB."WINDOWSDOMAIN\ACCT1".testme] and [mySpatialDB."ACCT2".testme]
https://community.esri.com/t5/arcgis-enterprise-questions/database-username-and-current-schema-don-t-match/m-p/541404
A couple of users at the bottom of the posting had expressed their displeasure on the thought that user name had to be same as the schema...🤔. I lost 6 hours trying to import 1 feature from file geodb to sql server sde.
Luckily, this user name and schema mangling did not happen on the sql server side. We have a low level application user with privileges to run a stored procedure that dynamically names and creates tables (layer with geometry) . Luckily, it created it as dbo.
I am lost right now - trying to fix my original problem of identifying the reasons for missing records when going from SQL Server SDE to file geodatabase.
sorry for off loading my troubles. any suggestion
thanks and regards
ravi.