Sarah
03/12/2025, 6:06 PMCeligo AI
03/12/2025, 6:06 PMAI generated answer (using internal Slack threads):Based on the conversations, it seems like the issue of failing to get input data in a map/reduce script in NetSuite can be due to several reasons: 1. Incorrect SuiteScript version: Some users have reported fewer issues with SuiteScript 2.0 compared to 2.1. If you're experiencing issues, it might be worth trying to switch to version 2.0. 2. Incorrect usage of context in map and summarize stages: The context for a map is not used the same as the context for a summarize. Make sure you're using the correct context for each stage. 3. Issues with the data being passed: If you're passing data from the getInputData stage to the map or reduce stage, make sure the data is correctly formatted and parsed. If the data is a JSON object, you might need to loop through it or parse it before passing it to the next stage. 4. Issues with the script itself: If you're still experiencing issues, it might be worth deleting the script and trying again. Sometimes, scripts can get stuck in processing and need to be restarted. 5. Permissions: Make sure the script is being run with the correct permissions. Some scripts can only be run by administrators. Remember to use logging extensively to troubleshoot issues. Log messages can provide valuable insights into what might be going wrong with your script. ****** 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
03/12/2025, 6:06 PMSlack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.85990268
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.855437756
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.853594482
Celigo AI
03/12/2025, 6:06 PM