Forum Discussion
Fabric User Data Function throws error while attempting call from data pipeline
- Anonymous1 year ago
Hi Mahalakshmi_15 ,
Thank you for the follow-up ! To make the REST API call to your User Data Function work, you may want to use like this token scope:
https://api.fabric.microsoft.com/.default
This tells the system you’re trying to access Fabric-specific resources. Just make sure your app in Entra ID has the right API permissions for Microsoft Fabric, and that consent has been granted (either by you or an admin, depending on your setup). Once you update the scope and retry the call, it might bring you a step closer.
As I mentioed earlier,So even with the correct scope, you might still see errors . You can find more details in the known issues.
I hope this helps you to resolve your query.If so,consider acepting it as solution.
Regards,
Pallavi.
Hi Mahalakshmi_15 ,
Thank you for reachong ou to us!
Thanks againfor sharing the detailed steps and setup.
The error you are seeing when calling the User Data Function via REST API and "PowerBIEntityNotFound" error in the Fabric Data Pipeline likely stem from a known issue in Microsoft Fabric when working across different tenants. This issue occurs when a function, Dataflow Gen2, or pipeline tries to connect to a Lakehouse located in a different tenant.Microsoft team is actively working on to fix this issue.
Based on your setup, it's possible that the Lakehouse and the User Data Function or registered Azure app are in different tenants or regions.Please verify that the Lakehouse, User Data Function, and REST API call are all within the same tenant and region.
Also, as a work-arund, update the token scope in your REST API code.Double check that the function URL you are using is correct format , and that the app has all required permissions granted in Entra ID and Fabric.
You may find this scenario listed under the known issues for Microsoft Fabric here:
https://learn.microsoft.com/en-us/fabric/known-issues/fabric-known-issues
Hope this resolve your query.If so,consider accepting tit as solution.
Regards,
Pallavi.
Thank you for response.
Could you please tell me the token scope that I need to use for REST API call. So i can try with updated scope value
- Anonymous1 year agoNot applicable
Hi Mahalakshmi_15 ,
Thank you for the follow-up ! To make the REST API call to your User Data Function work, you may want to use like this token scope:
https://api.fabric.microsoft.com/.default
This tells the system you’re trying to access Fabric-specific resources. Just make sure your app in Entra ID has the right API permissions for Microsoft Fabric, and that consent has been granted (either by you or an admin, depending on your setup). Once you update the scope and retry the call, it might bring you a step closer.
As I mentioed earlier,So even with the correct scope, you might still see errors . You can find more details in the known issues.
I hope this helps you to resolve your query.If so,consider acepting it as solution.
Regards,
Pallavi.