Dashboards & Visualizations

"Layout undefined is not defined" in Dashboard Studio after Splunk roll back

DaClyde
Contributor

Unfortunately, we had some issue with a recent Splunk upgrade to 9.4.1 and had to roll back to 9.3.2.

However, I had just built a dashboard in Studio 9.4.1with some drill down, but after the roll back, now I just get this helpful message:

"Layout undefined is not defined"

Any ideas what was added to Studio in 9.4.x that wouldn't be compatible with 9.3.x?

The only part of the dashboard that is loading is the time picker.  If I view the source, everything is still there.

Labels (1)
0 Karma
1 Solution

livehybrid
SplunkTrust
SplunkTrust

Hi @DaClyde 

Its worth viewing the dashboard source

livehybrid_0-1743176989285.png

 

And look for the "layout" section, 
Do you have a "layoutDefinitions" with "layout_1" and then a "type" containing a value?

Similar to this?

 "layout": {
        "tabs": {
            "items": [
                {
                    "layoutId": "layout_1",
                    "label": "New tab"
                }
            ]
        },
        "layoutDefinitions": {
            "layout_1": {
                "type": "absolute",
                "options": {
                    "height": 1185,
                    "display": "auto-scale",
                    "backgroundColor": "#C8DAE0"
                },
                "structure": [
                    {
...

Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards

Will

View solution in original post

livehybrid
SplunkTrust
SplunkTrust

Hi @DaClyde 

Its worth viewing the dashboard source

livehybrid_0-1743176989285.png

 

And look for the "layout" section, 
Do you have a "layoutDefinitions" with "layout_1" and then a "type" containing a value?

Similar to this?

 "layout": {
        "tabs": {
            "items": [
                {
                    "layoutId": "layout_1",
                    "label": "New tab"
                }
            ]
        },
        "layoutDefinitions": {
            "layout_1": {
                "type": "absolute",
                "options": {
                    "height": 1185,
                    "display": "auto-scale",
                    "backgroundColor": "#C8DAE0"
                },
                "structure": [
                    {
...

Please let me know how you get on and consider adding karma to this or any other answer if it has helped.
Regards

Will

loganallen
New Member

I am also facing the same issue, I have followed your steps with adding in the layout section and definition but still no luck. Following for a solution

0 Karma

DaClyde
Contributor

A co-worker thought to build a new dashboard in 9.3.2 and compare the source code

I ended up stripping out the tabs and layout definitions.  Looks like a syntax changed from 9.3 to 9.4.  With those removed and the rest of the tags lined up under layout, the page works.  

You got me looking in the right place, so I'll mark this as accepted.

0 Karma

DaClyde
Contributor

Technically, yes, but everything is a little re-arranged in the code.  My tabs and items tags are at the very bottom of the page.   I'll see if I can line it up to match what you have here and see if it works. 

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Data Persistence in the OpenTelemetry Collector

This blog post is part of an ongoing series on OpenTelemetry. What happens if the OpenTelemetry collector ...

Introducing Splunk 10.0: Smarter, Faster, and More Powerful Than Ever

Now On Demand Whether you're managing complex deployments or looking to future-proof your data ...

Community Content Calendar, September edition

Welcome to another insightful post from our Community Content Calendar! We're thrilled to continue bringing ...