User Profile
x_mark_x
Advocate II
Joined 1 year ago
User Widgets
Contributions
Re: Access Key-vault in notebooks
do-sc , thank you for your reply. After some further trials and errors, I got it working based on the article mentioned above. I noticed that while I followed every step, I used my own code for the retrieval and more precisely I used the notebookutils.mssparkutils.credentials.getSecret method instead of using notebookutils.credentials.getSecret. As mssparkutils is an older library, and notebookutils practically replaced it (https://learn.microsoft.com/en-us/fabric/data-engineering/notebook-utilities), I guess that the getSecret method got an update as well, so it can use the custom connections, while the old version does not support that feature. Anyways, thank you for your help 🙂7.5KViews0likes0CommentsRe: Access Key-vault in notebooks
do-sc , this is a great article but even after following the steps to the T, i still get a "403 Caller is not authorized to perform action on resource" error when running the notebook in the pipeline. Do you have any suggestions on how to solve/troubleshoot this issue?8KViews0likes2CommentsFabric IQ Ontology item for SaaS companies
Hello there Fabricators! I am starting to experiment with the Ontology item which sounds great on paper but I hit obsticles when it comes to defining the entities. The ontology demo that was presented at Microsoft Ignite was great, but as a data analyst in an SaaS company, i have a hard time to define our entities. In the demo example the business was aviation and airport related and the definition of the entities was quite straightforward, but for an SaaS company that sells licenses to customers with a valid from and valid to date the entity modeling is not so straightforward to me (not to mention that we have several types of licenses to several editions of our product and the customer can add or remove licenses at will...). Is there anyone out there who is currently trying to create the ontology for a license based SaaS company? If yes, it would be great to hear your thoughts, strategies and things you learned so far that can help me to create an ontology that can support a Data Agent and deliver trustworthy and consistent answers to the users. Please feel free to ask questions or add your two-cents to the topic 🙂1.5KViews1like1CommentRe: Semantic model refresh does not refresh data in report
Indeed DuncanKing, Either there should be an option in the refresh activity or scheduled refresh to "warm up" the data source by doing a pre-operation query or similar, or there should be an easy to find and understand documentation about this behaviour with easy to follow solution tutorial. Hopefully you forum post or maybe this one gets picked up by the community at least...405Views0likes0CommentsRe: Semantic model refresh does not refresh data in report
DuncanKing , thank you, your suggested solution worked! I first tried a Lookup activity with a query and without a wait activity, the next day with a wait acitivity, but finally the script activity with the SELECT TOP 1 * and the wait activity combination worked today. Thank you a lot, I will mark you post as the solution.4.8KViews0likes2CommentsRe: Semantic model refresh does not refresh data in report
Hi DuncanKing, Your reply is most useful, although I also need time to confirm if it works as expexted. My gut feeling says that this might be the solution, and your post would also perfectly explain why my 6AM scheduled pipeline run does not update the semantic model, while when I run it later (after I made some queries on the Lakehouse) it does the update. Now I also added a Lookup activity after the Gold pipeline where I just get the MAX of my TransactionId. In theory this would "warm up" the Lakehouses metadata, and when I do the Semantic model refresh after, it should get the new data. I only implemented this method this morning though, so I also need a couple of days to confirm the validity of this claim but this also explains why I first got old data displayed when I ran an SQL query directly on my Lakehouse, but when I ran the query again right after it showed the new data; the metadata was not updated because the endpoint was not warm. Fingers crossed 🤞 P.S.: I wonder if the same applies in case we have the Semantic model refresh activity in the pipeline instead of the API call... 🤔4.8KViews1like5CommentsRe: Semantic model refresh does not refresh data in report
I am genuinely puzzled. I am running the above pipeline every day at 6 AM while still out of office, and while the pipeline runs without and error, I consistently get the old data both in the semantic model and in the report. But then when I get to the office, I change the schedule to maybe 8:10 (or any other random time), let the same pipeline run again and after a successfull pipeline run I see the fresh data in the semantic model and in the reports as well. In both cases I run a scheduled pipeline, the only difference being that I run it at a different time. This is a consisteny behaviour and I don't find any logic in this. Either I do something gravely wrong, Microsoft is not on top of the refresh game or Fabric wants some human company to work. DuncanKing did you try the above method? If yes what is your experience? I have a meeting next week with a Microsoft Fabric expert and I hope that he can show me a method that consistently works. If so I will definitely post the solution here.5KViews0likes8CommentsRe: Semantic model refresh does not refresh data in report
Hi DuncanKing, It might be that under the hood it is the same API call, but when I look at the refresh history of the semantic model, I see that the Semantic model refresh activitys Type is Data Factory, while the above mentioned methods Type is API. In my case I have only one capacity, and the semantic model is in the same workspace as the Lakehouse. In case I see that this method works consistently my plan is to bring the same pipeline through my test and prod stages as well, but even than the (prod) semantic model will live in the same (prod) workspace as the (prod) Lakehouse.5KViews1like9CommentsRe: Semantic model refresh does not refresh data in report
Hi DuncanKing, Thanks for reaching out. I might have a solution now, but I need to verify its validity. It worked today at least...but I would need to confirm if this works consistently. On the other hand it would be nice to see if this method works with others as well. Here it goes. So I restructured my ETL pipeline first. Previously I had one main pipeline that was calling different notebooks for my bronze, silver and gold transformations, and connected the semantic model refresh activity after it. I am guessing that right after the last gold transformation notebook where I also save the data to my Lakehouse, there was not enough time for the Lakehouse metadata to be changed, and so the Semantic model refresh activity copied the old data. So, 1. I created child pipelines: - the bronze pipeline only held the copy activities from source and a bronze notebook (which calls an OAuth2 API, that I could not solve with any other activity, but this is a completely different issue) - a silver pipeline for the silver transformation notebooks - a gold pipeline for the gold transformations 2. I created a parent pipeline that calls the bronze, silver and gold pipelines after each other. 3. I created yet another pipeline that does the semantic model refresh. I followed the exact steps from this article to create this semantic model refresh pipeline: https://medium.com/@gordeyew/refresh-semantic-model-with-microsoft-fabric-data-pipeline-4f5e7f6c479b 4. I added the semantic model refresh pipeline after my gold pipeline (on success), AND made sure that the Wait on completion option was turned on on the Gold pipeline. Now my parent pipeline looks like this: NOTE: 1. I am also trying to implement CI/CD principles, and so far I only ran this pipeline in my dev stage as seen on the workspaces option. 2. - This morning I checked if the pipeline ran successfully, which it did. - Then I checked if I have the latest data in my Lakehouse, which it did. - Then I checked the semantic model if it was updated in the Refreshed column, which showed todays date. - Then I clicked the explore semantic model option and checked the transactionId column value to see if it is the same as in the Lakehouse, and I,ve seen the latest data. - Finally I've opened my report that was showing the old data, but when I refreshed the visual the report showed todays data. 3. This method needs to be validated to see if it is reliable or not. Verification will take me about a week or so... I will keep this post updated about my experience, and if you also end up trying this, please leave a feedback on your findings, it would be super helpful.5KViews0likes11CommentsRe: Semantic model refresh does not refresh data in report
Hi v-echaithra I did not yet try out the Power Automate method as I was trying out different methods that stay strictly within Fabric territory. I tried this method, to call the Fabric API and refresh the semantic models in a pipeline, and made sure that the Wait on completion option is checked before the semantic model refresh is run, but it was to no avail (https://medium.com/@gordeyew/refresh-semantic-model-with-microsoft-fabric-data-pipeline-4f5e7f6c479b). I will try the power automate method this week, but I am still amazed how complicated, unintuitive and ineffective it is to refresh the semantic models, and that Microsoft can not find a reliable method within Fabric for automate this process, which basically is possible to do with a manual click of a button. Please let me know if there is any idea or issue report I can vote for to have this fixed. I get back to you when I tried the Power Automate method.5.1KViews1like1Comment
Data Privacy
Microsoft Fabric Community and Privacy
To learn more about how we manage your data, please review the Microsoft Fabric Community Data Privacy guide.