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

A new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.

Reply
chucksteel
Frequent Visitor

Active Directory Data Flow Error

I am attempting to create a Data Flow that will retrieve Active Directory data via an on-premises data gateway. After entering our domain information and authentication I receive the following error:

Error from external service: Expression.Error: The key didn't match any rows in the table. (Session ID: 7743e1a4-1944-46b7-baf3-e2c55b3f5a52)

 

I have read other posts on this forum regarding Active Directory errors but have not seen that particular one before. Has anyone else successfully setup a data flow to on-premises Active Directory?

1 ACCEPTED SOLUTION

It turns out that the domain name needs to be in upper case. If I hadn't looked at the advanced query editor in Power BI Desktop I would not have caught that.

 

Thanks.

View solution in original post

2 REPLIES 2
v-juanli-msft
Community Support
Community Support

Hi @chucksteel 

You could use the same domain information and authentication in Power BI Desktop to test if there is any error.

If it works in Power BI Desktop, open Advanced editor in Desktop, copy and paste that code in Power Query online.

Before Power Query Onlibe can connect to Active Directory data correctly, you need to add data source under the on-premise gateway (personal mode doesn't support).

 

Best Regards

Maggie

 

Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

It turns out that the domain name needs to be in upper case. If I hadn't looked at the advanced query editor in Power BI Desktop I would not have caught that.

 

Thanks.

Helpful resources

Announcements
May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.