Registering a view with the geodatabase

2981
5
05-21-2019 01:58 AM
MuglaCbs1
New Contributor II

Hi,

İ created a view with "Create Database View tool" in arccatalog.

That view uses 2 nonspatial table and i do not have an objectid field in it.

So when i try to register that view table with "register with geodatabase tool" 

i make blank Object ID Filed box for creating a new ObjectID field.

http://desktop.arcgis.com/en/arcmap/10.6/manage-data/geodatabases/registering-a-table-with-the-geoda...
The table or view must contain a not null, unique, integer field to be used as an ObjectID field.

If you register a table, you can specify an existing field for the ObjectID. If you do not specify an existing field for the ObjectID when registering a table, ArcGIS will add an ObjectID field to the table.

But i get this error:

ERROR 999999: Error executing function.
The current table doesn't have an ArcGIS-maintained row_id column [42S22:[Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Invalid column name 'OBJECTID'.]
Failed to execute (RegisterWithGeodatabase).

İ can not supply a objectid field for the tool because i create a view using LEFT OUTER JOİN from one to may related tables to get all data in view.
any suggestions.?
Arcgis Server Enterprise 10.6
MsSQL server 2016
ArcGis 10.6
0 Kudos
5 Replies
George_Thompson
Esri Frequent Contributor

Geodatabase‌ - adding a broader audience

--- George T.
BugPie
by
Occasional Contributor III

poking around for a similar solution. Any chance there is one out there someone following can point me towards?

0 Kudos
AdelaideZumwalt1
Occasional Contributor II

Hello - were you able to figure this out? I am on SQL 2019 and ArcGIS Server 10.6. I'm getting the same error in ArcGIS Pro and ArcMap. My tables registered without issue. My view (which is just an INNER JOIN of the two tables) will not register.

ArcGIS Pro Error: 

ERROR 160236: The operation is not supported by this implementation.
Failed to execute (RegisterWithGeodatabase).

https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/160001-170000/tool-...

I should also add, when I right click the View in Catalog and try to register it that way I get the following error: 

ERROR 999999: Something unexpected caused the tool to fail. Contact Esri Technical Support (http://esriurl.com/support) to Report a Bug, and refer to the error help for potential solutions or workarounds.
The current table doesn't have an ArcGIS-maintained row_id column
Failed to execute (RegisterWithGeodatabase).

0 Kudos
AdelaideZumwalt1
Occasional Contributor II

So - in case anyone runs into the same thing, I figured it out. I needed to have both ObjectID fields from both tables visible in the view in order to register it. 

0 Kudos
RandyKreuziger1
Occasional Contributor

What if the table the view is based on is just a table with no ObjectID?  That the situation I'm dealing with.

0 Kudos