Anas Jakwani
04/10/2025, 1:40 PMCeligo AI
04/10/2025, 1:41 PMAI generated answer (using internal Slack threads):Based on the conversations provided, it seems that the issue with validator.js not working for SCIS could be due to a few reasons: 1. Incorrect SuiteScript version: If your NetSuite instance is set to parse SuiteScript 2.x as 2.0 and your script uses features not implemented in 2.0 (like template strings and
let
), you might encounter issues. You should ensure that your instance is set to parse the correct SuiteScript version that your script is written in.
2. Incorrect use of async/await: If you're using async/await in your code, make sure they are necessary and used correctly. The client-script type in the help guide can provide the right entry point for script types.
3. File naming issues: Ensure that your JavaScript files have the .js
extension in the filename. Even if the system recognizes it as a JavaScript file, not having the .js
extension could cause issues.
4. Code validation: Make sure your code passes JS validity checks. If there are syntax errors, they could prevent the script from running correctly.
Remember to always double-check your code and the settings of your NetSuite instance to ensure everything is set up correctly.
******
Disclaimer:
This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes.
******Celigo AI
04/10/2025, 1:41 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.801906645
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.799480557
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.798414409
Celigo AI
04/10/2025, 1:41 PM