Forum Discussion
Problem with semantic model refresh after data transformation in Data Flow Gen2
- 2 years ago
Hello DALI007 ,
check out this post, maybe it'll help :
Re: How can I update the PowerBi semantic model sc... - Microsoft Fabric Community
Hey!
Im not sure I follow. You mention a semantic model, a Lakehouse and a DataflowGen2.
The Dataflow Gen2 cannot load data directly to a semantic model. However, it can load data to a Lakehouse.
If you initially created a table in your Lakehouse to load data to, how did you create such table? Did you use the Dataflow Gen2 to create it? Assuming that such table needs to change its schema, how do you plan to change its schema? Or are you trying to create a completely new table? If you try to create a new table, how will you create such table?
Hello,
Exactly I used a Dataflow Gen2, a semantic model and a Lakehouse.
To my knowledge, with the default settings, a Direct Lake dataset is automatically refreshed when the data is loaded into a Lakehouse.
Yes, Initially I published manually the dataFlow Gen2 which made me the creation of the table in the lakeHouse.
In a second time I made a transformation on the table at DataFlow Gen2 (Adding a column "type_site" in the table).
my problem how to replace the existing table automatically or manually if the shemas of the table latter changes (in my case : addition of this new column for example) ? Thank you
- miguel2 years agoCommunity Admin
Is the issue that the new column is reflected in the Lakehouse but not in the automatic semantic model? Or that the new column is not reflected in the Lakehouse at all?
- DALI0072 years agoHelper II
Yes, the new column is not reflected in the Lakehouse at all
- miguel2 years agoCommunity Admin
A Dataflow Gen2 doesn't change the schema of a table in the destination at the moment.
You can either create a new table by going through the "data destination" configuration for your query and defining a new table, or make the changes in your backend (your LakeHouse) to alter the schema of a table and then update your dataflow gen2 to load the data to the updated schema. In both scenarios you'll have to go into the dataflow gen2 and update the configuration for the data destination.
hope this helps!