failed due to: InternalError: String object would exceed maximum permitted size of 33554432

karthiktammana
Tera Expert

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?

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

@karthiktammana 

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

Server side script fails with error "String object would exceed maximum permitted size of 33554432" ... 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

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

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.

@karthiktammana 

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.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader