You cannot apply leave and get this error message because you have set a leave application rule in the eportal that is stopping you from applying leave. You need to clear this rule.
To delete a Leave Application Rule in ePortal:
Log in to ePortal as Admin.
Go to Settings and select eleave Settings.
Select Configuration.
Scroll down until you see Leave Application Rule.
Delete the rule and save.
