---
title: "When developing a query through a Solicit-Response port you get the error: “An error occurred while parsing EntityName”"
description: "This error is caused if you include an ampersand directly in your query string. If you build queries in ADSIEdit they might look like: `(&(objectCategory=user)(sAMAccountName=Jane))` The “&” character is not allowed in XML. Instead use “&” For example: ``"
url: "https://activeadapter.com/biztalk-adapters/knowledge-base/when-developing-a-query-through-a-solicit-response-port-you-get-the-error-an-error-occurred-while-parsing-entityname/"
updated: "2026-09-25"
category: Troubleshooting
---

# When developing a query through a Solicit-Response port you get the error: “An error occurred while parsing EntityName”

This error is caused if you include an ampersand directly in your query string. If you build queries in ADSIEdit they might look like:

`(&(objectCategory=user)(sAMAccountName=Jane))`

The “&” character is not allowed in XML. Instead use “&amp;”

For example:

`<Directives WhereToBind="LDAP://DC2008R2/CN=Users,DC=test,DC=com" SearchScope="onelevel" Filter="(&amp;(objectCategory=user)(sAMAccountName=Jane))" PropertiesToReturn="distinguishedName"/>`
