Skip to main content
14-Alexandrite
September 24, 2025
Solved

Guidance Needed for Switching ThingWorx Database to a New Postgres Instance

  • September 24, 2025
  • 1 reply
  • 1178 views

 

Hi ThingWorx Community,

I’m currently running ThingWorx version 9 (ThingWorx development.server.build-b12466) with a Postgres database. I want to switch to a new Postgres database hosted on RDS.

Here’s what I’ve done so far:

  1. Created a new RDS instance.

  2. Added a database named thingworx.

  3. Updated the platform-settings.json file with the new database connection details.

However, when I start ThingWorx, I encounter the following error:

CRITICAL ERROR ON STARTUP: Unable to initialize and start system: ERROR: current transaction is aborted, commands ignored until end of transaction block

I’m trying to understand:

  • Is updating the platform-settings.json file the correct method to point to a new Postgres database?

  • Are there additional steps I need to perform to migrate ThingWorx to a new database instance?

  • Could this error indicate a problem with the database setup, migration, or connection configuration?

Any guidance or recommended steps for safely switching the database would be greatly appreciated.

Thanks in advance!

Best answer by Rocko

You mean like it is suggested here? https://support.ptc.com/help/thingworx/platform/r10.0/en/#page/ThingWorx/Help/ModelandDataBestPractices/PartitioningvaluestreamtableinPostgreSQL.html

Why don't you start by cloning your existing schema, which has all the tables into the new instance? In that case Thingworx would find all the tables it needs?

1 reply

Rocko
19-Tanzanite
September 24, 2025

Well it looks like you just created the schema, but it's empty, none of the tables ThingWorx expects are there. You would have to run the db creation scripts for those to be created. They come with the Thingworx platform download.

14-Alexandrite
September 24, 2025

Hi Rocko 
Where can i get DB creation scripts in side Thingworx folder, below is screenshot of items inside Thingworx folder.

leekhil_kataray_0-1758719848876.png

 

Rocko
19-Tanzanite
September 24, 2025

You need the Zip file you downloaded from PTC, or re-download it. Inside you will find the install folder.