Case #4973373: Error message when deploying new SCA Theme version

Try Any of these methods when there is an error faced deploying a new theme.

  • Review permissions on roles and files involved with the theme you are deploying
    • Use a standard role (SCDeployer) then confirm if error is still reproducible with this setup
    • Create a new custom role based on SuiteAnswers Article: “Create a Custom Role with Fetch and Deploy Permissions” (id: 102610) then confirm if error is still reproducible with this setup
  • Try fetching the standard base theme and then without any changes, deploy it
    • Confirm if error is still reproducible with this setup
  • Try fetching a fresh standard base theme and then copy the contents of your Workspace folder then try deploying it
    • Confirm if error is still reproducible with this setup
  • Steps that worked for other customers who encountered same error:

Set Uploader Manifest to empty json object.
1. Go to Documents > Files > File Cabinet
2. Go to Search Text Box
3. Find __ns-uploader-manifest__.json for your domain
4. Click Edit
5. Find preview __ns-uploader-manifest__.json
6. Click Edit
7. Set Content to “{}”
8. Click Save

Replace Chunk value:
1. Go to top directory of your ThemeDevelopmentTools
2. Go to gulp/extension-mechanism/deploy/deploy.js:
3. Find const chunk = configs.deploy_config.chunk_size || 100;
4. Replace with const chunk = 40;
5. Save the file
6. Run gulp theme:deploy –create

if ever this doesn’t work, kindly revert back the changes made. Please try doing manual upload if it would temporarily work for you: 

  • First create the zip to upload the theme to netsuite.
    • Inside the local folder of ThemeDevelopmentTools find the folder of the theme to deploy inside /Workspace
    • Change the version of the manifest.json file to one larger than the current one
    • Generate a zip that contains all the content of the theme folder (assets, Modules, Skins, manifest.json, and all the other files and folders that may be there as well)
  • Upload the files to the file cabinet
    • Copying the values “vendor”, “name” and “version” from the manifest.json file that is in the zip of the theme to upload and creating the following folder in File Cabinet > SuiteScripts > Deploy_Extensions > [Theme Vendor] > [Theme Name]@[Theme Version]
      • Example: If manifest.json shows “vendor”: “SC”, “name”: “Posh”, “version”: “4.0.0”,
      • Folder in File Cabinet should be: File Cabinet > SuiteScripts > Deploy_Extensions > SC > Posh@4.0.0
    • Inside the new folder created, use the Advanced Add option to add the previously generated zip. (It is possible that the previous version of the theme exists there and it is an aid to verify that the structure of the previous one matches the uploaded zip)
  • Create the extension record of the theme.
    • Go to Customization > Lists, Records & Fields > Record Types
    • Look for SC ExtMech Extension and select “New Record” in the list view
    • Fill the mandatory fields using the same values from manifest.json.
    • In the MANIFEST field select the manifest.json uploaded previously
  • Activate the theme in SCEM UI
    • In the Activate Themes and Extensions page, mark the UPDATE checkbox if available.

Leave a comment

Your email address will not be published. Required fields are marked *