• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
ControlUp Community

ControlUp Community

Connect, Learn, and Grow

  • Blog
  • Podcast
  • Meetups
  • Archives
  • Categories
    • ControlUp One Platform
    • ControlUp for Apps
    • ControlUp for Compliance
    • ControlUp for Desktops
    • ControlUp Scripts & Triggers
    • ControlUp Synthetic Monitoring
    • ControlUp for VDI
  • Topics
  • Events
    • Logos & Wallpaper
    • ControlUp.com
  • Join

Troubleshooting Blank Lines in ControlUp Auto Action Output File

Posted on September 22, 2025

A user is experiencing extra blank lines in the Auto Action output log file when running with the .NET engine. They are seeking advice on how to suppress or clean up these lines automatically. Other users suggest checking for newlines in the messages and the use of string.join which could potentially add additional newlines. The post ends with a question about best practices surrounding newlines in messages.


Read the entire ‘Troubleshooting Blank Lines in ControlUp Auto Action Output File’ thread below:

Hi all,

I’m seeing extra blank lines in the Auto Action output log file when the SBA is executed with the .NET engine. The script itself does not add blank lines, but the output file (for example, run.log or log.txt) attached to the Auto-Action Output mail consistently shows additional line spaces between log entries.

Question: Is this expected behavior for SBAs running under the .NET engine?

Has anyone else observed this, and is there a recommended way to suppress or clean up these extra blank lines automatically?

Technical context:

  • The script uses standard PowerShell logging mechanism via custom function(Write-Log), which writes one entry per line.
  • When the log file is opened on the server, it displays correctly without any extra blank lines — each log entry appears as expected.
  • When run interactively or with the PowerShell engine, the output is as expected (no extra blank lines).
  • When run as an Auto Action with the .NET engine, the output file has double spacing (blank lines between entries).

Would appreciate any insights or best practices from the community!

Thanks in advance.


Do you add newlines to the end of your messages?

Each message is added to an array. That array is then converted into a single output string via string.join with a newline as the separator character.

So I assume that if the message already contains a newline, string.join would add another

Continue reading and comment on the thread ‘Troubleshooting Blank Lines in ControlUp Auto Action Output File’.  Not a member? Join Here!


Categories: All Archives, ControlUp Scripts & Triggers
Topics: ControlUp Insights, Logs, PowerShell, Scripts

Ask Us Anything, Connect, Learn, and Grow with the ControlUp Community!

Login to the ControlUp Community to ask us anything, stay up-to-date on what’s new and coming soon and meet other like-minded techies like you.

Not already a member? Join Today!

Primary Sidebar

ControlUp Academy

Enroll in ControlUp Academy for expert-led technical training, equipping you with skills to effectively deploy, manage, and grow your ControlUp investment.

Learn here >

Rotating Images

Hidden Gem from our Community on Slack!

ControlUp Betas - What's Coming Next?
NEW ControlUp Features - Stay Up-to-Date!
ControlUp Scripts - Scripting, Zero to Hero
Latest KB Articles - Be the First to Learn
Did you Know - with Sivan Kroitoru
Practical Perspectives Technical Use Case Training

Video Tutorials Library

Visit our technical how-to videos, offering step-by-step tutorials on advanced features, troubleshooting, and best practices.

Watch here >

ControlUp Blog

Check out the ControlUp blog for expert advice and in-depth analysis.

Read here >

ControlUp Script Library

Visit the ControlUp technical script library, which offers a multitude of pre-built scripts and custom actions for your monitoring and troubleshooting requirements.

See here >

ControlUp Support

Visit the ControlUp support home and to delve deeper into ControlUp solutions.

Browse here >

Download ControlUp RealTime DX

Start with ControlUp for real-time end-user environment insights, swift troubleshooting, and unprecedented performance optimization. Download now.

Download here >

Footer

      

ControlUp Community
Of Techie, By Techie, For Techie!

Terms of Use | Privacy Policy | Security
Dive Deeper, Learn more at ControlUp.com

  • facebook
  • twitter
  • youtube
  • linkedin

© 2023–2025 ControlUp Technologies LTD, All Rights Reserved.

We use cookies to ensure that we give you the best experience on our website. by continuing to use this site you agree to our Cookie policy..