Dashboards & Visualizations

Dashboard panels not loading upon page refresh

ojasklowski
Explorer

I'm using a SQL query to populate panels in a dashboard. When I paste my query into the "edit search string" box, everything works. The data and plot display as expected.

When I click "done editing", everything is still good. I can click the refresh icon below the panel with no problems.

As soon as I refresh the page in the browser, though, I get "no results found" in the panel. The error message says:
'command="dbquery", A database error occured: You have an error in your SQL syntax...near " at line 1.

Weirder still, this only affects ~half of my panels, and there is no different in the query structure. Thoughts? Thanks in advance!

Tags (1)
0 Karma
1 Solution

ojasklowski
Explorer

@jkat54, thanks for the tip, that was a helpful wiki!

Ultimately, the comments in my sql code were causing the problem. When I paste it into splunk from my text editor, the formatting is preserved, so comments don't cause any problems. When I refresh the page, line breaks disappear, so the code no longer runs.

View solution in original post

ojasklowski
Explorer

@jkat54, thanks for the tip, that was a helpful wiki!

Ultimately, the comments in my sql code were causing the problem. When I paste it into splunk from my text editor, the formatting is preserved, so comments don't cause any problems. When I refresh the page, line breaks disappear, so the code no longer runs.

jkat54
SplunkTrust
SplunkTrust

Ah, so you've solved the problem?

0 Karma

ojasklowski
Explorer

Yes! Should I self-answer the question?

0 Karma

jkat54
SplunkTrust
SplunkTrust

Yep, i'll convert your comment to answer, you mark as answer.

0 Karma

ojasklowski
Explorer

thanks jkat54!

0 Karma

jkat54
SplunkTrust
SplunkTrust

YVW @ojasklowski ... see ya around!

0 Karma

jkat54
SplunkTrust
SplunkTrust

How many panels do you have? Curious if your hitting a limit of simultaneous searches for your user's role.

https://wiki.splunk.com/Community:TroubleshootingSearchQuotas

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas

Why Splunk Customers Should Attend Cisco Live 2026 Las Vegas     Cisco Live 2026 is almost here, and this ...

What Is the Name of the USB Key Inserted by Bob Smith? (BOTS Hint, Not the Answer)

Hello Splunkers,   So you searched, “what is the name of the usb key inserted by bob smith?”  Not gonna lie… ...

Automating Threat Operations and Threat Hunting with Recorded Future

    Automating Threat Operations and Threat Hunting with Recorded Future June 29, 2026 | Register   Is your ...