I don’t know what the issue is exactly, but when I have an XY chart with a binding with a script for the moment, the chart sometimes display “Component Error” with the detail “Cannot read property ‘dataFields’ of undefined”. Most of the time, F5 fix the issue, but it’s annoying
I have been having the exact same error. I have a ticket in with IA, but so far they haven’t figured out what is causing this. I’ll update this post when I find out more.
With the exact same data, sometimes it displays fine, sometimes it throws the component error
I narrowed down the problem and think I have a working solution. The error is being generated by something inside the series property settings. I changed my script to delete all series entries except the first one (so I don’t get a ‘No series configured’ error). I then build the rest of series json after I have updated all the datasources, and this seems to get rid of the ‘dataFields’ undefined’ error.
I tried to work a bit around this, but I only have 1 serie, and it is static (no binding)
I have a binding that modify the xAxes value range, and the datasource
So I created a custom value, and used a binding with a transform script that replicate @jasoncoope behavior for my case. It dit improve, but what I found is, apparently, if the initial dataset contains “null” values, even in column that are not displayed, and that dataset is later updated with a dataset that does not contains “null” value, as the chart is crashed, it won’t recover
I’ve found that “pushing” the data to the dataSources property of the XY Chart seems to help.
That is, instead of putting a binding on the dataSources property that “pulls” the data in, I created a custom property that has a transform script to create the data and data structure, and then as a last step of the script does something like:
IA said 4 months ago that they were working on a bug fix for this.
‘I narrowed down the problem and think I have a working solution. The error is being generated by something inside the series property settings. I changed my script to delete all series entries except the first one (so I don’t get a ‘No series configured’ error). I then build the rest of series json after I have updated all the datasources, and this seems to get rid of the ‘dataFields’ undefined’ error.’
My assumption is that something in the series that was set last time data was displayed in the chart, causes an error to be thrown as one of the datasources or other properties gets added. In this script I am getting rid of all series except the main one.
I tracked down the bug ticket related to your previous ticket and it is still within our development team’s pipeline. It is not ready for release and we can’t provide an estimate for when it would be released.
I will make a note for this bug ticket that we have many customers and community members in the forums that are hoping for a resolution to this bug to come quickly.
Myself or another support representative will reach out to you once we are aware of an official bug fix.
Just started to get this error on a time series chart.
I changed the name of a column just before I started to get the error.
I think I changed the column name, query name, applied asc and desc to the order by section, changed my order by clause
I will try remaking it.
Did you just update or did you find a solution?
edit
I reset my query, restarted designer, “fixed it”
edit
broke it again, I think my error is tied to my order by clause
I also have to restart my designer. So now my time series charts have one query, while my tables I display use another query.
Just came across this issue myself as we are still working in 8.1.7, embedding it and passing the parameters that way seemed to do the trick for me, obviously the easier workaround is updating but if you’re stuck in a specific version like me this will hopefully help.