web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

Power BI

(1) ShareShare
ReportReport
Posted on by 24
I am getting the error below when trying to connect to Standard APIs 
 
DataSource.Error: Dynamics365BusinessCentral: Request failed: The remote server returned an error: (400) Bad Request. (You must specify an Id or a Document Id to get the lines.  CorrelationId:  39db6ed0-2b60-4b60-95ce-512c54b242b8.)
Details:
    DataSourceKind=Dynamics365BusinessCentral
    DataSourcePath=Dynamics365BusinessCentral
    Url=https:/api.businesscentral.dynamics.com/v2.0/PRODUCTION/api/v2.0/purchaseInvoiceLines?company=xxxxxxxxxx
I have the same question (0)
  • Suggested answer
    Community member Profile Picture
    2 on at
    Power BI
    as per the "error: (400) Bad Request. (You must specify an Id or a Document Id to get the lines." it means either you are using a wrong URL or wrong way to filter OData.
  • Suggested answer
    Gerardo Rentería García Profile Picture
    23,590 Most Valuable Professional on at
  • Suggested answer
    YUN ZHU Profile Picture
    93,222 Super User 2025 Season 2 on at
    Power BI
    It seems to be a problem with your Endpoint.
    Another question I have is that when selecting APIs or Web Services in Power BI, there is no need to enter a URL.
     
    If you added the OData feed manually, please pay attention to adding the following filter.
     
     
    Hope this helps.
    Thanks.
    ZHU
  • Judy Profile Picture
    Microsoft Employee on at
    Power BI
    Hi, for the error messages, please go to the Web Services page to make sure the Web Service is Published so it's accessible.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 2,828

#2
Sumit Singh Profile Picture

Sumit Singh 2,617

#3
YUN ZHU Profile Picture

YUN ZHU 1,861 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans