failed due to: InternalError: String object would exceed maximum permitted size of 33554432
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 05:34 AM
Hi,
We have a custom post-sensor script to populate the location and map a few details for GCP discovery.
I am encountering the following error and am unsure how to resolve it:
Post-sensor script "Post Sensor - Cloud VM Map platform, Add Location" failed due to: InternalError: String object would exceed maximum permitted size of 33554432
I have attached the post-sensor script. Could someone assist me in resolving this issue?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-10-2024 07:55 PM
this is because there is an OOB limitation on how much a string variable can hold in javascript.
You cannot do anything about it
check this KB
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 01:23 AM
Hi @Ankur Bawiskar ,
Thank you for your response.
I have reviewed the article, but I am still unable to fix the script. Any assistance with modifying the script would be greatly appreciated.
I have tried a couple of options before posting in community, but they did not help resolve the error.
Thanks and Regards,
Karthik Tammana
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 01:30 AM
Thank you for your response.
I have reviewed the article, but I am still unable to fix the script. Any assistance with modifying the script would be greatly appreciated. I have tried a couple of options before posting in community, but they did not help resolve the error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-11-2024 08:58 AM
there is no option for this. you cannot increase the string variable limit
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader