Hi,
Created powerapps application and storing data to Oracle. Application is creating new record in Oracle table without any issue but I am getting the following error after submitting the application.

Here is the code for PrimaryKey datacard value om Submitbutton.
Refresh('[DatabaseName].[TableName]');
UpdateContext({sID: First(Sort('[DatabaseName].[TableName]', ID, Descending)).ID + 1});
Can anyone please let me know suggestion to get rid of this error?
Any help would be greatly appreciated.
Thank you