Error: Must declare the scalar variable "@PhoneNumber" - when searching by phone number in Batch Entry

When searching a constituent by phone number in a Membership Dues Batch, you may receive the following error:

Error: Must declare the scalar variable "PhoneNumber"
When you search this constituent by phone number in the constituent search, you may notice you do not receive this error and are successfully able to find the constituent.
This issue has been resolved. If you experience this error, please chat with support to provide the exact steps that were taken.

Steps to Duplicate

  1. Navigate to Revenue > Batch Entry > Add Membership Dues Batch
  2. In the Bill To box > Select the magnifying glass to search
  3. Enter a phone number in the membership dues constituent search > search
  4. Receive the error

Environment

 Altru Arts & Cultural
 Yes
 4.9
 4.92

Was this article helpful?