Im pushing a SuiteApp we built and it deploys no p...
# sdf
n
Im pushing a SuiteApp we built and it deploys no problem to one account but when I push to a second account I am getting this error and the file it is referring to is a SuiteLet: Details: SuiteScript 2.1 entry point scripts must implement one script type function.
a
does the script have on an onRequest entry point?
n
Yes, it deploys just fine to one account but when i push to another account i get this. And they are both on 2025.1
a
confirm your suitlet.xml is pointing to the correct script file.
n
It is
Usually i've seen this error related to a client script but not a suitelet before
a
yeah its common in CS where it just needs an empty approved entry point to make it happy
I've never seen it in a suitelet
n
yeah me either haha im on with support now but thought i would try here just in case someone else already went through it
a
its a pretty specific error, if there's nothing wrong with the script file entry point, and you're sure its the right script file... there's not much else to do here.
n
yep, thanks for trying!
a
lmk what you find out, cos this is weird 🙂
✅ 1
b
One potential cause is, believe it or not, a syntax error in your script. It may pass on a system that already had the script but then fail on a different system where the script didn't exist before or had a different script ID because that seems to trigger greater scrutiny. It may also depend on the system's "run SuiteScript 2.x scripts as" setting.
In my case, I spent about 12 hours troubleshooting and eventually fixed the issue by changing any
let
statements in my script to
var
statements (after stripping everything down to a stub and re-adding the script a line at a time).
n
I already checked the syntax and that's not an issue. If you remove the SL and its script record, the suiteapp deploys no problem. It's odd. Still waiting for NetSuite to give me an answer