Skip to main content
10-Marble
March 23, 2022
Solved

Extension Exception: ExtensionPackageImportPolicy

  • March 23, 2022
  • 1 reply
  • 2221 views

Hi Developers,

 

I've newly installed a TWX instance. My platform settings are as shown below.

 

SK_10217546_0-1648014250027.png

 

Through the composer I'm not able to import any extensions (from market place or a custom one). I'm getting the below error

 

Extension Exception: ExtensionPackageImportPolicy: ExtensionPackage upload attempted while import disabled. Check the ExtensionPackageImportPolicy.

 

I have checked the support portal and came across this article. It seems ExtensionPackageImportPolicy in my platform settings is proper but still im getting the error.

 

Things I have tried :

1.restarting the server

2.restarting by updating the ExtensionPackageImportPolicy with all parameters set as false and then set as true.

3. Tried restarting the ExportImportSubsystem but it threw an error stating that Stop service is not available for this sub system.

 

Please provide a resolution for this issue. 

 

Thanks,

Saran

 

Best answer by PaiChung

It looks like your ExtensionPackageImportPolicy is in the wrong 'level' it should be a 'child' of 'PlatformSettingsConfig'

Incomplete example:

"PlatformSettingsConfig": {
   "ExtensionPackageImportPolicy": {
      "importEnabled": true,
      "allowJarResources": true,
      "allowJavascriptResources": true,
      "allowCSSResources": true,
      "allowJSONResources": true,
      "allowWebAppResources": true,
      "allowEntities": true,
      "allowExtensibleEntities": true
   },

1 reply

PaiChung22-Sapphire IAnswer
22-Sapphire I
March 23, 2022

It looks like your ExtensionPackageImportPolicy is in the wrong 'level' it should be a 'child' of 'PlatformSettingsConfig'

Incomplete example:

"PlatformSettingsConfig": {
   "ExtensionPackageImportPolicy": {
      "importEnabled": true,
      "allowJarResources": true,
      "allowJavascriptResources": true,
      "allowCSSResources": true,
      "allowJSONResources": true,
      "allowWebAppResources": true,
      "allowEntities": true,
      "allowExtensibleEntities": true
   },