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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
krambabu
New Member

Getting CredentialMissing error during data source setting using on-premises data gateway

Hi, I'm trying to connect our own data source using on-premises data gateway(enterprise mode). I wrote custom connector. chose that connector during gateway setup. Below are custom connector essential details.

1. it's an odbc datasource connector.

2. authentication type is UsernamePassword.

3. shared function accepts one required parameter. It's DSN.

4. TestConnection function is handled. (pass DSN parameter to the shared datasourcekind function).

For info DSN is configured in ODBC dataSource Administrator under sytemDSN tab where i gave service host,port,service datasource.

Now i'm trying to configure data source setting in gateway, it gives 3 text boxes 1 for DSN,2 for Username and 3rd for Password and clicked on add button. Getting below error.

DM_ErrorDetailNameCode_UnderlyingHResult: -2147467259
Microsoft.Data.Mashup.MashupSecurityException.DataSources:[{"kind":"Lab","path":"{\"dsn\":\"{\\\"dsn\\\":\\\"lablocal\\\"}\"}"}]
Microsoft.Data.Mashup.MashupSecurityException.Reason:CredentialMissing

 

i'm reading credentials from Extension.CurrentCredential(). dsn is required parameter("lablocal") so,it'll be passed.

Tried by hard coding the credentials too. But getting same error. Same connector is working in powerBI desktop.

Could you please help/suggest what could be the reason? How can i move forward to solve this? Can we use DSN in gateway data source adding process?

 

 

1 REPLY 1
v-angzheng-msft
Community Support
Community Support

Hi, @krambabu 

 

Unable to reproduce your problem. If you have Pro account you could try to open a support ticket. If you have a Pro account it is free. Go to https://support.powerbi.com. Scroll down and click "CREATE SUPPORT TICKET".

 

 

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.