Mashup loading error whenever reading from input infotable (SeriesClicked, SelectedData)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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!
Solved! Go to Solution.
- Labels:
-
Coding
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hello @Deon ,
Could you pls share the sample entities, if possible? Also, share the Application Logs to identify the errors.
Regards,
Bhawna
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
Regards,
Deon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.