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

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

SetConfigurationTable does not set isConnected property

rmakhija
7-Bedrock

SetConfigurationTable does not set isConnected property

Hi,

 

We are using 'SetConfigurationTable' service to update the database configuration (connection url, username and password). After executing the service, I am able to see the updated values in "Configuration" tab, but it does not update the "isConnected" to true. And therefore we cannot invoke anything in the database.

 

The 'password' is set as string (non-encrypted), does this need to be encrypted before setting it? In that case, how to encrypt this value?

 

I also tried invoking "SaveConfigurationTables" and "RestartThing" services after "SetConfigurationTable", but that didn't make any difference. Please suggest a working solution.

ACCEPTED SOLUTION

Accepted Solutions

Hello, 

Thank you for the response.

Yes, the Thing is active. 

I was able to get it connected by providing an encrypted password and then restarting the thing.

View solution in original post

2 REPLIES 2

Hello Roma,

 

Can you confirm if the Active checkbox is ticked on the General Information page of the entity? isConnected will always be false if the Thing is not enabled by ticking the Active checkbox.

 

Additionally the password value does not need to be encrypted when it is being set as far as I am aware.

Hello, 

Thank you for the response.

Yes, the Thing is active. 

I was able to get it connected by providing an encrypted password and then restarting the thing.

Announcements


Top Tags