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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join 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 is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.