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 :
Power Platform Community / Forums / Power Automate / Create Purchase Invoic...
Power Automate
Unanswered

Create Purchase Invoice Line in Microsoft Business Central

(0) ShareShare
ReportReport
Posted on by 8

Hello Experts,

 

I have been trying to create a Purchase Invoice Line in Business Central through Microsoft Flow, but, it is giving me the below error.

 

Dynamics365Financials: Request failed: The remote server returned an error: (400) Bad Request. (Document No. must have a value in Purchase Line: Document Type=Invoice, Document No.=, Line No.=0. It cannot be zero or empty.) inner exception: Dynamics365Financials: Request failed: The remote server returned an error: (400) Bad Request. (Document No. must have a value in Purchase Line: Document Type=Invoice, Document No.=, Line No.=0. It cannot be zero or empty.) clientRequestId: fb04aa3d-30d5-4b71-9dee-1652ddfcc9de

 

I was successfully able to create the Purchase Invoice.

 

Any advice on this would be of great help!

 

Note:

I am using the below connector to achieve my need.2018-07-31 17_26_41-Window.png

 

 

Categories:
I have the same question (0)
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi @Parth91,

     

    How is your flow created? Could you share a screenshot for the configuration?

     

    From the error message, it seems that you didn’t specify a value for Document No. and it cannot be zero or empty. Please try to give a value for the Document No. to see if it will work.

     

     

    Best regards,

    Mabel Mao

  • Parth Bhaidani Profile Picture
    8 on at

    Hi @v-yamao-msft,

     

    Thanks for your reply.

     

    From the list of fields that we get to provide value for, I have tried almost all of them but everything that I tried lead me to the same error.

     

    Still, I think the below highlighted field is what should be called the Document No. but, even that doesn't work.

     

     ABS.png

     

    Let me know if I am doing something wrong.

     

    Thanks!

  • MNarmeen Profile Picture
    18 on at

    Hi,

    Did you figure it out yet or any other workaround?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard