Select to view content in your preferred language

Update feature returing false | canUpdate(feature)

277
1
03-04-2024 05:55 PM
DeepamPalaniswami
New Contributor III

Hi Guys,

I am facing the issues when i am trying to edit an entry. I tried calling canUpdate(feature), it returned false.

I get an error message: exceptions.GeodatabaseException: message=Geodatabase item not found., additionalMessage=The following features were not found: [-9223372036854775808], errorCode=3010


Code snippet

if (featureTable.canUpdate(feature)) {
// update the feature to the feature table
featureTable.updateFeature(feature).onSuccess {
featureTable.applyEdits()
}.onFailure {
showError(it.message.toString(), window.decorView.rootView)
}
}

0 Kudos
1 Reply
DeepamPalaniswami
New Contributor III


   Can you throw some detail info what you mean?  I have added this check 

featureTable.canUpdate(feature)

But before, I didnt add that check, as I was able see the table is editable and also can add values into it.

 



0 Kudos