Error handling while determining PEType