As time passes your datatable sometimes has data other times not (since you are looking at the last 5 minutes based on your query this is probably a smallish sample set).
See this solution for handling a potentially empty datatable:
You should be able to prevent the empty datatable from causing issues for your getCell call too (note: getCell defaults to using row 0 if now value is provided, see the docs)
Here the issue is not handling the errors. I issue is that it was working properly when I created it at V8.2.3 but after upgrading version canvas not able to load widgets as well as images that were stored in assets ? So do images have the issue of datatable while it was store in assets?
I was monitoring data every 2m from heartbeat so data is their but not loading properly
Is there any thing that I can do to avoid loading issues.
I don't want to use exception handling while elasticsearch has data but loading it.
From your screenshots it definitely looks like you need to do error handling, this would have also thrown in previous versions of Canvas.
Canvas assets not loading between versions sounds like a bug. Would you share some screenshots of that specific issue along with logs/error messages from the UI, console and network tab. We may need to file a bug report.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.