From bf781deb59ce4a947aad6f1b99a2f3e579c8cc02 Mon Sep 17 00:00:00 2001 From: SheetJS Date: Fri, 17 May 2024 12:21:18 -0400 Subject: [PATCH] NetSuite error note See https://git.sheetjs.com/sheetjs/sheetjs/issues/3097 --- .../01-installation/07-bun.md | 14 +++++++++++++ docz/docs/03-demos/30-cloud/02-netsuite.md | 20 +++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/docz/docs/02-getting-started/01-installation/07-bun.md b/docz/docs/02-getting-started/01-installation/07-bun.md index 7c08f1e..0cc5de3 100644 --- a/docz/docs/02-getting-started/01-installation/07-bun.md +++ b/docz/docs/02-getting-started/01-installation/07-bun.md @@ -123,6 +123,7 @@ This demo was last tested in the following deployments: |:-------------|:--------|:-----------| | `darwin-x64` | `1.1.4` | 2024-04-19 | | `win10-x64` | `1.1.4` | 2024-04-19 | +| `win11-x64` | `1.1.8` | 2024-05-17 | | `linux-x64` | `1.1.4` | 2024-04-25 | ::: @@ -206,6 +207,19 @@ rm package.json bun.lockb SheetJSBun.js rm -rf ./node_modules ``` +:::note pass + +PowerShell does not support `rm -rf`. Instead, each file must be removed: + +```powershell title="Windows Powershell commands" +rm package.json +rm bun.lockb +rm SheetJSBun.js +rm .\\node_modules -r -fo +``` + +::: + At this point, `app.js` will be the only file in the project folder. 5) Run the script: diff --git a/docz/docs/03-demos/30-cloud/02-netsuite.md b/docz/docs/03-demos/30-cloud/02-netsuite.md index 8ea7847..0a974db 100644 --- a/docz/docs/03-demos/30-cloud/02-netsuite.md +++ b/docz/docs/03-demos/30-cloud/02-netsuite.md @@ -342,6 +342,26 @@ var newfile = file.create({ context.response.writeFile(newfile); ``` +## Troubleshooting + +[NetSuite users reported](https://git.sheetjs.com/sheetjs/sheetjs/issues/3097) +errors using SheetJS scripts: + +``` +Fail to evaluate script: com.netsuite.suitescript.scriptobject.GraalValueAdapter@68d0f09d +``` + +NetSuite is incorrectly treating `xlsx` as a reserved word. As this behavior is +not documented, it is believed to be a NetSuite bug. + +[Exasperated](https://git.sheetjs.com/sheetjs/sheetjs/issues/3097#issue-3378) +users concluded that Oracle will not be addressing this bug: + +> Oracle is not going to do anything with this + +The ["Oracle Bugs"](/docs/getting-started/installation/amd#netsuite) warning in +the NetSuite installation page includes a workaround that involves manually +patching the library. [^1]: See ["SuiteScript 2.x API Introduction"](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/chapter_4387172221.html) in the NetSuite documentation. [^2]: See ["SuiteScript 2.x Custom Modules"](https://docs.oracle.com/en/cloud/saas/netsuite/ns-online-help/chapter_4704097697.html) in the NetSuite documentation.