Gaston Mosteiro
10/30/2025, 6:12 PMInstallation Script Error
JS_EXCEPTION
org.mozilla.javascript.EcmaError: TypeError: Cannot read property "parent" from null
(/SuiteBundles/Bundle 521562/CommonUtilities/UtilsSS2.js#57)
I’m using the ExtensionBundleSS2.js installation script.
However, since this is a Sandbox-to-Sandbox deployment, there’s no /SuiteBundles/ folder created. The Extension Manager SDK expects the extensions to be located inside that folder, which causes the script to fail with the error above.
Is there any known workaround or recommended approach for this scenario?Chris
10/31/2025, 5:01 PMGaston Mosteiro
10/31/2025, 5:14 PMChris
10/31/2025, 5:17 PMGaston Mosteiro
10/31/2025, 5:18 PMInstallation Script Error
JS_EXCEPTION
org.mozilla.javascript.EcmaError: TypeError: Cannot read property "parent" from null
(/SuiteBundles/Bundle 521562/CommonUtilities/UtilsSS2.js#57)Chris
10/31/2025, 5:23 PMUtilsSS2.js and search for parent here's the function that's borking:
, getBundleFolderPath: function getBundleFolderPath(folderId)
{
var bundleFolder = FileApi.getFolder(folderId, ['parent']);
return '/' + bundleFolder.parent[0].text + '/' + bundleFolder.name;
}Chris
10/31/2025, 5:24 PMGaston Mosteiro
10/31/2025, 5:36 PMgetBundleFolderId method in UtilsSS2 does this:
var folderId = bundleId ? FileApi.searchFolder('Bundle ' + bundleId, '-16') : null;Chris
10/31/2025, 5:39 PMGaston Mosteiro
10/31/2025, 5:41 PMGaston Mosteiro
11/03/2025, 12:47 PMSteve Goldberg
11/03/2025, 1:00 PM