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.
Hi,
Did you figure it out yet or any other workaround?
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.
Let me know if I am doing something wrong.
Thanks!
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
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2