A duplicate report is generated and does not contain all updated reports in SAS® Enterprise Guide®


When you execute a process flow through a script using Windows Task Scheduler, the Duplicate Report in SAS Enterprise Guide might not include the latest updates from all tasks. 

For example, this issue occurs when you complete steps similar to the following:

  1. Create a project and a process flow in SAS Enterprise Guide.
  2. Add several tasks that generate SAS reports.
  3. Right-click one SAS Report and select Create and Duplicate Report.
  4. Edit the Duplicate Report to include all other individual reports that you want consolidated.  
  5. Schedule the project to run automatically:
    • In SAS® Enterprise Guide® 8.5 and earlier, a VBScript is generated.
    • In SAS Enterprise Guide 8.6 and later, a PowerShell script is generated.
    • A task is created in the Windows Task Scheduler to run the script.
  6. Execute the scheduled task.

When you complete these steps, the Duplicate Report might not reflect the latest updates from all tasks.

Note that this issue does not occur when you run the process flow manually.

Cause

When the process flow runs via a script, some tasks might execute at the same time, which causes timing conflicts when updating the Duplicate Report.

Workaround

To ensure that the Duplicate Report reflects the latest updates, add an extra task at the top of the process flow. Make sure that this task is not linked to the Duplicate Report but is connected to the same data source as the other tasks.

This workaround helps prevent timing issues when the flow runs via a script.