Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi,
I am trying to embed Power BI reports with D365 on my local VM. Below are the steps that I have performed.
Application Name: Dynamics365
Error when regestering application: System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.PowerBI.OnboardingEmbed.OnboardingEmbed.AddApplicationPassword(AppRegistrationOperationResult appRegistrationResult, String Token) in C:\__w\1\s\src\Clients\OnboardingEmbed\OnboardingEmbed.cs:line 201 at Microsoft.PowerBI.OnboardingEmbed.Controllers.OnboardingEmbedController.d__27.MoveNext() in C:\__w\1\s\src\Clients\OnboardingEmbed\Controllers\OnboardingEmbedController.cs:line 389
Can anyone help me to resolve the issue or share the root cause of the issue.
Thanks
Hi @tameemyousaf1 ,
This type of error usually occurs when trying to use a reference variable that has not yet been initialized to an object instance
You can try checking the following:
Review the parameters and configurations provided during setup. Make sure that none of the required fields have been left blank or configured incorrectly.
Ensure that the access rights you have selected have been configured correctly and that your account has the required permissions to perform the registration.
For frequently asked questions and solutions related to embedding setup, please see the link:
Troubleshoot Power BI embedded analytics application - Power BI | Microsoft Learn
Here are some scenarios with error messages, you can check the following link.
NullReferenceException Class (System) | Microsoft Learn
This is the related document, you can view this content:
Solved: Creating a table in Tabular Object Model - Microsoft Fabric Community
Solved: "Object Reference not set to instance" error in Cu... - Microsoft Fabric Community
App owns data AAD accessToken run in Object refere... - Microsoft Fabric Community
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.