Issue Transferring an Invoice: Map Error Message

What does the "value is not found in the map" error message mean when transferring an invoice from Dooap to D365?

 

When transferring an invoice from Dooap to D365, there might appear an error in the invoice history log:

  • "Error! The value X is not found in the map."

map error

 

The map error received from D365 refers to the purchase receipt's ID. When an invoice receives this error, it indicates an issue with the PR associated with the invoice.

  • The ID number mentioned in the error message corresponds to the PR ID in Dynamics 365.
  • This error occurs when changes are made to the PR in D365 while it is being added to the invoice. 

In the matching process, Dooap first retrieves and matches the Purchase Order (PO). However, if any modification occurs to the PR between the time it is initially linked to the invoice and the time it is transferred, a mapping error is triggered.

 

Resolving the Error

 

It is important to note that Dooap does not automatically refresh the PO and PR once they are attached to the invoice. To resolve the map error, follow these steps:

  1. Return the invoice from the batch.
  2. Remove the PO and PR from the invoice.
  3. Re-match the PO and PR to ensure they are current.
  4. Before transferring, use the 'fetch lines' feature to update the invoice with the most recent information.

This process ensures that the PR and PO data are correctly aligned, preventing future mapping errors.