Skip to main content

Hey all,

Working on a script that prompts the user for information. Once complete, I set the script to ask the user if they would like to enter another response. If yes, a policy is triggered to call the script again. I seem to be getting an error. I believe it is because you can’t trigger a policy that is already running.

I’m aware I can make the loop within the script. Just want to confirm that this is not possible. Has anyone run into this or found another option?

That is correct, you can’t call a policy while running that same policy. 

The best option, would be to place the part of the script for inputting the information in a function, and just calling that again within the script.