The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
I created Power BI desktop reports as follows:
DFGEN2 (Get the source data) -> Warehouse (Table) -> Created Stored Procedure ->Data Pipeline to run the procedure daily.
While generating new dashboards, I realized I will need to retrieve additional columns. I updated the stored procedures which drops/creates intermediate tables and finally uses Union to join all intermediate tables. I added the additional columns in all intermediate tables which then reflects in final table being used across all dashboards. When I run the drop/create table queries manually, it generates the tables with newly added columns. But the daily refresh of the procedure (set via data pipeline) does not include the newly added columns. What needs to be done for the systematic refresh of procedure to refer to the updated query and include the additional columns too?
Thanks VahidDM. I am using data pipeline -> Stored Procedure activity (https://learn.microsoft.com/en-us/fabric/data-factory/stored-procedure-activity) by connecting to the warehouese that has the stored procedure. I deleted the original Stored Procedure activity and set it up again. Now the new columns show up. But the refresh is not getting the data on daily run. As December started, I am expecting to see December numbers. But those are not getting updated with the daily refresh/run of the data pipeline. Again, when I run the stored procedure manaully, those numbers refresh correctly. It seems that it is keeping data in cache and does not actually refresh it on daily run. You have mentioned -
How to check if it is setup to use result-set caching? How to ensure that it does not cache the result and refreshes it on the daily refresh that I have already scheduled?
Hi @AG_PBI
When you update a stored procedure to include new columns, but your data pipeline doesn't reflect these changes during the scheduled refresh, it's likely because the pipeline is using cached metadata or hasn't been updated to recognize the new schema.
Here's what you need to do:
Refresh Metadata in Your Data Pipeline:
Update Mappings in Data Flow (If Applicable):
Redeploy or Publish the Pipeline:
Verify Permissions and Caching:
Test the Pipeline Manually:
By refreshing the metadata and updating your pipeline to recognize the changes in your stored procedure, the scheduled refresh should include the new columns moving forward.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!