Forum Discussion

DavidCousins's avatar
DavidCousins
Frequent Visitor
3 years ago
Solved

Gen2 Dataflow Failed to insert a table

I have a dataflow that is taking a .json file landed by a data pipeline into a lakehouse in the same workspace. I've flattened out the data to a single table, given the tables sensible data types and...
  • DavidCousins's avatar
    DavidCousins
    3 years ago

    So I think I've figured it out. It seems to happen when you have a referenced query that still has records in it that show as [list]. Even when this query isnt set to output to a destination. 

     

    Disabling staging on the main, referenced query, fixes it. Hopefully in the future the staging storage will support more record types, but at the very least the error could be cleaned up as it isnt helpful at all.

     

    Explanation of what I was trying to do:

     

    The JSON has a list of Power BI workspaces and all of their content, so I have the main query that points to the JSON and unpicks the Odata response. It returns the Workspace ID and then the lists of data for Reports, Users, Datasets etc.

     

    I then reference the main query to create a table of reports. I keep the Workspace ID but delete everything else other than the Reports column, which I then expand. Repeat that for Users and Datasets. Workspace ID appears in every one of these alongside the expanded info.

     

    I only set a destination for the flattened queries, not anything that still contains lists/records

     

    If I flatten the entire thing in a single query, then it will load happily. But that's a stupid setup as it means massively duplicating everything.