ec
08/07/2024, 6:58 PMalien4u
08/07/2024, 7:30 PMec
08/07/2024, 7:31 PMec
08/07/2024, 7:32 PMTim Pilgrim
08/08/2024, 12:27 AMreturn results.map(JSON.stringify)
of course you need to JSON.parse at the start of the map stage.
@alien4u we had to stop passing search results and query results, as we were hitting over the 4000 limit in search and 5000 limit in query. As well as seeing some corruption / weirdness when returning long text fields with over 100,000 characters in themTim Pilgrim
08/08/2024, 12:28 AMreturn [1,2,3] //Works;
return [{basic: 1}, {basic: 2},{basic: 3}]; //Fails {errors: ["{"type":"error.SuiteScriptError","name":"UNEXPECTED_ERROR","message":"An unexpected SuiteScript error has occurred"}"]}
return [{basic: 1}, {basic: 2},{basic: 3}].map(JSON.stringify); //Works
ec
08/08/2024, 12:29 AMec
08/08/2024, 12:29 AMTim Pilgrim
08/08/2024, 12:30 AMTim Pilgrim
08/08/2024, 12:30 AMec
08/08/2024, 12:33 AMTim Pilgrim
08/08/2024, 12:35 AMalien4u
08/08/2024, 12:42 AMN/search
native and documented methods we don’t know about that unexpected error and we don’t have a way or obligation to fix it, or prevent it to escalate to Production.
That, again, is why I even when people don’t like it still insist in… properly gather your results in getInputData before passing them to any other stage.Tim Pilgrim
08/08/2024, 12:46 AMalien4u
08/08/2024, 12:49 AMTim Pilgrim
08/08/2024, 12:50 AMalien4u
08/08/2024, 12:52 AMalien4u
08/08/2024, 12:54 AMec
08/08/2024, 1:03 AMec
08/08/2024, 1:04 AMec
08/08/2024, 1:04 AMec
08/08/2024, 1:07 AMalien4u
08/08/2024, 1:08 AMec
08/08/2024, 1:09 AMec
08/08/2024, 1:09 AMalien4u
08/08/2024, 1:10 AMec
08/08/2024, 1:11 AMec
08/08/2024, 1:12 AMalien4u
08/08/2024, 1:15 AMec
08/08/2024, 1:16 AMec
08/08/2024, 1:16 AMec
08/08/2024, 2:27 PMTo give an update regarding U2 Issue 782436 : SuiteScript > Map/Reduce > UNEXPECTED_ERROR, our QA was able to identify the possible root cause of the defect and has now assigned the issue to one of our Developers to find a fix.
A possible alternate solution is to use JSON.stringify on get_input stage.
We'll keep you posted for further updates on the issue.
ec
08/08/2024, 2:56 PMThis is an update regarding U2 Issue 782436 .
We would like to inform you that a potential fix has been identified and is now being verified by our QA engineers before releasing it to your account.
We will send another update once the fix is ready to be released.
Thank you for understanding.