Hi Vivek,
You cannot apply constrain with the attribute that is not present in datasource. It should be present in data source entity or reference entity.
Vivek Hyalij
Choose you data source to a microflow and here you can write Xpath In Retreive Activity and also use associative attribute of another entity
for example see screenshot of microflow and Xpath