cancel
Showing results for 
Search instead for 
Did you mean: 

Error with external reconciliation.

Former Member
0 Kudos

Hello everybody.

I have a problem with a GL account reconciliation.

I have two journal entries on account 555000 and I want to reconcile them.

I do it with the external reconciliation service, but it gives an error and can not find any help to resolve it.

This is my code:

Dim ExtReconSvc As SAPbobsCOM.ExternalReconciliationsService = oCompanyService.GetBusinessService(SAPbobsCOM.ServiceTypes.ExternalReconciliationsService)

                Dim ExtReconciliation As SAPbobsCOM.ExternalReconciliation = ExtReconSvc.GetDataInterface(SAPbobsCOM.ExternalReconciliationsServiceDataInterfaces.ersExternalReconciliation)

                ExtReconciliation.ReconciliationAccountType = SAPbobsCOM.ReconciliationAccountTypeEnum.rat_GLAccount ' default is GL Account

              

                Dim jeLine1 As SAPbobsCOM.ReconciliationJournalEntryLine = ExtReconciliation.ReconciliationJournalEntryLines.Add()

                jeLine1.TransactionNumber = oRecordSet.Fields.Item("TransId").Value

                jeLine1.LineNumber = oRecordSet.Fields.Item("LineNum").Value

                Dim jeLine2 As SAPbobsCOM.ReconciliationJournalEntryLine = ExtReconciliation.ReconciliationJournalEntryLines.Add()

                jeLine2.TransactionNumber = Cru.Fields.Item("TransId").Value

                jeLine2.LineNumber = Cru.Fields.Item("LineNum").Value

               ExtReconSvc.Reconcile(ExtReconciliation)

And the error:

"Internal error (-5002) occurred"

Thanks in advanced

Accepted Solutions (0)

Answers (1)

Answers (1)

Johan_H
Active Contributor
0 Kudos

Hi Cristian,

Do you get the error when you try to do this exact same reconciliation manually in the B1 client ?

Regards,

Johan

Former Member
0 Kudos

Hello Johan.

I don´t get errors when I try to do it in the client.

Thank you

Cristian

Johan_H
Active Contributor
0 Kudos

Hi Cristian,

Just to rule out time out errors, could you please try to run your code a couple of times in a row, and check if the error is the same each time ?

Regards,

Johan