Hello, why in "Analyze" is showing the dataset id,...
# gd-beginners
m
Hello, why in "Analyze" is showing the dataset id, rather than the dataset name? Is this a normal behaviour?
m
Hi Manny, thank you for reaching out to us. I would like to clarify what you can see in the Analyse left panel as collapsible 'folders' for each dataset these are actually taken from object “tags”. Initially the tag is created based on the dataset name and if you later change this name, the original tag remains, which is a bit confusing if you want to rename the dataset in the Analyse left panel you can do it by API, tags in the model/workspace layout API output.
GET /api/v1/layout/workspaces/{workspaceId}
This will not only export the logical model but the whole workspace (incl. all metrics, visualizations etc.) There you can see the the attributes for each dataset with their tag, for example:
Copy code
"ldm": {
        "datasets": [
            {
                "attributes": [
                    {
                        "description": "Age",
                        "id": "Age",
                        "labels": [],
                        "sourceColumn": "Age",
                        "sourceColumnDataType": "INT",
                        "tags": [
                            "Customerdata"
                        ],
                        "title": "Age"
                    },
                    {
                        "description": "CustomerName",
                        "id": "CustomerName",
                        "labels": [],
                        "sourceColumn": "CustomerName",
                        "sourceColumnDataType": "STRING",
                        "tags": [
                            "Customerdata"
                        ],
                        "title": "CustomerName"
                    },
They have the tag
Customerdata
which is what I currently see in the Analyse tab, then to change it, you have to copy the complete 'GET' response and paste it in the body of the PUT call;
PUT /api/v1/layout/workspaces/:workspaceId
and edit with the new 'name' or tag you want to see, like:
Copy code
"ldm": {
        "datasets": [
            {
                "attributes": [
                    {
                        "description": "Age",
                        "id": "Age",
                        "labels": [],
                        "sourceColumn": "Age",
                        "sourceColumnDataType": "INT",
                        "tags": [
                            "CustomerdataID"
                        ],
                        "title": "Age"
                    },
                    {
                        "description": "CustomerName",
                        "id": "CustomerName",
                        "labels": [],
                        "sourceColumn": "CustomerName",
                        "sourceColumnDataType": "STRING",
                        "tags": [
                            "CustomerdataID"
                        ],
                        "title": "CustomerName"
                    },
Then you will see this new tag and the 'name' in the left panel. Please, do not forget to paste the complete response of your GET in the body of your PUT call.
👌 1
m
Thanks @Mauricio Cabezas
hi @Mauricio Cabezas, is there any way to rollback the previous ldm version?
m
Hi Manny, as 'rollback' it is not possible, but the way you can do it is with Organization Backup, which unfortunately you need to create them manually. Here you can see our documentation: https://www.gooddata.com/docs/cloud/manage-organization/organization-api/backups/
Please let us know if you need further assistance.