Back to articles
D365 F&O Functional

Why D365FO vendor invoices fail three-way matching

Learn what three-way matching actually checks in Dynamics 365 Finance, why vendor invoices fail on quantity or price, and which parameters you need to verify before the invoice can be posted.

Why D365FO vendor invoices fail three-way matching#

If a vendor invoice fails three-way matching in D365 Finance, the first thing to check is not the invoice itself — it is usually the setup behind it. Three-way matching compares the invoice against the purchase order and the matched product receipt quantities. If the invoice quantity does not line up with the receipt, or if the price is outside tolerance, D365FO flags a matching discrepancy and may block posting until it is approved. (learn.microsoft.com)

The most common causes are:

  • no product receipt was posted yet
  • the wrong receipt was selected on the invoice
  • the item or vendor is configured for three-way matching, but the business expected two-way matching
  • the invoice price is outside the tolerance defined for the matching policy
  • invoice posting with discrepancies is set to require approval

What three-way matching checks#

In D365FO, three-way matching is the process of comparing:

  1. the purchase order line,
  2. the product receipt quantity, and
  3. the vendor invoice line.

Microsoft documents that the quantity on the invoice must match the quantity on the corresponding product receipts, and the system also checks price tolerances such as unit price or net amount depending on the matching setup. (learn.microsoft.com)

That means a vendor invoice can fail even when the PO looks correct, because the receipt side is part of the validation.

The settings that usually control the failure#

For invoice matching validation to happen, the standard Accounts payable setup needs to be in place. Microsoft says to enable invoice matching validation, set Post invoice with discrepancies to Require approval, and set Line matching policy to Three-way matching when you want quantity matching enforced. (learn.microsoft.com)

Also check whether the matching policy is set at a more specific level. D365FO can apply three-way matching by legal entity, vendor, item, item/vendor combination, or purchase order, depending on the configuration. (learn.microsoft.com)

How to troubleshoot the failure#

1) Confirm that the product receipt exists#

If the invoice arrives before the receipt is posted, the invoice can show a receipt match problem. Microsoft’s vendor invoice workspace documentation explicitly calls out a Receipt match error when the invoice was received before the product receipts. (learn.microsoft.com)

So if the invoice fails quantity matching, verify that the receipt is actually posted and not just expected.

2) Open the invoice matching details#

The invoice matching pages show exactly which line failed and why. Microsoft’s examples show separate indicators for product receipt quantity match, price match, and price total match. (learn.microsoft.com)

That makes the root cause much easier to narrow down:

  • Product receipt quantity match failed → receipt is missing, wrong, or not fully matched
  • Price match failed → unit price is outside tolerance
  • Price total match failed → line total is outside tolerance

3) Check whether posting is blocked by approval rules#

Even when the discrepancy is understood, posting may still be blocked if the legal entity requires approval before posting with discrepancies. Microsoft documents both the Require approval setup and the option to approve posting with matching discrepancies from the invoice matching details page. (learn.microsoft.com)

Practical examples#

Example 1: invoice is received before the receipt is posted#

This is the simplest failure. The PO exists, but no product receipt is available yet. In that case, the invoice cannot pass three-way matching because there is nothing for the invoice quantity to match against. Microsoft’s examples and workspace guidance both describe this scenario. (learn.microsoft.com)

Fix: post the product receipt first, then re-run invoice matching.

Example 2: quantity is correct, but price fails tolerance#

A vendor invoice can still fail if the quantity matches but the unit price or total exceeds the configured tolerance. Microsoft’s invoice matching overview shows that the system checks both quantity and price, and the policy examples demonstrate price and quantity can fail independently. (learn.microsoft.com)

Fix: verify the matching policy tolerance, confirm the PO price, and decide whether the variance should be accepted or corrected at the source.

Example 3: the wrong matching policy was applied#

Sometimes the issue is not the invoice entry at all. A vendor or item can be configured for three-way matching even if the legal entity default is different, and purchase orders can override the default policy. (learn.microsoft.com)

Fix: check the policy hierarchy for the legal entity, vendor, item, item/vendor combination, and purchase order.

What I would check first in a real project#

If I had to diagnose this quickly, I would check in this order:

  1. Is the product receipt posted?
  2. Is the invoice matched to the correct receipt?
  3. Is the item or vendor set to three-way matching?
  4. Is approval required for discrepancies?
  5. Is the price within the configured tolerance?

That sequence usually finds the problem faster than starting from the invoice header and guessing.

Common mistake#

A very common mistake is assuming three-way matching is only a price check. It is not. Microsoft’s documentation is clear that three-way matching also validates receipt quantity against the invoice quantity. (learn.microsoft.com)

Another common mistake is trying to fix a matching failure by changing the invoice when the real problem is that the receipt has not been posted yet.

Use three-way matching when you need the invoice to be validated against what was actually received. Use the matching details page to identify whether the failure is quantity, price, or configuration. Then correct the upstream process first — usually the receipt, the policy, or the tolerance — before you try to force the invoice through.

If you are debugging this for a user, the fastest path is usually:

  • verify the product receipt
  • verify the matching policy
  • verify the tolerance
  • verify whether approval is required

That is the practical answer to most three-way matching failures in D365FO.

Sources#

Was this article helpful?Sign in to vote

Missing something?

Suggest a topic you'd like to see covered next. The most requested topics help shape future XppForge documentation.

Sign in to suggest a topic