Automate

Welcome to the Automate community!  Please feel free to start a discussion in the discussion tab or join in a conversation.

Here are some useful links where you can find more information:

Product Announcements

 View Only
  • 1.  Automate Studio scheduled runs: crashes, foreground focus stealing, unstable OneDrive data source

    Posted 9 days ago

    Hi all,

    We have a customer running Automate Studio scheduled executions on a Windows machine and seeing three separate issues. Do you have any tips to help out? Their footprint is small, so discussions about Studio Manager or Cloud Essentials haven't gained traction.

    1. Scheduled runs take focus and interrupt the user.
    When a scheduled run starts, a black window opens and becomes active. Can scheduled runs execute truly in the background (hidden or non-interactive)? If so, which setting, Windows Task Scheduler configuration, or Studio version is required?

    2. OneDrive data source is unstable.
    With a OneDrive-based data source, sync fails and runs don't execute at all. Is OneDrive a supported data source for scheduled runs? If so, are there known limitations (Files On-Demand, sync state, authentication)? Since Google Docs is now supported, has the OneDrive experience improved indirectly?

    3. Saved credentials need re-entry.
    Periodically Studio shows the Precisely Sign In prompt and scheduled runs fail until someone re-enters the credentials manually. What causes the saved credentials to expire or be dropped, and is there a supported way to keep unattended scheduled runs authenticated without manual re-login?

    Thank you!



    ------------------------------
    Tuomas Silvennoinen
    Adsotech Scandinavia Oy
    ------------------------------


  • 2.  RE: Automate Studio scheduled runs: crashes, foreground focus stealing, unstable OneDrive data source

    Employee
    Posted 9 days ago
    Edited by jagat kaushal 9 days ago

    Hi Tuomas,
    Thanks for your message.

    1. Black window during scheduled runs. Scheduled runs start Studio’s console runner in your logged-on Windows session, which is what opens the black window. There isn’t a Studio setting that hides it, but we can change the scheduled task so the runner starts hidden. Note that re-saving the schedule from Studio will undo that change. Separately, enabling “Run excel in background mode” (Application Options → Data) keeps Excel out of view during runs. If SAP GUI also jumps to the front, unchecking the “Notify when a script…” options under SAP GUI Options → Accessibility & Scripting → Scripting helps.

    2. OneDrive. OneDrive-synced data files are only supported with limitations, and SharePoint/Teams locations aren’t supported. For scheduled runs, keep the script and data file in a local folder (for example C:\Automate\Data). If the file must stay in OneDrive, set the folder to “Always keep on this device”.

    3. Precisely Sign-In prompt. Studio remembers your sign-in as a token that renews automatically. The cloud sign-in has a fixed lifetime, so an occasional re-sign-in is expected. If prompts happen more often than that, stagger your scheduled tasks a few minutes apart and keep Studio and the Excel add-in closed while tasks are due to run. If it continues, please send us the application trace from a failed run.

    • Please open a ticket on the support portal if the above settings don't work to resolve the issue.

      Thanks



    ------------------------------
    Jagat Kaushal
    *Precisely Software Inc.
    ------------------------------



  • 3.  RE: Automate Studio scheduled runs: crashes, foreground focus stealing, unstable OneDrive data source

    Employee
    Posted 9 days ago

    Hi Tuomas

    In addition to Jagat's response, please see below. Scheduled runs currently open a window in your desktop session by design; running them under a separate Windows account avoids interruptions. OneDrive works only as a local synced folder, so files must stay fully downloaded and closed, and a plain local folder is more reliable. 

    1. Run schedules under a dedicated Windows account or a small VM, so the window opens when nobody is working. Switching the task to non-interactive in Task Scheduler is untested and may break OneDrive, mapped drives, and Excel. Studio may also overwrite the change if someone edits the schedule.
    2. While using OneDrive:
      • In File Explorer, set the folder to "Always keep on this device" so Files On-Demand doesn't leave placeholder files.
      • Turn off AutoSave and co-authoring using the global.ini .
      • The more reliable option: have scripts read and write a plain local folder, then copy the results to OneDrive afterwards.
    3. Sign-in:
      • Use one licensed account per machine.
      • Close Studio while scheduled runs are due.
      • Capture the app trace log from a scheduled run that hits the prompt. Look for "Error in refreshing token" to confirm the cause.

    If needed, please create a support ticket. For the sign-in prompts, please send us a trace log from a failed run so we can confirm why your sign-in isn't renewing.

    Thanks

    Archie



    ------------------------------
    Archana Chandar
    *Precisely Software Inc.
    ------------------------------