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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote 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
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.