
Announcements
After enabling Named Formulas, when defining a formula that references a data source, in this case SharePoint, when removing the data source without removing the created formula, the following message appears:
WebAuthoring abnormal termination.
Client date/time: 2022-10-27T14:46:57.928Z
Version: 3.22103.19 (v3.22103.19.239579412)
Session ID: b5bbee5c-7556-4a4f-87c5-9773d39539e7
description: {"exception":{"message":"XMLHttpRequest error(string). {\"traceLevel\":3,\"message\":\"An error occurred in Document API document.removedatasourceasync, activity id dae81e03-fd80-454b-9b60-cd12ed706de3\",\"status\":500}","name":"UnhandledError","_isCritical":true,"detail":{"exception":{}}},"error":"[circular]","promise":{"_oncancel":null,"_nextState":null,"_state":{"name":"error","enter":"[function]","cancel":"[function]","done":null,"then":null,"_completed":"[function]","_error":"[function]","_notify":"[function]","_progress":"[function]","_setCompleteValue":"[function]","_setErrorValue":"[function]"},"_value":"[circular]","_isException":false,"_errorId":69,"done":"[function]","then":"[function]"},"id":69,"setPromise":"[function]"}
stack: UnhandledError: XMLHttpRequest error(string). {"traceLevel":3,"message":"An error occurred in Document API document.removedatasourceasync, activity id dae81e03-fd80-454b-9b60-cd12ed706de3","status":500}
at t [as constructor] (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/Core.js?v=3.22103.19.239579412:2:264579)
at new t (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/Core.js?v=3.22103.19.239579412:2:363188)
at @PA-client/appmagic-webauthoring.e._translateError (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/AppMagic.WebAuthoring.js?v=3.22103.19.239579412:2:153885)
at @PA-client/appmagic-webauthoring.e._raiseTerminalError (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/AppMagic.WebAuthoring.js?v=3.22103.19.239579412:2:153166)
at @PA-client/appmagic-webauthoring.e._unhandledException (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/AppMagic.WebAuthoring.js?v=3.22103.19.239579412:2:153079)
at e.<anonymous> (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/AppMagic.WebAuthoring.js?v=3.22103.19.239579412:2:151681)
at https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/Core.js?v=3.22103.19.239579412:2:454388
at Object.throw (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/Core.js?v=3.22103.19.239579412:2:454494)
at u (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/Core.js?v=3.22103.19.239579412:2:453268)
at Object.q [as _notify] (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/openSource/modified/winjs/js/base.js?v=3.22103.19.239579412:2:38070)
errorNumber: 0
errorMessage: XMLHttpRequest error(string). {"traceLevel":3,"message":"An error occurred in Document API document.removedatasourceasync, activity id dae81e03-fd80-454b-9b60-cd12ed706de3","status":500}
callStack: UnhandledError: XMLHttpRequest error(string). {"traceLevel":3,"message":"An error occurred in Document API document.removedatasourceasync, activity id dae81e03-fd80-454b-9b60-cd12ed706de3","status":500}
at t [as constructor] (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/Core.js?v=3.22103.19.239579412:2:264579)
at new t (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/Core.js?v=3.22103.19.239579412:2:363188)
at @PA-client/appmagic-webauthoring.e._translateError (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/AppMagic.WebAuthoring.js?v=3.22103.19.239579412:2:153885)
at @PA-client/appmagic-webauthoring.e._raiseTerminalError (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/AppMagic.WebAuthoring.js?v=3.22103.19.239579412:2:153166)
at @PA-client/appmagic-webauthoring.e._unhandledException (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/AppMagic.WebAuthoring.js?v=3.22103.19.239579412:2:153079)
at e.<anonymous> (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/AppMagic.WebAuthoring.js?v=3.22103.19.239579412:2:151681)
at https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/Core.js?v=3.22103.19.239579412:2:454388
at Object.throw (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/Core.js?v=3.22103.19.239579412:2:454494)
at u (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/js/Core.js?v=3.22103.19.239579412:2:453268)
at Object.q [as _notify] (https://authoringcdn-prodsbril102.azureedge.net/v3.22103.19.239579412/studio/openSource/modified/winjs/js/base.js?v=3.22103.19.239579412:2:38070)
When you click Close, the platform resets and returns to the home page.
Of course this only happens while having a formula referencing the removed data source. If you remove the formula before removing the data source, no error appears.
Version:
Steps to recreate:
1 - Enable Named Formulas;
2 - Add data source (tested with SharePoint);
3 - Create a formula in App.Formulas that references the data source;
4 - Remove the data source.
Thanks for reporting this. I will report this to the team immediately.