Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
tameemyousaf1
New Member

Embedding setup Issue

Hi,

 

I am trying to embed Power BI reports with D365 on my local VM. Below are the steps that I have performed.

 

  • Selected the embedding solution "Embed you organization"

tameemyousaf1_0-1709105538094.png

  • After signin below options below parameters are given
    • Application Name: Dynamics365

    • Application Type: Server-side web application
    • Home Page URL: URL of D365 on my local dev machine
    • Redirect URL: Use a default URL (Choose this if you’d like download a pre-configured sample app when you finish this process)
    • API access: ALL

tameemyousaf1_1-1709105997155.png

tameemyousaf1_2-1709106068159.png

  • When I click on register then it gives below error

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

tameemyousaf1_3-1709106234169.png

 

Can anyone help me to resolve the issue or share the root cause of the issue.

 

Thanks

 

 

1 REPLY 1
v-yangliu-msft
Community Support
Community Support

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.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.