Skip to main content
7-Bedrock
July 26, 2024
Solved

Mashup loading error whenever reading from input infotable (SeriesClicked, SelectedData)

Hi all,

My mashup is completed and working, that is until I tried adding a new function.

Currently I have a service that provide data to the bar chart and have my seriesclicked and selecteddata binded to another barchart which works, it takes in the x and dataField of the first barchart. The problem occurs when I try reading the x and dataField of the chart in the same service that provide the data to the chart.

Now my Mashup have loading error only on the chart, and only when I try to read the x or dataField of the input infotable. Any advice is greatly appreciated!

Rocko
RockoAnswer
19-Tanzanite
July 29, 2024

The error is occurring in the code of service script RetrieveProgress, line 1, where you try to access the property x of some input variable. It looks like that input variable was not set or has no value.

Beside fixing that you don't provide value, all the services you call directly from a mashup should have proper error handling, i.e. a try-catch block and/or validating of input parameters so you don't return exceptions to the mashup.

 

 

3 replies

5-Regular Member
July 26, 2024

Hello @Deon ,

 

Could you pls share the sample entities, if possible? Also, share the Application Logs to identify the errors.

 

Regards,

Bhawna

Translate
Deon7-BedrockAuthor
7-Bedrock
July 29, 2024

Hello Bhawna!

Thank you for helping! Attached is the Application Logs. I am sorry, I am very new to PTC and not sure which entities should I share.

 

Deon_0-1722216694250.png

 

Regards,

Deon

 

Translate
Rocko
Rocko19-TanzaniteAnswer
19-Tanzanite
July 29, 2024

The error is occurring in the code of service script RetrieveProgress, line 1, where you try to access the property x of some input variable. It looks like that input variable was not set or has no value.

Beside fixing that you don't provide value, all the services you call directly from a mashup should have proper error handling, i.e. a try-catch block and/or validating of input parameters so you don't return exceptions to the mashup.

 

 

Translate