Select to view content in your preferred language

Inserted rows in standalone table are not showing up in Attribute Table

118
2
Monday
Grabenmeier
New Contributor

Hi!
I do have an oracle geodatabase. Some tables do contain geometries - but most do not. All tables are used versioned (traditional).

 

Grabenmeier_0-1724656660717.png

I am using this code to add new data:

 

 

 

 

 public long? InsertRow(Dictionary<string, object> rowDefinition, EditOperation editOperation)
 {
     editOperation = editOperation.IsDone ? editOperation.CreateChainedOperation() : editOperation;
     //MapMember mapMember = MapUtil.GetMapMember(Table);
     FeatureLayer featureLayer = MapUtil.GetFeatureLayer(Table);
     RowToken rowToken;
     if (featureLayer != null)
     {
         rowToken = editOperation.Create(featureLayer, rowDefinition);
     }
     else
     {
         rowToken = editOperation.Create(Table, rowDefinition);
     }
     bool insertSuccess = editOperation.Execute();
     if (insertSuccess && editOperation.IsDone && editOperation.IsSucceeded)
     {
         return rowToken.ObjectID;
     }
     else
     {
         return null;
     }
 }

 

 

 

 

 

Therefore I am using editsession.Create(featurelayer or table) to insert. But only in case of featurelayer I do see new entries within the tableview grid. Adding new rows in the standalone tables are not showing up within ARCGIS Pro build in "Attribute Table". It is even not enough to close the current edit session and store the changes. I do have to reopen the project to see my changes. Another try was to use "MapMembers" instead of Table for the standalone table. But this didn't change anything.

 I do not have this problem when I use a local gdb instead of the remote oracle db (like in my screenshot).
Could someone please explain me what I am doing wrong?

Thanks!
Benne

0 Kudos
2 Replies
Grabenmeier
New Contributor

- this was not correct -

0 Kudos