Crossing window and fence not working to trim objects

When using the trim command, when I try to use a crossing window or fence line to trim objects, I get a 'error' message.

I can use crossing windows and fence to specify cutting edges so I cannot understand why a crossing window won't work in the second part of the command. I can trim object individually but this is driving me mad.