Hi,
I'm trying to update a StandaloneTable through the SDK. It is a .dbf file, in my map at the time of running the code. I am using ArcGIS Pro 2.9.
I am getting the error on the row.Store() line. I have tried to update my inspFile.Search(qf) line to inspFile.Search(qf,True), but then I get a "No Overload for method Search take 2 arguments" error. Is this just a 2.9 issue?? If so, is there some other way to update the .dbf that would work in 2.9??
StandaloneTable inspFile = map.GetStandaloneTablesAsFlattenedList().FirstOrDefault(tbl => tbl.Name == GlobalVars.HydInspFile);
QueryFilter qf = new QueryFilter();
qf.SubFields = "FACILITYID";
qf.WhereClause = "FACILITYID = '" + shpFacilityID + "'";
using (RowCursor rowCursor = inspFile.Search(qf))
{
while (rowCursor.MoveNext())
{
using (var row = rowCursor.Current)
{
row["FACILITYID"] = sdeFacilityID;
row.Store();
}
}
}