Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
Currently i am in the process of transitioning from a novice to an experienced fabric user hence i have more and more use for M/Power Query from the Gen2 dataflows aspect.
Currently i am working on a routine where i need to load some data from a source into a sink system. In the sink system i do have a need to insert records with a generated unique UUID.
After scouring this forum i have found the right workaround to actually generate unique ID's in my data but i am experiencing issues if i want to use those values in further activities in my flow
Consider 2 activities, 'add products' and 'add productitems'
In activity 'add products' i use the following line to generate the unique GUID's:
Solved! Go to Solution.
Hi evanmandos,
We have not received a response from you regarding the query and were following up to check if you have found a resolution. If you have identified a solution, we kindly request you to share it with the community, as it may be helpful to others facing a similar issue.
If you find the response helpful, please mark it as the accepted solution and provide kudos, as this will help other members with similar queries.
Thank you.
@lbendlin @v-pnaroju-msft Many thanks for the response, you very helpfully clarify to me what the functional limitation is, i have indeed approached it a bit different now handling the generated ID's separately and using extra db-roundtrips and the case is operational.
Hi evanmandos,
We have not received a response from you regarding the query and were following up to check if you have found a resolution. If you have identified a solution, we kindly request you to share it with the community, as it may be helpful to others facing a similar issue.
If you find the response helpful, please mark it as the accepted solution and provide kudos, as this will help other members with similar queries.
Thank you.
Thankyou, @lbendlin, for your response.
Hi @evanmandos,
We sincerely appreciate your inquiry submitted through the Microsoft Fabric Community Forum.
Based on my understanding, this behaviour arises from the way Power Query operates. Power Query is a functional, stateless language, and expressions such as Text.NewGuid() are re-evaluated every time they are invoked, unless the result is materialised.
Kindly follow the steps mentioned below to persist your generated GUIDs across flow steps like 'add products' and 'add productitems', which may help resolve the issue:
In your 'add products' step, generate the GUID using the following code:
Table.AddColumn(#"Previous Step", "id2", each Text.NewGuid(), type text)
Write this table to a persistent sink such as Azure Data Lake, Fabric Lakehouse, or any SQL destination.
In the 'add productitems' step, read from that sink instead of referencing the 'add products' step. This will ensure that the GUIDs are fixed and do not change with each query execution.
If you find our response helpful, kindly mark it as the accepted solution and provide kudos. This will assist other community members facing similar queries.
Thank you.
Power Query has no memory. It can and will run your query more than once. You need to create your unique identifier further upstream if you want it to persist.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!