Skip to main content
6-Contributor
January 17, 2022
Solved

Manufacturing Apps not importing

  • January 17, 2022
  • 2 replies
  • 1986 views

Hey team!

I'm working with one of our integrators to install MFG Apps (release 9.1) in thingworx 9.2 but we're not able to make the import.

We tried troubleshooting it, including changing the import permissions in the settings.JSON file but once we save the changes, tomcat doesn't start.

I looked through the logs but I was hoping you could help me guys to see if I missed anything important related to the errors that appear there. 

 

Thanks in advance!

 

Best answer by slangley

Hi @hjimene3.

 

It sounds like you didn't add the extension import policy to the correct location in platform-settings.json.  If should be under PlatformSettingsConfig as in this example:

{
    "PlatformSettingsConfig": {
        "AdministratorUserSettings": {
            "InitialPassword": "PtC@1234567890"
        },
        "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": {
        "MssqlPersistenceProviderPackage": {
            "ConnectionInformation": {
                "driverClass": "com.microsoft.sqlserver.jdbc.SQLServerDriver",
                "jdbcUrl": "jdbc:sqlserver://localhost:1433;databaseName=thingworx;applicationName=Thingworx;",
                "password": "twadmin@12345",
                "username": "twadmin"
            }
        }
    }
}

 

If it's a syntax error, you can validate the syntax in platform-settings.json at this site, or provide your platform-settings.json here for review.

 

Regards.

 

--Sharon

 

 

2 replies

24-Ruby III
January 17, 2022

 Hi,

 

Please send your logs to PTC's technical support, here: https://support.ptc.com/apps/case_logger_viewer/cs/auth/ssl/log 

slangleyCommunity ManagerAnswer
Community Manager
January 21, 2022

Hi @hjimene3.

 

It sounds like you didn't add the extension import policy to the correct location in platform-settings.json.  If should be under PlatformSettingsConfig as in this example:

{
    "PlatformSettingsConfig": {
        "AdministratorUserSettings": {
            "InitialPassword": "PtC@1234567890"
        },
        "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": {
        "MssqlPersistenceProviderPackage": {
            "ConnectionInformation": {
                "driverClass": "com.microsoft.sqlserver.jdbc.SQLServerDriver",
                "jdbcUrl": "jdbc:sqlserver://localhost:1433;databaseName=thingworx;applicationName=Thingworx;",
                "password": "twadmin@12345",
                "username": "twadmin"
            }
        }
    }
}

 

If it's a syntax error, you can validate the syntax in platform-settings.json at this site, or provide your platform-settings.json here for review.

 

Regards.

 

--Sharon

 

 

hjimene36-ContributorAuthor
6-Contributor
February 1, 2022

It was a missing comma, indeed. I appreciate your help slangley!