“This action cannot be run in the current environment”


#1

For seemingly no reason at all, my favorite shortcut has broken. Nothing changed, but two days ago it just stopped working. And I get the error message “This action cannot be run in the current environment.”

Anyone know what’s going on?


#2

Could be something to do with the way you are triggering something.

Can you share the shortcut and note how you are triggering it (e.g. share sheet, url, tap in app, vebal Siri request).


#3

Hi! I use Launch Center Pro to launch it, cuz I like how it gives me a push notification.

Here’s the iCloud link: https://www.icloud.com/shortcuts/9db7d4fce6bb458d8abe34164f89140d


#4

I’ve tried it with some modification to the note and e-mail addresses and running from LCP. I wasn’t able to reproduce the issue.

Next step is maybe duplicate your shortcut as a backup and then sequentially start removing the actions from the end or start adding in show results from the start so that you can figure out which step is hitting this issue.


#5

Oooh good plan. Will report back.


#6

I have had this too, when returning to shortcut from a pythonista script and then activating ‘Get Clipboard’ action (to get data passed back from Pythonista) - it’s a bug.

A work around appears to be to use a command that returns to focus to the shortcut routine such as quicklook or wait. I inserted a wait 1 second and error message went away.


#7

I had a similar issue when fetching a location, the 1 second delay trick worked for me too.


#8

Oh man!! This worked perfectly! Thanks!