After importing dashboard from JSON, user interaction is needed for solving No data

Hi

I use grafana 11.6. I’m trying to automate the creation of a large number of dashboards that display data from influxv2.

I create a JSON that contains a query built in FLUX and a chart definition. I import the JSON using the Grafana API.

The first time I view the dashboard, the graphs contain No data. So I have to edit each chart and manually run Query Inspector and click on Refresh data. Only then will the data in the chart be displayed.

In the past, when I used influxv1 and InfluxQL, this manual action was not necessary.
Any idea what is wrong?

Thanks
Martin

It was my fault, dashboard definition contains wrong datasource uid.