Skip to main content
1-Visitor
October 4, 2019
Solved

Thingworx 8.5 upgrade, unable to import extension

  • October 4, 2019
  • 2 replies
  • 1757 views

Hi,

 

Just try to install thingworx 8.5, and import project from 8.3.5.

There are some issues occurred, I'd like to ask for advice:

1. unable to import extension.

   in platform-setting json, configuration r all set, but imported failed with no valid error messages.

{
"PlatformSettingsConfig": {
"AdministratorUserSettings": {
"InitialPassword": ...
},
"ContentTypeSettings": {
"supportedMediaEntityContentTypes": [
"image/svg+xml",
"image/png",
"image/gif",
"image/bmp",
"image/jpeg",
"application/pdf",
"image/vnd.microsoft.icon"
]
}
},
"ExtensionPackageImportPolicy": {
"importEnabled": true,
"allowJarResources": true,
"allowJavascriptResources": true,
"allowCSSResources": true,
"allowJSONResources": true,
"allowWebAppResources": true,
"allowEntities": true,
"allowExtensibleEntities": true
},

"PersistenceProviderPackageConfigs": {

....

}

}

 

error message: Extension Exception

 


 
Updating Media

 

2. imported project, missing widgets, due to 'soon to be depreciated ', legacy widgets. 

    either 'yes' or 'no', to  confirm the option to replace widget. the widgets in mashup are gone.

 

Any tips?

thanks

Best answer by slangley

Hi @hkumar-41.

 

It looks like the platform-settings.json file is not structured correctly.  The ExtensionPackageImportPolicy should be under PlatformSettingsConfig as in this example:

 

{
    "PersistenceProviderPackageConfigs": {
        "MssqlPersistenceProviderPackage": {
            "ConnectionInformation": {
                "driverClass": "com.microsoft.sqlserver.jdbc.SQLServerDriver",
                "jdbcUrl": "jdbc:sqlserver://localhost:1433;databaseName=thingworx;applicationName=Thingworx;",
                "password": "twadmin",
                "username": "twadmin"
            }
        }
    },
    "PlatformSettingsConfig": {
        "LicensingConnectionSettings":{
            "username":"username",
            "password":"password"
        },
        "ExtensionPackageImportPolicy": {
            "allowCSSResources": true,
            "allowEntities": true,
            "allowExtensibleEntities": true,
            "allowJSONResources": true,
            "allowJarResources": true,
            "allowJavascriptResources": true,
            "allowWebAppResources": true,
            "importEnabled": true
        },
        "ContentTypeSettings": {
            "supportedMediaEntityContentTypes": [
                "image/svg+xml",
                "image/png",
                "image/gif",
                "image/bmp",
                "image/jpeg",
                "application/pdf",
                "image/vnd.microsoft.icon"
            ]
        }
    }
}

 

 

If you continue to have issues, please provide the complete file (you can mask out the sensitive information and I will update it and send it back.

 

Regards.

 

 

--Sharon

 

 

2 replies

16-Pearl
October 4, 2019

@hkumar-41 

 

1.unable to import extension.

  • Can you attach the error screenshot again? Looks like it failed to upload correctly in your question.
  • Also, can you send us the logs?
  • Are you getting this import error for all the extensions or just this one specifically?

 

2.imported project, missing widgets, due to 'soon to be depreciated ', legacy widgets. 

  either 'yes' or 'no', to confirm the option to replace widget. the widgets in mashup are gone.

 

  • Is this warning message or an error?
  • For which widget you are seeing this?

 

Thanks,

Vibhuti

slangleyCommunity ManagerAnswer
Support
October 4, 2019

Hi @hkumar-41.

 

It looks like the platform-settings.json file is not structured correctly.  The ExtensionPackageImportPolicy should be under PlatformSettingsConfig as in this example:

 

{
    "PersistenceProviderPackageConfigs": {
        "MssqlPersistenceProviderPackage": {
            "ConnectionInformation": {
                "driverClass": "com.microsoft.sqlserver.jdbc.SQLServerDriver",
                "jdbcUrl": "jdbc:sqlserver://localhost:1433;databaseName=thingworx;applicationName=Thingworx;",
                "password": "twadmin",
                "username": "twadmin"
            }
        }
    },
    "PlatformSettingsConfig": {
        "LicensingConnectionSettings":{
            "username":"username",
            "password":"password"
        },
        "ExtensionPackageImportPolicy": {
            "allowCSSResources": true,
            "allowEntities": true,
            "allowExtensibleEntities": true,
            "allowJSONResources": true,
            "allowJarResources": true,
            "allowJavascriptResources": true,
            "allowWebAppResources": true,
            "importEnabled": true
        },
        "ContentTypeSettings": {
            "supportedMediaEntityContentTypes": [
                "image/svg+xml",
                "image/png",
                "image/gif",
                "image/bmp",
                "image/jpeg",
                "application/pdf",
                "image/vnd.microsoft.icon"
            ]
        }
    }
}

 

 

If you continue to have issues, please provide the complete file (you can mask out the sensitive information and I will update it and send it back.

 

Regards.

 

 

--Sharon

 

 

Support
October 16, 2019

Hi @hkumar-41.

 

If one of the previous responses allowed you to resolve your issue, please mark the appropriate one as the Accepted Solution for the benefit of others with the same problem.

 

Regards.

 

--Sharon