Skip to main content
16-Pearl
July 16, 2021
Solved

Upgrading/Migrating ThingWorx Platform and Database Concerns

  • July 16, 2021
  • 3 replies
  • 1444 views

We are working on upgrading our Thingworx platform from version 8.4.0 to version 9.1.2.  As part of this change we are also switching databases from PostgreSQL version 10.6 (TW8.4) to MSSQL 2016 (TW9.1).  We also have the ThingWorx Manufacturing Apps.  

Since we've collected a lot of data, I'm trying to identify the best way to migrate both our Assets model and data.  However, some of our searches turned up concerns in migrating from a PostgreSQL implementation to MSSQL.

Particularly these articles (which apply to TW8.4) are of concern: 

CS305602 - Is it possible to migrate from H2 or PostgreSQL to MS SQL in ThingWorx? 

CS303818 - Migration from other databases to MSSQL is not supported in ThingWorx 

 

Based on these articles, it sounds like the values in the "entity_id" and "source_id" columns of our current "value_stream" and "stream" tables must not exceed 128 characters.

Could we get a confirmation on this?  Are there any other considerations we need to make in migrating our model/data as I described?

Best answer by PaiChung

As the articles indicate, as far as I know there isn't a 'clean' migration possible from Postgres to MS SQL

Although not the prettiest, you could park all your historical data in your own database and use a connector to retrieve that data if you needed it (historical query etc.)

3 replies

PaiChung22-Sapphire IAnswer
22-Sapphire I
July 16, 2021

As the articles indicate, as far as I know there isn't a 'clean' migration possible from Postgres to MS SQL

Although not the prettiest, you could park all your historical data in your own database and use a connector to retrieve that data if you needed it (historical query etc.)

Community Manager
July 23, 2021

Hi @Ascherer17.

 

If you feel the previous response answered your question, please mark it as the Accepted Solution for the benefit of others with the same question.

 

Regards.

 

--Sharon

16-Pearl
February 6, 2026

Adding an additional idea since users might need to migrate between databases between any version of Thingworx:

Using the built-in Export/Import functionalities should be an option to migrate model entities and Stream/Value Stream data between platforms running on different SQL databases since Thingworx obfuscates the backend.  In my case, it would have still been tedious to manually export the amount of data I was working with, but an application could be built using "Exporter" services to help automate the process. 

Help Center link describing the export services: https://support.ptc.com/help/thingworx/platform/r10.1/en/index.html#page/ThingWorx/Help/Getting_Started/ImportingandExportinginThingWorx/ManuallyImportingandExporting.html