Query for nrfmemberof

Getting syntax violation error while doing the below query. Please help. Same query works using ldap browser.

[09/25/19 14:27:00.131]:InternalAD PT: Action: do-set-local-variable("lvQueryidvnrfMember",scope="policy",token-query(class-name="User",arg-match-attr("CN",token-local-variable("lvIDVParsedCN")),arg-match-attr("nrfMemberOf",token-local-variable("lvIDVRoleparsedDN")),"employeeStatus")).
[09/25/19 14:27:00.132]:InternalAD PT: arg-string(token-query(class-name="User",arg-match-attr("CN",token-local-variable("lvIDVParsedCN")),arg-match-attr("nrfMemberOf",token-local-variable("lvIDVRoleparsedDN")),"employeeStatus"))
[09/25/19 14:27:00.133]:InternalAD PT: token-query(class-name="User",arg-match-attr("CN",token-local-variable("lvIDVParsedCN")),arg-match-attr("nrfMemberOf",token-local-variable("lvIDVRoleparsedDN")),"employeeStatus")
[09/25/19 14:27:00.133]:InternalAD PT: arg-match-attr("CN",token-local-variable("lvIDVParsedCN"))
[09/25/19 14:27:00.134]:InternalAD PT: arg-string(token-local-variable("lvIDVParsedCN"))
[09/25/19 14:27:00.134]:InternalAD PT: token-local-variable("lvIDVParsedCN")
[09/25/19 14:27:00.134]:InternalAD PT: Token Value: "Z8QHL".
[09/25/19 14:27:00.135]:InternalAD PT: Arg Value: "Z8QHL".
[09/25/19 14:27:00.135]:InternalAD PT: arg-match-attr("nrfMemberOf",token-local-variable("lvIDVRoleparsedDN"))
[09/25/19 14:27:00.135]:InternalAD PT: arg-string(token-local-variable("lvIDVRoleparsedDN"))
[09/25/19 14:27:00.136]:InternalAD PT: token-local-variable("lvIDVRoleparsedDN")
[09/25/19 14:27:00.136]:InternalAD PT: Token Value: "CN=A-HDS-TDSTPA,CN=ADRoles,CN=Level20,CN=RoleDefs,CN=RoleConfig,CN=AppConfig,CN=UserApplication,CN=driverset1,O=system".
[09/25/19 14:27:00.137]:InternalAD PT: Arg Value: "CN=A-HDS-TDSTPA,CN=ADRoles,CN=Level20,CN=RoleDefs,CN=RoleConfig,CN=AppConfig,CN=UserApplication,CN=driverset1,O=system".
[09/25/19 14:27:00.137]:InternalAD PT: arg-string("employeeStatus")
[09/25/19 14:27:00.138]:InternalAD PT: token-text("employeeStatus")
[09/25/19 14:27:00.138]:InternalAD PT: Arg Value: "employeeStatus".
[09/25/19 14:27:00.138]:InternalAD PT: Query from policy
[09/25/19 14:27:00.138]:InternalAD PT:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.6.3.0">DirXML</product>
<contact>NetIQ Corporation</contact>
</source>
<input>
<query class-name="User" scope="subtree">
<search-class class-name="User"/>
<search-attr attr-name="CN">
<value type="string">Z8QHL</value>
</search-attr>
<search-attr attr-name="nrfMemberOf">
<value type="string">CN=A-HDS-TDSTPA,CN=ADRoles,CN=Level20,CN=RoleDefs,CN=RoleConfig,CN=AppConfig,CN=UserApplication,CN=driverset1,O=system</value>
</search-attr>
<read-attr attr-name="employeeStatus"/>
</query>
</input>
</nds>
[09/25/19 14:27:00.141]:InternalAD PT: Pumping XDS to eDirectory.
[09/25/19 14:27:00.141]:InternalAD PT: Performing operation query for .
[09/25/19 14:27:00.141]:InternalAD PT: --JCLNT-- \BBCIDV\system\driverset1\AD-Internal-BBC - Publisher : Duplicating : context = 1919483980, tempContext = 1919484141
[09/25/19 14:27:00.142]:InternalAD PT: --JCLNT-- \BBCIDV\system\driverset1\AD-Internal-BBC - Publisher : Calling free on tempContext = 1919484141
[09/25/19 14:27:00.152]:InternalAD PT: Query from policy result
[09/25/19 14:27:00.152]:InternalAD PT:
<nds dtdversion="4.0" ndsversion="8.x">
<source>
<product edition="Advanced" version="4.6.3.0">DirXML</product>
<contact>NetIQ Corporation</contact>
</source>
<output>
<status event-id="0" level="error">Code(-9010) An exception occurred: novell.jclient.JCException: initVlistIterator -613 ERR_SYNTAX_VIOLATION</status>
</output>
</nds>
[09/25/19 14:27:00.154]:InternalAD PT: Token Value: "".
[09/25/19 14:27:00.154]:InternalAD PT: Arg Value: "".