Issue

powerJobs fails to start with the errors: LoadJobsInCache failed with exception and .ctor failed with exception, sometimes also GetPowerJobsClient failed with exception


Cause

There are 2 Jobs with the same name in the Jobs folder, located in "C:\ProgramData\coolOrange\powerJobs\Jobs".

PowerJobs reads the names without the extension and everything that is added behind. That means that

  • Sample.CreatePDF.ps1
  • Sample.CreatePDF.ps1backup

have the same name in powerJobs and the application will run into an error


Solution

Rename your Jobs with a unique name before the extension: <UniqueName>.ps1


Similar Issues

powerJobs status bar is on "processing" then .ctor failed is displayed (coolOrange Knowledge base)