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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
marukosu
Advocate I
Advocate I

(500): Internal Server Error with SAP B1 Service Layer

Hello everyone!

 

I'm trying to connect to the Service Layer of SAP B1 as follows:

let
url = "https://xyzServer:50000/b1s/v1",

payload =
Json.FromValue(
[ CompanyDB = "xyzDB", UserName = "user", Password = "pass" ]
),

login =
Web.Contents(
url,
[
RelativePath = "Login",
Headers = [#"Content-Type" = "application/json"],
Content = payload
]
),

response = Json.Document( login )
in
response

However, I always receive the following error:

marukosu_1-1710603596438.png

This same connection was tested a while ago on Qlik, and it worked correctly. What could be happening in Power Query?

1 ACCEPTED SOLUTION
marukosu
Advocate I
Advocate I

Solved using the Feed OData connector, and adjusting the end of the URL from v1 to v2.

View solution in original post

2 REPLIES 2
marukosu
Advocate I
Advocate I

Solved using the Feed OData connector, and adjusting the end of the URL from v1 to v2.

amustafa
Super User
Super User

Try enabling the necessary firewall rules for Power BI to communicate with SAP Business One (SAP B1), follow these steps:

1. Power BI Service Endpoints:
- Power BI relies on specific endpoints for its functionality. Ensure that the following endpoints are reachable from your SAP B1 server:
- api.powerbi.com (TCP Port 443)
- \.analysis.windows.net (TCP Port 443)
- \.pbidedicated.windows.net (TCP Port 443)
- content.powerapps.com (TCP Port 443)
- datamart.fabric.microsoft.com or datamart.pbidedicated.windows.net (TCP Port 1433)
- dc.services.visualstudio.com (TCP Port 443)
- arc.msn.com (TCP Port 443, optional)
- nps.onyx.azure.net (TCP Port 443, optional)

2. Microsoft 365 Authentication and Identity:
- Power BI depends on Microsoft 365 endpoints for authentication. Ensure connectivity to the following:
- Microsoft 365 Common and Office Online URLs (N/A)

3. Portal Access:
- For general use of Power BI, allow access to:
- \.powerbi.com (TCP Port 443)

4. Gateway Administration (Preview):
- If you're using gateway administration features, allow access to:
- gatewayadminportal.azure.com (TCP Port 443)

5. Service Telemetry:
- To monitor service telemetry, allow access to:
- dc.services.visualstudio.com (TCP Port 443)

6. Additional Optional Endpoints:
- Consider allowing access to optional endpoints for informational messages and NPS surveys.

 





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

Proud to be a Super User!




Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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