Error during previous run in ADAudit Plus scheduled reports

Error during previous run in ADAudit Plus scheduled reports

Issue description  

In ADAudit Plus, scheduled reports may sometimes display the error message "Error during previous run" under LAST SCHEDULE STATUS. This indicates that the scheduled report did not execute successfully due to underlying issues with report storage, mail configuration, or data retrieval.

Prerequisites  

  • The ADAudit Plus service account has full control over all Scheduled Reports folders.

  • The mail server settings in the application are correctly configured.

  • The storage location for scheduled reports is accessible and has sufficient space.

  • The service account has the necessary permissions to write to the temporary export location (for XLS format reports).

Possible causes  

  • The configured storage path for scheduled reports may be inaccessible or no longer available, preventing the system from saving reports.
  • The ADAudit Plus service account may not have the necessary permissions to access or modify the Scheduled Reports folder.
  • The mail server settings in ADAudit Plus may be incorrect, preventing scheduled reports from being emailed successfully.

  • The email addresses configured in the Modify Scheduled Report page may be invalid or incorrectly formatted, causing email delivery failures.

  • One or more reports included in the schedule may be encountering execution errors, preventing the scheduled report from running successfully.

  • The ADAudit Plus service account may lack the required permissions to write to the temporary directory, leading to failures when exporting reports in XLS format.

  • Scheduled reports may fail due to corrupt report index data, causing the error "Query exception occurred in background" (Lucene codec header mismatch).

  • The Modify Scheduled Report page may become unresponsive or stuck in the loading phase due to scheduler service failures caused by database inconsistencies or missing storage paths after a server migration.

  • Scheduled reports set to export in XLS format may fail if ADAudit Plus lacks the necessary write permissions for the C:\Windows\Temp directory or the configured Java temp directory.

Resolution  

Step 1: Verify scheduled reports storage and permissions  

  • Ensure the ADAudit Plus service account has full control over all Scheduled Reports folders.
  • Confirm that the configured storage path in the Modify Scheduled Report page is accessible and has enough disk space.
  • If the storage path is incorrect or unavailable, update the location manually (see Step 5 for detailed instructions).

Step 2: Check mail configuration and email addresses  

  • Navigate to Admin > General Settings > Server Settings and click Test Mail.
    • If the test mail fails, verify the mail server settings.
    • If successful, review the email addresses configured in the Modify Scheduled Report page.

    • Ensure there are no unnecessary spaces in multiple email addresses.

Step 3: Identify issues in the selected reports  

  • Open Modify Scheduled Report and check the selected reports.
  • Verify whether each report is accessible within the ADAudit Plus UI.
  • If you encounter any issues accessing or loading reports in the UI, please contact support!

Step 4: Troubleshoot query exceptions  

If you see the error "Query exception occurred in background" in the logs, check for:
Sample Exception in serverOut.txt:  

The serverOut log file is located at: <installation_directory>/logs

Open the most recent file (sorted by date modified).

[ERROR] [dataengine[keepAlive/DE-XNode_1201]] : EXCEPTION while loading Main-Block : null :: codec header mismatch: actual header=0 vs expected header=1071082519

  • If this exception appears, please reach out to support!

Step 5: Resolving issues with unavailable storage paths (Post-Migration)  

If the Modify Scheduled Report page fails to load after server migration, please reach out to support!

Step 6: XLS format reports fail due to permission issues  

If XLS is selected as the export format, ADAudit Plus creates a temp file in C:\Windows\Temp. The service account may not have permission to write to this location.
  • Verify Permissions on C:\Windows\Temp

    • Navigate to C:\Windows\Temp.

    • Right-click the folder and select Properties > Security.

    • Ensure that the ADAudit Plus service account has Full Control.

  • Change Java Temp Directory Path (Alternative Fix)

    • Navigate to <installation_directory>\ADAudit Plus\conf.

    • Edit wrapper.conf (backup before editing).

    • Find the line with -Djava.io.tmpdir.

    • Change the value to:

    • -Djava.io.tmpdir=../temp

    • Save the file and restart the ManageEngine ADAudit Plus service.

 

How to contact support  

  • If the issue persists, contact our support team here

                  New to ADSelfService Plus?

                    • Related Articles

                    • How to export reports in ADAudit Plus

                      Objective Learn how to export reports in ADAudit Plus for saving, sharing, or further analysis. Prerequisite You must have an account with sufficient privileges to access and export reports. Steps to follow Log in to the ADAudit Plus web console ...
                    • How to schedule reports in ADAudit Plus

                      Objective This article provides a step-by-step guide on how to schedule reports in ADAudit Plus. Scheduling reports ensures timely delivery and storage of audit data for compliance and analysis purposes. Prerequisites Have permission to access the ...
                    • How to delete old scheduled reports in ADAudit Plus

                      Objective This article guides you through the process of automatically deleting scheduled report history older than a specified number of days in ADAudit Plus. This helps manage disk space and maintain a clean reporting environment. Prerequisites ...
                    • Why am I getting a file format error when opening ADAudit Plus Excel reports?

                      Issue description When attempting to open scheduled report files generated by ADAudit Plus, users may receive the following error: Excel cannot open the file ADAuditPlus_1234.xlsx because the format or file extension is not valid. This occurs when ...
                    • How to enable password protection for exported or scheduled reports

                      Objective This article explains how to enable password protection for reports that are exported or generated via a schedule in ADAudit Plus. Prerequisites You must have administrator access to the ADAudit Plus web console. Steps to follow Log in to ...