I am having a similar issue that throws the same error number PIGen Error 1
Im my case I can generate the playlist without issue, but when I try to create an event to generate it I get the error. What makes this even more strange is if I change the songs it can generate the playlist as an event.
For example I create a Playlist of songs and call it "A". Test the list ... it works fine. I create an event and it fails
BUT
If I change the songs that are in list "A" the event generates without issue.
I'm at a loss to where to start to even try to track that one down.
Additional Note: Once I had this working, I tried again to change the playlist back to the original songs I had selected. Again it failed.
It can't be a problem with finding the tracks as it can find them ok if I generate it manually.
It can't be a problem with finding the playlist when it can find the playlist with different songs in the selection.