[SetViewFilter]: cannot execute specific command

Hi,

I have two views in my Leave Management system. One to view applications created for self, and another to view applications created by my subordinates.

In the supervisor view I have set up a View filter in the ‘POST OPEN’ object such as this:

CNusername:=@Name([CN];@UserName);

@SetViewInfo([SetViewFilter];CNusername;LsupervisorName;1)

In the 2nd view that shows only my applications I have this:

@SetViewInfo([SetViewFilter];@UserName;LdocCreatedBy2;1)

The view shows up expected results, but also throws up this error: Cannot execute specific command.

Is there something that i’m unable to see in the Formula.

Please help! Thx in advance.

Isaac