generated bytecode for method exceeds 64K limit

priyankapalaska
Giga Contributor

Hi Good morning,

I am stuck in a code generated error in script include and could not save my code.

Error : Could not save record because of a compile error: JavaScript parse error at line (9) column (0) problem = Encountered code generation error while compiling function "null": generated bytecode for method exceeds 64K limit. (<refname>; line 9)

Please Advise how to avoid this error to be occurred again.

4 REPLIES 4

BALAJI40
Mega Sage

Please paste your code to look.


the script is about 2000 lines, so i could not post it. and one thing i observed that it is not allowing me to create new variables, other than creating new variable else written is getting saved. but this occurs when creating new variables.


Hello Priyanka,



Please share the code which was written in the line 9.


Karthik Reddy T.
ServiceNow Commnunity MVP -2018 class.

This is the code staring:



3             sendMDMRequestDetails: function(req)


4           {


5           this._sendRequestDetails(req,'sc_req_item',current.number);


6           },


7


8


9           _sendRequestDetails: function(sid,t,num)


10           {


11