Error Raised Properly for session and distribution type not present