You need to handle errors in UpdateRecord.js.
Which code segment should you add at line UR06?
catch(error) {
alert("Caught error: " + error.message);}
Exception exception = Server.GetLastError() ;
if(exception != null)}
catch(exception e){
console.writeline(e)}
function (error){
console.log(error.message)}
https://docs.microsoft.com/en-us/powerapps/developer/model-driven-apps/clientapi/reference/xrm-webapi/updaterecord
Submit