This is the first time I noticed this error message since I started working on client side programming in SharePoint. I have REST API code to pull data from multiple Lists and I'm calling this script in a page through Content Editor Web Part.
The error message is not shown on the page. However, the web part is empty without any data. So I turned on the Developer Tools Console to check for any clue. This is where it promptly displayed:
A few questions that came up in my mind: Can we catch this exception so that we can show the user-friendly message instead of the blank web part? How do we optimize the overall solution in the application development keeping in mind that we might have written tons of code across pages? If I get some time to dig more into it and find anything useful, will share in my blog.
The error message is not shown on the page. However, the web part is empty without any data. So I turned on the Developer Tools Console to check for any clue. This is where it promptly displayed:
Error: Not enough storage is available to complete this operationFirst thing it stuck me was to check my machine's RAM usage. When I checked in Task Manager, RAM usage was more than 80%. I had opened lots of IE tabs. I closed a couple of browser tabs and RAM usage came down to 50%. I refreshed my SharePoint page and alas, it is showing data as expected!
A few questions that came up in my mind: Can we catch this exception so that we can show the user-friendly message instead of the blank web part? How do we optimize the overall solution in the application development keeping in mind that we might have written tons of code across pages? If I get some time to dig more into it and find anything useful, will share in my blog.
Comments
Post a Comment