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
Champion

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
Champion

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

Announcing the Expansion of the Splunk Academic Alliance Program

The Splunk Community is more than just an online forum — it’s a network of passionate users, administrators, ...

Learn Splunk Insider Insights, Do More With Gen AI, & Find 20+ New Use Cases You Can ...

Splunk Lantern is a Splunk customer success center that provides advice from Splunk experts on valuable data ...

Buttercup Games: Further Dashboarding Techniques (Part 7)

This series of blogs assumes you have already completed the Splunk Enterprise Search Tutorial as it uses the ...