This macro is driving me crazy

This macro is driving me crazy.

It will run fine 2 or 3 times in a row, but sometimes if I run it, and it will only run once and the second time I go to run it I get the following error...

image

But if I go back and run it again with the same data it will work fine.

Keyboard Maestro Actions.kmactions (14 KB)