Forum Discussion

Tim's avatar
Tim
Data Pipeline
05-19-2023

Error: "Live models can have only one dataset"

I clicked "Duplicate As Live". 

I got an error "Live models can have only one dataset".

I made sure I only have one dataset (see left side of picture below). So why am I getting the error?

I did refresh schema on all tables, and made sure they all point to a view instead of executing a query. 

 

3 Replies

Replies have been turned off for this discussion
  • Tim's avatar
    Tim
    Data Pipeline

    I opened the .smodel file. Looks like some tables have gone into separate datasets. But in the UI they all list under the same single data source. Is there an easy fix? Or do I have to copy/paste table-by-table within the .smodel file?

  • zach_myt's avatar
    zach_myt
    Data Pipeline

    I am having this same issue, did you every figure something out to make it work?

    • Tim's avatar
      Tim
      Data Pipeline

      Yes: I edited the .smodel (json) file in a text editor. I found all my source tables in the json, cut+pasted their json to sit under a single dataset, and deleted the now-empty other data sources.

       

       

      Be careful: it's easy to corrupt the .smodel if you make a mistake in the json. But it's also easy to avoid that risk: (a) Download a backup of your .smodel. (b) When you upload, create a new model rather than overwriting. Make sure the model builds and check that a few tables have data, maybe even run a few widgets off it. If it works, then you can commit to it.

       

      Tip: A dedicated json editor might let you drag-and-drop the tables and delete datasets more quickly and without risk of corrupting. But I was ok just using notepad.