Importing XML via /Thingworx/Importer with AppKey returns 200 OK but creates no entities (TWX 9.6)
- July 16, 2025
- 1 reply
- 505 views
I’m trying to import an XML file of an entity (exported from a ThingWorx 9.6 system) into another TWX 9.6 instance via a backend service that issues:
POST /Thingworx/Importer
?purpose=import
&IgnoreBadValueStreamData=false
&WithSubsystems=false
&overwriteConfigurationTableValues=true
&overwritePropertyValues=true
&usedefaultdataprovider=true
Headers:
appKey: <valid key for Administrator>
X-ThingWorx-Session: true
X-XSRF-TOKEN: TWX-XSRF-TOKEN-VALUE
Content-Type: multipart/form-data (handled by FormData boundary)
The call uploads the file (file field) and returns 200 OK.
In the response body (octet-stream) and in ApplicationLog I only see:
Start post migrating from version [9.3.0] to version [9.3.0]
Finished post migrating from version [9.3.0] to version [9.3.0]No errors are logged, yet the Thing inside the XML (THING_NAME_IMPORTED) never appears in Composer.
– ThingTemplate, ValueStream and Project referenced in the XML already exist.
– The same XML imported manually through Composer shows the identical log and creates it correctly.
– The AppKey user has full Design-Time Create permissions.
What additional conditions could cause the Importer to silently skip entities despite a 200 OK?
Any pointers or diagnostic steps would be appreciated.
Thanks in advance!

