Quantcast
Viewing all articles
Browse latest Browse all 10096

Cross-domain-request from app to list in hostweb from own aspx-form-site opened in modal dialog: often javascript runtime-error 0x800a138f

Hello everybody,

I created a SharePoint hosted AddIn on SharePoint Online and in this AddIn I will read, write, update and delete listitems from a SharePoint calendar list stored in the hostweb via REST-calls.

To do visualize these calendar entries in the AddIn I created bootstrap form in an aspx-website hosted in the AddIn which is called in modal dialog from the AddIn-webpart-page.

Read-operations work without any problems and are shown correctly in the aspx-website with the bootstrap form.
But if I do create/write-, update- or delete-operations via REST-calls via SP.RequestExecutor I often get JavaScript runtime-errors via Visual Studio 2015 debug:

Exception error in https://appweburl Line 2, Column 9010 inhttps://appweburl/_layouts/15/sp.requestexecutor.js SP.RequestExecutor.$k[c]=h

0x800a138f - JavaScript runtime error: Unable to set property of https://appweburl undefined or null reference

I didn't manage it to do some helpful debug.
After I get the error message and try do to the same operation with the same data and code again (if I click my save-button several times) then it works sometimes the second or fifth-time and so on. Sometimes it also works the first time.

In the appmanifest.xml file I set "Fullcontrol"-rights to the website collection.

So it is very strange for me that the same code works sometimes and sometimes not.
Does anybody have an idea what could cause this Problem?
(If you need more Information or codesamples it's no problem to provide more Information!)

Thank you very much!

Kind regards,
Robert.


Viewing all articles
Browse latest Browse all 10096

Trending Articles