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 : UMWwFPw/1UVXlxOUk3klIL
Power Automate - General Discussion
Unanswered

Create Purchase Invoice Line in Microsoft Business Central

Like (0) ShareShare
ReportReport
Posted on 31 Jul 2018 12:01:32 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

 

 

  • MNarmeen Profile Picture
    18 on 16 Oct 2018 at 19:41:44
    Re: Create Purchase Invoice Line in Microsoft Business Central

    Hi,

    Did you figure it out yet or any other workaround?

  • Parth Bhaidani Profile Picture
    8 on 01 Aug 2018 at 08:55:21
    Re: Create Purchase Invoice Line in Microsoft Business Central

    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!

  • v-yamao-msft Profile Picture
    on 01 Aug 2018 at 07:54:39
    Re: Create Purchase Invoice Line in Microsoft Business Central

    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

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete