Best Of
Did an Update Break Window Functions in MAGIC?
I have a long-running ETL with a window function in a SQL tile that is throwing the dreaded 'unknown error occurred' as of this morning. The function looks like this:
CASE WHEN MIN(t.`Arrears`) OVER (PARTITION BY t.`Customer`) > 360
THEN 1
ELSE 0
END AS `360 Flag`
Re: What are YOU working on?
Thanks @CamBarnes Yep very happy to inspire and educate the community. As for governance with some clients, I'm seeing that people aren't seeing it as a big deal as of now, but I think it's a longer term issue that kind of should be addressed sooner rather than later. I'm just here preaching the ways of governance.
Re: Filtering on NULL or empty-string values
Agreed. I would recommend upvoting some of the idea exchanges that have been submitted around this topic. Here is one you can upvote:
https://community-forums.domo.com/main/discussion/68606/filtering-on-missing-null-values-is-awful-improve-it?utm_source=community-search&utm_medium=organic-search&utm_term=filter+on+null
Re: Pivot Table
oof anti patterns! (imho)
i know Domo's row based consumption pricing makes things tough, but I (and ralph kimball) are proponents of UNION'ing fact tables not JOINING pre-aggregated data onto the same row — the model that @DavidChurchman is promoting.
TBF a lot of reports from APIs DO take that format b/c it's an easy shape to create and conservative on row count (just one row at the granularity of date, or date and department etc.
You do need to be careful about how you represent no data rows (what happens if there were no sales in August, if you're using that JOIN strategy then you have no row.
my UNION strategy doesn't address "what happens if there are zero rows" but it does maintain the ability to drill down at the row level!
Re: Pivot Table
You won't be able to pivot the data in that specific format because the columns would show your QTY or Sales based on the FY and Branch and not separate.
You'd need separate pivot tables, one for sales and one for quantity.
If you have a small, limited, and non-changing list of branches or fiscal years, you can use a conditional sum in Beast Mode to calculate each column individually.
-- Branch A Qty SUM(CASE WHEN `Branch` = 'A' THEN `QTY` END)
-- Branch B Qty SUM(CASE WHEN `Branch` = 'B' THEN `QTY` END)
-- FY 2025 Sales SUM(CASE WHEN `FY` = 2025 THEN `Sales` END)
-- FY 2026 Sales SUM(CASE WHEN `FY` = 2026 THEN `Sales` END)
You'll need to create new beast modes every time a new Branch or Fiscal Year appears in the dataset.
Re: August Community Forum Recap
Just watched one of Mark's videos to get me started in GitHub and Domo's CLI. 🤝
Kudos to you Mark!
Re: Can an "orphaned" output dataset be re-added to a dataflow?
Here's the finalized forum response — ready to copy/paste:
Re-adding an orphaned output dataset via the Domo API
Option 3 from the accepted answer is the way to go if you want to preserve the historical data in the orphaned dataset. Here are the actual API requests:
Prerequisites: You'll need a Domo access token (Admin → Security → Access Tokens, or via the Developer Portal). You also need the dataset ID of the orphaned dataset (find it in the Data Center URL or via GET /api/v1/datasets).
Step 1 — GET the current dataflow definition
curl --request GET --url "https://{instance}.domo.com/api/dataprocessing/v1/dataflows/{dataflow_id}" --header "x-domo-authentication: {access_token}" --header "Content-Type: application/json"
This returns the full dataflow definition including an actions array (the ETL tiles) and an outputs array. Save this response — you'll need to modify it.
Step 2 — Add a new output tile in the UI
In the Domo UI, add a new Output DataSet tile to your dataflow. This creates a fresh dataset and a PublishToVault action in the definition. Don't worry about the name — you'll swap it out in the next step.
Save and close the dataflow editor.
Step 3 — GET the updated definition (with the new output)
curl --request GET --url "https://{instance}.domo.com/api/dataprocessing/v1/dataflows/{dataflow_id}" --header "x-domo-authentication: {access_token}" --header "Content-Type: application/json"
Find the new PublishToVault action in the actions array. It'll look something like:
{
"type": "PublishToVault",
"id": "abc123-...",
"name": "New Output DataSet",
"dependsOn": ["previous-tile-id"],
"dataSource": {
"guid": "NEW-DATASET-UUID",
"name": "New Output DataSet",
"type": "DataFlow"
},
"versionChainType": "REPLACE",
"schemaSource": "DATAFLOW",
"partitioned": false
}
Step 4 — Swap the dataset GUID to your orphaned dataset
Replace dataSource.guid with your orphaned dataset ID, and update the dataSource.name to match. Also update the outputs array at the top level of the definition — replace the new dataset ID with the orphaned one:
"outputs": [
{
"dataSourceId": "ORPHANED-DATASET-UUID",
"dataSourceName": "Your Original Output Name",
"versionChainType": "REPLACE"
}
]
Step 5 — PUT the updated definition
curl --request PUT --url "https://{instance}.domo.com/api/dataprocessing/v1/dataflows/{dataflow_id}" --header "x-domo-authentication: {access_token}" --header "Content-Type: application/json" --data @updated_dataflow_definition.json
Step 6 — Run the dataflow
curl --request POST --url "https://{instance}.domo.com/api/dataprocessing/v1/dataflows/{dataflow_id}/executions" --header "x-domo-authentication: {access_token}"
After the run completes, your orphaned dataset will be back in the dataflow as an output, and any cards built on that dataset will start refreshing again.
:warning: Warnings:
• Back up the original definition before modifying it (save the GET response from Step 1).
• The actions array must remain valid — don't break any dependsOn chains.
• Test on a sandbox dataflow first if you can.
• This approach works for Magic ETL dataflows. For MySQL/Redshift dataflows the structure differs slightly.
Want to discuss Domo questions like this in real time? Join the Domo User Group Slak
domousergroup.carrd.co
https://domousergroup.slack.com/archives/C07ESFPKAJ0/p1787757923655489
Re: App Studio share a specific page with a person or user not the entire app
lol this goes back to 2024… has there been any movement?




