Forum Discussion
VeeExcelLearn
Jul 22, 2022Brass Contributor
Error: Invalid statement, ResultCode: 1
This is weird, all of a sudden I am getting this error and cannot create a SharePoint list. anyone encounter this? What is the issue here?
Spookyfish
Nov 14, 2023Copper Contributor
My company has this error too. It started at one client and spread after clients recieving software updates.
After doing some log debugging I pinpointed the bug to CORS.
After the initial list/page has been shown, the following pages and lists fails. It seems like CORS deems locally cached files unsafe and thus blocks them, but fails to fetch from original source (xxxx.sharepoint.com).
I tried multiple tests with Chrome with the setting -disable-web-security and with CORS killed, Sharepoint works again.
You can try a workaround with the above or installing the browser extension CORS unblock, but it will lower security - use it at your own risk.
The error persists over multiple browsers pointing to Microsoft Sharepoint as being the culprit.