We are running BC version 24.4.22295.22393.
When our AP team process a payment run though 'Payment Journals', once happy with the selections they select 'Related >Payments >Send Remittance Advice' to issue the emails to our vendors. They then, immediately post the payment journal.
I believe what BC does is the 'Send Remittance Advice' action creates a 'Job Queue Entry' for each email to send and these are processed, in the background, shortly after creation.
However, because the 'Payment Journal' has been posted the records are not found when the 'Job Queue Entry' runs, thus resulting in an error condition.
I have asked the AP team to either -
1) Delay posting the journal until (an unknown length of time) has passed, to allow the 'Job Queue Entries' to process.
2) Don't send the remittances from the 'Payment Journal' but send them from the 'Vendor Ledger Entries' instead, after posting.
The team, however, are continuing to cause this error.
Other than creating an 'Exclude' permission to stop them using the 'Send Remittance Advice' from the 'Payment Journals', I don't know how to prevent the 'Job Queue Entry' error.
It does seem, to me, a bit illogical how this process works.
Can anyone please advise?
The error details are -
Error message:
The Gen. Journal Line does not exist. Identification fields and values: Journal Template Name='PAYMENT',Journal Batch Name='BACS',Line No.='20000'
Internal session ID:
d6317327-2b3f-4a3d-xxxx-90d19564e8c5
Application Insights session ID:
bb83604e-0e18-447b-xxxx-ca1877f6decd
Client activity id:
87fcb4b3-c30c-4e6e-xxxx-87bdb879f1e6
Time stamp on error:
2024-08-22T10:21:38.0528754Z
User telemetry id:
e10efd54-8cfe-4f2e-xxxx-0b96321142c7
AL call stack:
ErrorMessagesRecommendationExt(PageExtension 7900)."Description - OnDrillDown"(Trigger) line 10 - Error Messages with Recommendations by Microsoft
Custom dimensions:
[{"Item1":"ErrorCallStack","Item2":"\"Report Selections\"(Table 77).SendEmailInBackground line 10 - Base Application by Microsoft\\\"Document-Mailing\"(CodeUnit 260).OnRun(Trigger) line 4 - Base Application by Microsoft\\\"Job Queue Start Codeunit\"(CodeUnit 449).OnRun(Trigger) line 23 - Base Application by Microsoft\\\"Job Queue Dispatcher\"(CodeUnit 448).HandleRequest line 23 - Base Application by Microsoft\\\"Job Queue Dispatcher\"(CodeUnit 448).OnRun(Trigger) line 22 - Base Application by Microsoft\\"},{"Item1":"CreatedOn","Item2":"22/08/24 09:38"}]