cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

Import Building Block Extension Error

ParthBhadiyadra
11-Garnet

Import Building Block Extension Error

Hello 

 

I am trying to import building blocks in my ThingWorx but can not successfully import getting 

another extension like mail extension imported successfully. anyone can help me?

 

Thanks

 

7 REPLIES 7

Please share your application logs. Should be some dependency or build version compatibility issue while import

hi @TanmeyTWX 

 

in application logs, not any new log is displayed like an error or warning

 

in ss all logs was old log  

Need Application and error logs from Tomcat directory. You can find it in below path at your machine.

Program Files--Apache Tomcat -- Logs-- Application and error logs.

 

Please attach those logs file here.

hi @TanmeyTWX 

 

Thanks for your reply,

 

My Thingworx was installed in docker, so I copy these logs from a docker container 

Below are the last recent logs in the application log file

 

2023-05-10 12:52:15.460+0000 [L: ERROR] [O: c.t.w.Projects] [I: ] [U: Administrator] [S: ] [P: ] [T: http-nio-8080-exec-1] Entity Not Found : [PTC.DBConnection]
2023-05-10 12:52:15.462+0000 [L: WARN] [O: c.t.w.BaseService] [I: ] [U: Administrator] [S: ] [P: ] [T: http-nio-8080-exec-1] Transaction has been marked as a failure for request /Thingworx/Projects/PTC.DBConnection
2023-05-10 12:52:15.577+0000 [L: ERROR] [O: c.thingworx] [I: UI] [U: Administrator] [S: ] [P: ] [T: http-nio-8080-exec-8] ERROR [app-router] Error: Route not found: project-entities
2023-05-10 12:52:15.580+0000 [L: ERROR] [O: c.thingworx] [I: UI] [U: Administrator] [S: ] [P: ] [T: http-nio-8080-exec-9] ERROR [app-router] Router navigation failed, and no previous location or fallbackRoute could be restored.

Hi,

 

If you go through your logs you can observe the dependency import error. 

Entity Not Found : [PTC.DBConnection]  -this entity is required to make your import successful which is not there already.

I believe [PTC.DBConnection] is the database connection building block which is either not present in the composer or doesn't existing in your import file. You need to figure out this to resolve your issue.

 

Hope this helps: https://support.ptc.com/help/building_blocks/r1.1/en/index.html#page/bb/building_blocks/database_connection_bb/configuring_what_historical_data_is_logged.html

Hi @TanmeyTWX 

 

In the building block extension zip file contains PTC.DBConnection Project/Entity available

 

and I have first import PTC.DBConnection and then try to import building block extension but getting same error 

Hi @ParthBhadiyadra.

 

Did you go through this section of the Help Center to make sure you are importing the base configuration first?

 

Regards.

 

--Sharon

Top Tags