cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

Thingworx 8.5 upgrade, unable to import extension

hkumar-41
11-Garnet

Thingworx 8.5 upgrade, unable to import extension

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

1 ACCEPTED SOLUTION

Accepted Solutions
slangley
23-Emerald II
(To:hkumar-41)

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

 

 

View solution in original post

3 REPLIES 3

@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

slangley
23-Emerald II
(To:hkumar-41)

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

 

 

slangley
23-Emerald II
(To:slangley)

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

Top Tags