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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

Error while loading data from BC to PowerBi

(1) ShareShare
ReportReport
Posted on by 32
Hi , 
 
i have a problem while im trying to load the data from BC to Power BI it works for all the table just for purchase Invoice Lines is not working it gives me this error:
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:  77c9e642-fc43-4db9-9a84-d79d38f003cc.)

Details:

    DataSourceKind=Dynamics365BusinessCentral

    DataSourcePath=Dynamics365BusinessCentral
 
Kind Regards, 
Alejna 
 
I have the same question (0)
  • Gerardo Rentería García Profile Picture
    27,611 Super User 2026 Season 2 on at
    Hi
    Please resend the error message or image.
    BR
    Gr
  • Suggested answer
    Valentin Castravet Profile Picture
    32,800 Super User 2026 Season 2 on at
    It looks like your screenshot was not posted with your message. 
     
  • AM-01071407-0 Profile Picture
    32 on at

    Data Source.Error Dynamics365BussinesCentral: Request failed: the remote server returned an error: 400 Bad Request. (You must specify an id or a Document ID to get the lines)

    ​​​​​​​Sorry this is the error 

     
  • Suggested answer
    YUN ZHU Profile Picture
    102,791 Super User 2026 Season 2 on at
    Hi, This is very similar to the problem I discussed earlier.
     
    So, this should be standard control, you need to change your Endpoint or add a filter.
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Valentin Castravet Profile Picture
    32,800 Super User 2026 Season 2 on at
    Yun Zhu is correct, I believe for that API you need to specific the document no./invoice no.
     
  • Suggested answer
    CU02071649-0 Profile Picture
    5 on at
    Please dear sir my id is locked way reason
  • Suggested answer
    YUN ZHU Profile Picture
    102,791 Super User 2026 Season 2 on at
    Hi, You can try contacting Community Support.
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Steven Renders Profile Picture
    5,698 Moderator on at
    In PBI you can not pull the Purchase Invoice Lines directly, you need to pull the Purchase Invoices API then in there expand the lines.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 607 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 421 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 375 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans