Reposting an older query. Need help with a (potent...
# suitecommerce
v
Reposting an older query. Need help with a (potential) SuiteCommerce architectural issue / activation limitation: We're facing an issue in our environment where our activations are failing with the following error:
Copy code
{
  "type": "error.SuiteScriptError",
  "name": "473832",
  "message": "The file content you are attempting to access exceeds the maximum allowed size of 10.0 MB.",
  "stack": [
    "createError(N/error)"
  ],
  "cause": {
    "message": "The file content you are attempting to access exceeds the maximum allowed size of 10.0 MB.",
    "stack": [
      "create(N/file)",
      "reduce(/SuiteBundles/Bundle 374045/ExtensionMechanism.Server/CompilersMapReduce/TemplatesCompilerMapReduce.js:241)"
    ],
    "name": "473832"
  },
  "id": "",
  "notifyOff": false,
  "userFacing": true
}
This error appears on the “Templates” step of the activation process. We did a lot of digging in to check if it was an issue with one of our extensions (we have 8 custom extensions) but couldn't find any concrete root cause. We later realized that if we removed any 1 of the extensions from the activation list, the activation completed successfully. After some more digging in I noticed that the file shopping-templates_x.js (_x=some number, example: shopping-templates_5.js_) for the failed activation instance was 10.0MB, whereas the same file for the successful activation was 8.57 MB. We tested activations with several combination of extensions, and in all cases where the activation succeeded, the file size was less than but close to 10.0MB. It seems that the activation process is compiling the templates from our activated extensions into one shopping-templates_x.js file, and since it crosses the 10.0MB limit (Files >10MB cannot be accessed via SuiteScript) when we try to activate all our extensions, the activation is failing. The file shopping-templates_x.js is located here in the File Cabinet: Web Site Hosting Files > Live Hosting Files > SSP Applications > NetSuite Inc. - SCS > SuiteCommerce Standard > extensions. It will be great if I can get some inputs from experts on this. P.S.: We're using the latest SuiteCommerce (2021.1.2) and the latest SuiteCommerce Extension Management (2021.1.3)
f
Seems to be due to RESTlet (SuiteScript) governance. If I am not mistaken the limit is 10mb.
v
Yes, that can be it. Looking at the error ("The file content you are attempting to access exceeds the maximum allowed size of 10.0 MB."), it seemed to me that the activation process is attempting to access a file whose size is greater than 10MB.
Does this mean that there is a limitation as to how many extensions we can activate?
b
My assumption is that, it's not about the number of extensions but more about the number of files (assets, tempaltes, scss, etc) in the total extensions. I did come across a similar issue when deploying more than 100 files/folders in a theme. Maybe I am wrong.
👍 1