raise error when no portmaps set and read the right keys.