Resolve SuiteScript ReferenceError: “session” is not defined

When the Notice (SuiteScript) ReferenceError: “session” is not defined is thrown within NetSuite, the steps mentioned below can be used to rectify the error.

Step 1) Navigate to Commerce > Hosting > SSP Applications

Step 2) Click the View link of the current SSP Application

Step 3) Under the Supported Touch Points subtab, make sure that it is populated with the correct values

Step 4) Under the Scripts subtab > Libraries sublist, make sure that it is populated with the correct LIBRARY SCRIPT FILE

a)To get the correct path for the missing LIBRARY SCRIPT FILE, navigate to Commerce > Hosting > SSP Applications

b)Copy the APPLICATION FOLDER link

c)Change the “:” to “/” (e.g. Web Site Hosting Files/ Live Hosting Files/SSP Applications/<Application Publisher>/<Application Folder>/ssp_libraries.js)

d)Paste the path on the Scripts subtab > Libraries sublist

e)Click Add

f)Click Save


Leave a comment

Your email address will not be published. Required fields are marked *