Skip to main content
1-Visitor
December 31, 2020
Solved

How to get Service Fail information in ThingWorx 9.0?

  • December 31, 2020
  • 3 replies
  • 1264 views

Hi,

We can link Service successful function to any other service but How to link the service Failure function to another service?

Please support ASAP.

Best answer by Ashritha

Hi @RP_9407685 ,

Use the try catch block in the service. Handle the negative scenario in catch block. You can use one infotable column to indicate Failure. Use  validator function  to check the failure or success. Trigger this validator on service invoke complete event. Validator can be used to trigger success or failure event.Link 

 

3 replies

1-Visitor
December 31, 2020

Can anyone reply to my comment please?

Ashritha15-MoonstoneAnswer
15-Moonstone
December 31, 2020

Hi @RP_9407685 ,

Use the try catch block in the service. Handle the negative scenario in catch block. You can use one infotable column to indicate Failure. Use  validator function  to check the failure or success. Trigger this validator on service invoke complete event. Validator can be used to trigger success or failure event.Link 

 

Community Manager
January 4, 2021

Hi @RP_9407685.

 

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

 

Regards.

 

--Sharon