Reply
jaryszek
Post Prodigy
Post Prodigy

Adding new power query programatically

Hello,

I want to add new query programatacilly using TMDL file.
What i did i have just copied existing query TMDL file, changed name and columns:

jaryszek_0-1742570844272.png

 

What I am afraid of is this  lineageTag: 34f209fc-367a-4b75-9861-db05a3c79d76.
I got the duplicated lineageTag error while opening bpip file. 

So what i did i have changed lineageTag: 34f209fc-367a-4b75-9861-db05a39999

and worked. 

 

But what it is? Do i need to provide it? How to be sure that this is unique ?

 

Best,

Jacek

 

6 REPLIES 6
Deku
Solution Supplier
Solution Supplier

You don't need to provide it, it will be generate for you. It is used for composite models

 

Docs here


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Thank you.

Exact steps which i did:

1) Created a copy from my current powery query in TMDL file. 

2) Changed the copy name

3) Removed Lineage tag for tmdl table using Visual Studio Code.

 

And i got :

jaryszek_0-1742806099069.png

 

jaryszek_1-1742806162149.png

I do not want to generate tmdl tables after saving pbip opened project.

I want to copy tmdl table with power query code with adjustments for table name, source and columns and open it after.

Best,
Jacek

 

Deku
Solution Supplier
Solution Supplier

I just did this on one of my models. Made the changes on folder while desktop was closed. Openned successfully with the new table.


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

Thank you, 

did you remove Lineage tags from column names and for table ? 
And it worked? 

Best,
Jacek

Deku
Solution Supplier
Solution Supplier

Yes


Did I answer your question?
Please help by clicking the thumbs up button and mark my post as a solution!

hmm thank you. 
I need to test it more. 

avatar user

Helpful resources

Announcements
FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors (Last Month)
Top Kudoed Authors (Last Month)