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

Join 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.

Reply
joeljey
New Member

Gateway refresh getting failed with below error

Hi All, 

 

 SAP BW (SNC) SSO has been configurated and works fine with Power BI destkop .  I am trying to setup SSO between PowerBI gateway and SAP BW system .  Getting the below error during refresh 

 

Data source error: {"error":{"code":"DM_GWPipeline_Gateway_InvalidConnectionCredentials","pbi.error":{"code":"DM_GWPipeline_Gateway_InvalidConnectionCredentials","parameters":{},"details":[{"code":"DM_ErrorDetailNameCode_UnderlyingErrorCode","detail":{"type":1,"value":"-2147467259"}},{"code":"DM_ErrorDetailNameCode_UnderlyingErrorMessage","detail":{"type":1,"value":"The credentials provided for the SapBusinessWarehouse source are invalid. (Source at hostname/SID/200/AAA-SID.)"}},{"code":"DM_ErrorDetailNameCode_UnderlyingHResult","detail":{"type":1,"value":"-2147467259"}},{"code":"Microsoft.Data.Mashup.CredentialError.DataSourceKind","detail":{"type":1,"value":"SapBusinessWarehouse"}},{"code":"Microsoft.Data.Mashup.CredentialError.DataSourcePath","detail":{"type":1,"value":" hostname/SID/200/AAA-SID"}},{"code":"Microsoft.Data.Mashup.CredentialError.Reason","detail":{"type":1,"value":"AccessUnauthorized"}},{"code":"Microsoft.Data.Mashup.MashupSecurityException.DataSources","detail":{"type":1,"value":"[{\"kind\":\"SapBusinessWarehouse\",\"path\":\" hostname/SID/200/AAA-SID\"}]"}},{"code":"Microsoft.Data.Mashup.MashupSecurityException.Reason","detail":{"type":1,"value":"AccessUnauthorized"}}],"exceptionCulprit":1}}} Table: WAA-BW-042 Interaction Records for Webi.
Cluster URI: AAAA-NORTH-EUROPE-G-PRIMARY-redirect.analysis.windows.net
Activity ID: 3f38f04c-f145-469e-a84e-86bc901f433d
Request ID: 411fda71-ff39-a04a-414c-2ac9e10303c3
Time: 2023-11-27 14:07:24Z

 

in gateway logs , i can see the message - could not find a suitable sap user for the snc name of the caller .

 

Please advice 

4 REPLIES 4
joeljey
New Member

We were able to sort out the issue by adding below two parameter values in gateway config file Microsoft.PowerBI.DataMovement.Pipeline.GatewayCore.dll.config under C:\Program Files\On-premises data gateway 

 

<setting name="ADUserNameReplacementProperty" serializeAs="String">

        <value>SamAccountName</value>

      </setting>

 

<setting name="ADUserNameLookupProperty" serializeAs="String">

        <value>UserPrincipalname</value>

      </setting>

joeljey
New Member

Hi @joeljey 

 

That is as much as I know unless others can help I would log a support ticket?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

GilbertQ
Super User
Super User

Hi @joeljey 

 

Would it not be that you first need a SAP user with the high enough access to access the SAP BW, after which it would then work with SSO.

 

DirectQuery and SAP Business Warehouse (BW) in Power BI - Power BI | Microsoft Learn





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.