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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Issue performing the "receiveAndInvoice" action in LogicApps

(3) ShareShare
ReportReport
Posted on by 69
I'm trying to perform the "receiveAndInvoice" action in a LogicApp flow. the action gives the following error.
"ErrorCode: Application_DialogException You need to enter the document number of the document from the vendor in the Vendor Invoice No. field, so that this document stays linked to the original. "
Schermafbeelding ...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • Suggested answer
    Holly Huffman Profile Picture
    6,538 Super User 2025 Season 2 on at
    Hi there! Good morning, evening, or afternoon - depending on where you are :) Hope you are well today! 
    I am unable to open your file, however - here are some suggestions (and apologies if you've tried these already)
     
    The error message indicates that the Vendor Invoice No. field is missing a value, which is required to link the document to the original vendor invoice.
     
    • Check the Input Data:
      • Ensure that the Vendor Invoice No. field is populated in the data being passed to the "receiveAndInvoice" action. This field is mandatory for the action to complete successfully.
    • Modify the LogicApp Flow:
      • Locate the step in your LogicApp where the "receiveAndInvoice" action is being called.
      • Add a step before this action to populate the Vendor Invoice No. field. You can use a dynamic value from a previous step or manually set a default value if appropriate.
    • Validate the Data Source:
      • If the data is coming from an external system (e.g., Dynamics 365 or another database), verify that the Vendor Invoice No. is being correctly retrieved and passed into the LogicApp.
    • Test the Flow:
      • After making the changes, test the LogicApp with sample data to ensure the issue is resolved and the action completes without errors.
    • Error Handling:
      • To prevent similar issues in the future, consider adding error-handling steps in your LogicApp. For example:
        • Use a Condition step to check if the Vendor Invoice No. field is empty before calling the "receiveAndInvoice" action.
        • If the field is empty, send a notification or log the error for further investigation.
  • Ramesh Kumar Profile Picture
    7,529 Super User 2025 Season 2 on at
    Hi,
     
    Can you please double to Check the data mapping: Review the LogicApp flow to ensure the "Vendor Invoice No." is correctly mapped from previous steps or dynamically populated.
     
    Thanks
    Ramesh
     
    If this was helpful, please check the "Does this answer your question?" box and mark it as verified.
  • Suggested answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at
    Hi, There seems to be something wrong with your screenshot, it would be best if you could re-upload it.
     
    I have done the salesOrder-shipAndInvoice test of Sales Order in Power Automate, and it should be similar in Logic app.
    Dynamics 365 Business Central: How to post document/journal via Power Automate
     
    Hope this can give you some hints.
    Thanks.
    ZHU
  • Suggested answer
    Jainam M. Kothari Profile Picture
    15,639 Super User 2025 Season 2 on at
    Hello,
     
    You need to Enter the Value in Mandatory Field in Purchase Order called "Vendor Invoice No."

  • Verified answer
    Jan de Mul Profile Picture
    69 on at
    I turned off the "Ext. Doc. No. Mandatory" option in the "Purchase & Payables Setup", It wasn't nessecary for the process and solved the issue.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,238

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 630

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans