cancel
Showing results for 
Search instead for 
Did you mean: 

Payment registration fails with message Reconciliation difference must be zero before reconciling

nicola_martella2
Participant
0 Kudos

Hi people,

I have a boring problem with an addon that have to register A/R invoice payments.

Some, not all, payments fail with the error "[-10] Reconciliation difference must be zero before reconciling [3821-8]"

My code is this

Dim pay As SAPbobsCOM.Payments = _cmp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oIncomingPayments)

      With pay
         .CardCode = _CardCode
         .CashSum = docTotal
         .CashAccount = "14483010"
         .Invoices.DocEntry = nEntry
         .Invoices.SumApplied = docTotal
      End With

      Dim ret As Integer = pay.Add()
      If ret <> 0 Then
         ' error!
      End If

The amount that I write in CashSum and SumApplied is read directly from the invoice registered with DocEntry nEntry and then is the same amount.

Why one time on three the registration fails with this error?

My B1 is v. 9.10.180 PL:08 32-bit

Thank you very much for your help.

Nicola

--------------------------------------------------------

Do you need to index your XML? Try the OpenSource XMLSmartHelper Framework

Accepted Solutions (1)

Accepted Solutions (1)

nicola_martella2
Participant
0 Kudos

Hi Diego and all other interested.

I'm happy to announce that I find the solution to the damned problem.

Upgrade B1 to 9.20.150 PL 05

That's all.

Ciao

Nicola

--------------------------------------------------------

Do you need to index your XML? Try the OpenSource XMLSmartHelper Framework

Answers (1)

Answers (1)

former_member185682
Active Contributor
0 Kudos

Hi Nicola,

Your code seems ok.

I believe that the problem is not in your code.

Look at this line: https://archive.sap.com/discussions/message/8744416 maybe some of mentioned notes in that topic will help you.

Good Luck.

Kind Regards,

Diego Lother