Hi everyone, I'm running into an issue while activ...
# suitecommerce
s
Hi everyone, I'm running into an issue while activating an SCA extension. The activation succeeds for JavaScript, SSP Libraries, SASS, Configuration, and Activation Manifest, but it fails during Templates compilation. The error is:
Copy code
{
  "type": "error.SuiteScriptError",
  "name": "90084",
  "message": "Operator EQUAL doesn't work with specified number of arguments",
  "stack": [
    "searchFile(/SuiteBundles/Bundle 582380/com.netsuite.extensionmanagement/ExtensionMechanism.Server/Services/FileApiSS2.js:88)",
    "getHandlebarsRuntimeContent(...TemplatesCompilerMapReduce.js:512)",
    "injectHandlebars(...TemplatesCompilerMapReduce.js:506)",
    "reduce(...TemplatesCompilerMapReduce.js:288)"
  ]
}
The stack trace shows the error originates from NetSuite's internal
searchFile()
method during template compilation, and it doesn't identify a specific
.tpl
file. Has anyone encountered this before or know what could cause this error? Any suggestions on how to identify the template or file that's triggering it would be greatly appreciated. Thanks!
c
I use poor man's binary search to find these errors. I comment out large portions of code until I get a successful deployment. Then I drill down until I get to the line that has the problem. (This assumes the problem is somewhere in your templates.)
👍 1
In an odd mix of irony, I just ran into this error while trying to do a first time activation on a new domain after a sb refresh.
s
Hi chris , thanks for your insights, but it seems like not a code issue because my code is running fine in my local (both theme and extensions) Seems to be a netsuite but Let me know if you found any solution for this Thanks
c
On my domain record, I had the touchpoints aimed at the wrong folder. Everything worked after correcting that mistake.
s
Hi christ, i verified the domain and website touchpoints they are pointing to correct ssp Still I'm facing the issue