This is a follow-up question to the question asked here: How do I auto-start my Commerce Minions?

In the line:

startEnvironmentPipeline.Run("yourminion", _nodeContext.GetPipelineContextOptions());

In what format should I put the replacement for "yourminion"?

I have tried the FullyQualifiedName from the minion policy and I have tried just the class name and something halfway between the two of them but all three gives an error when I start the Engine:

4 15:20:06 ERROR Core.block.LoadEnvironment.EnvironmentCouldNotBeFound: Environment=X

(where X is whatever I used to replace "yourminion")

  • can you verify in the minions folder if you have config.json and inside you will have somethingn like {"AppSettings":{"SiteTitle":"Sitecore Commerce Engine","BootStrapFile":"Global","DeploymentId":"Deployment01","EnvironmentName":"HabitatMinions","EncryptionProtectionType":"Machine","EncryptionCertificateHash"// Mar 8, 2018 at 15:15
  • if you have something similar you have to use : "HabitatMinions" or what name you have Mar 8, 2018 at 15:16
  • Ah it's the name of the Environment file and not the individual minions? That make so much sence now. I will give that a try right away. Thank you. Mar 8, 2018 at 15:19
  • please try, unfortunately I don't have Commerce 8.2.1 installed but as far I remember environment name is used Mar 8, 2018 at 15:27
  • It looks like that did the trick. Atleast I do not get the same error any longer. Now I only need to verify that it acctually do what I wanted it to do in the first place. But in either case, thank you very, very much. It was a great answer that saved me alot of time figouring it out. Mar 8, 2018 at 15:40

1 Answer 1


You get this error because you need to use Environment name on


instead of FullyQualifiedName from the minion policy or the class name.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.