Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
garykglenn
New Member

How do I purge old data?

I have a table that was imported as a Web CSV.  The format of the table has changed and new columns have been added.  I tried deleting the old table and importing again.  But the new table comes up with the old data and column format.  Obviously it has that table cached.  How do I get rid of the cached instance so I can re-import the table with the new data format?  I have gone through the delete/re-import process numerous times.  I have tried changing the names of columns it has in the cache to see if that would invoke an error and clean thing out.  But it always comes back with the same data.

4 REPLIES 4
Greg_Deckler
Super User
Super User

Is it a public URL that you can share? Also, can you share the Source line from your query so that we can see what M function you are using? Go into Query Editor and then click on Advanced Editor.

 

For example, there are specific options when retrieving content using Web.Contents for ignoring the cache.

 

https://msdn.microsoft.com/en-us/library/mt260892.aspx

 

 


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

This is an internal URL.  I have remove the Columns=5 clause from the Source line already, as I was advised that might help things.  Currently, import is failing because the cumulativeVolumes column is no longer present in the stream.  What I need it to do is regenerate the headers from the CSV source.

 

    Source = Csv.Document(Web.Contents("https://cosmos15.osdinfra.net/cosmos/Asimov.Partner.osg/shares/asimov.prod.data/PublicPartner/Proces...", Encoding=1252, QuoteStyle=QuoteStyle.None]),

 

Thanks.

Hi @garykglenn,

 

Have you tried the solution provided by @Greg_Deckler above? Does it work in your scenario? If it works, could you accept it as solution to close this thread?

 

If you still have any question on this issue, feel free to post here. Smiley Happy

 

Regards

Perhaps try this:

 

Source = Csv.Document(Web.Contents("https://cosmos15.osdinfra.net/cosmos/Asimov.Partner.osg/shares/asimov.prod.data/PublicPartner/Proces...", Encoding=1252, QuoteStyle=QuoteStyle.None],IsRetry),

 

This should force it not to retrieve from cache.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.