Skip to main content
Jan 17, 2022 3:39 PM UTC
Solved

Manufacturing Apps not importing

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!

 

slangleyAnswer
Jan 21, 2022 2:45 PM UTC

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

 

 

3 replies

Jan 17, 2022 8:20 PM UTC

 Hi,

 

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

slangleyAnswer
Jan 21, 2022 2:45 PM UTC

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

 

 

hjimene3Author
Feb 1, 2022 3:08 PM UTC

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