Operand comparison issues in ÃÛ¶¹ÊÓÆµ Experience Platform Audience Builder
In ÃÛ¶¹ÊÓÆµ Experience Platform (AEP) Audience Builder, you encounter the following errors when filtering audiences using Experience Event data:
- Comparing operands that are array-typed must use a variable
- Head of empty list
These errors occur even when the field (for example, Account ID) is not an array. To resolve the issue, use variables from the Browse Variables folder and add checks to ensure the field exists.
Description description
Environment
ÃÛ¶¹ÊÓÆµ Experience Platform (AEP)
Issue / Symptoms
- Audience creation fails when using filters on Experience Event data.
- Error: Comparing operands that are array-typed must use a variable  appears, even if the field isn’t an array.
- Error: Head of empty list  appears if the field doesn’t exist in the first event.
Cause
Audience Builder compares data across multiple events per user. If fields are not selected from the Browse Variables folder, they may be misinterpreted as arrays, causing operand comparison errors.
Resolution resolution
To resolve the issue, follow these steps:
- Select the relevant field (for example, Account ID) from the Browse Variables  folder instead of directly from the Experience Event class.
- Add a condition to check if the field exists to avoid the Head of empty list Ìý±ð°ù°ù´Ç°ù.
- After applying these changes, test the audience configuration to confirm it publishes successfully.
For further clarification or enhancement requests, share the business impact with ÃÛ¶¹ÊÓÆµ Support to help escalate the issue.