We’re experiencing errors when batch processing documents when using the ‘use print destination’ option. We’ve seen this across both the sales invoice and the customer account statement.
We are experiencing this issue for both:
- Sales invoice configured with a Docentric email destination, using a Docentric report design, processed via the standard post invoice batch, using class SalesFormLetter_Invoice
- Customer account statement configured with a Docentric email destination, using a SSRS report design, processed via the standard customer account statement batch
We have not encountered any errors when processing single documents via the UI/interface, only in batch prpocessing.
In scenario 1, we’ve observed that posting invoices using the print destination is generally successful, but there are intermittent errors where a document fails to send. The error reported in the batch log is;
“An error occurred when running report CustomSalesInvoice.Report in batch. Contact your system administrator for more information.”
Importantly, the print management setup for the sales invoice document is not CustomSalesInvoice.Report. CustomSalesInvoice.Report is however the print management default in a different legal entity. All other successfully processed document are correctly using the report design configured in the print management setup parameters for the sales invoice. But for those documents that fail to process in the batch, a different report format is referenced.
In scenario 2, we are seeing a similar issue. This tends to be a larger batch with more records/document, that ultimately ends prematurely with the following error in the batch history.
“An error occurred when running report CustomCustAccountStatement.Report in batch. Contact your system administrator for more information.
Batch task failed: An error occurred when running report CustomCustAccountStatement.Report in batch. Contact your system administrator for more information.”
Again, like the sales invoice, CustomCustAccountStatement.Report is not the report/design configured in the print management setup, but it is the default for a different legal entity.
In the account statement batch, we’re also seeing the system loop through the maximum retries on the batch task setup, and duplicating/successfully sending account statements up to this limit. Ie, a single customer will receive their statement email up to 6 times, with the maximum retries default configured in our system to 5.
