Not sure how many times I've answered this, certainly lots:
There's a minor bug with LR4 that seems to affect many users, basically when you first export the Post Processing/Export Action field at the bottom of the Export dialog is blank. This is invalid, and causes the error that you are getting. So to get rid of the error simply eneter a valid option in that field (e.g. "Do Nothing" is fine) and the problem goes away.
Thank you! The last field is called After Export and there is a dropdown menu after it. Mine was blank, as you said. I selected the Do nothing option in the menu and now it works without error. It sounds like you are saying this was in LR 4 too. It is still in LR 4.1 RC also.