Forum Discussion

FredFred's avatar
FredFred
Frequent Visitor
1 year ago
Solved

SQL View created from Visual Query seems to be wrong

Hi Fabricators,   we used visual query for complex business logic and tried to translate it via "save as view" to SQL Statement. Turns out the result is not the same as it was in visual query. Stra...
  • v-csrikanth's avatar
    1 year ago

    Hi FredFred 
    Thank you for being part of the Microsoft Fabric Community.


    The behavior you're describing is likely caused by query caching in Microsoft Fabric’s visual query engine. Even if changes are reflected in the data preview (like when you click into the pop-up editor), when you "Save as SQL View," it may still generate SQL based on the previous cached schema.

    • After editing the source table, refresh the entire visual query (click "Refresh Preview") before saving it again.
    • Alternatively, close and reopen the visual query editor to force a full schema reload.


    If the above information helps you, please give us a Kudos and marked the Accept as a solution.
    Best Regards,
    Community Support Team _ C Srikanth.