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
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI! Discover how Splunk’s agentic AI ...

[Puzzles] Solve, Learn, Repeat: Dereferencing XML to Fixed-length events

This challenge was first posted on Slack #puzzles channelFor a previous puzzle, I needed a set of fixed-length ...

Stay Connected: Your Guide to December Tech Talks, Office Hours, and Webinars!

What are Community Office Hours? Community Office Hours is an interactive 60-minute Zoom series where ...