I am attempting to use the FieldCompareSetPredicate with SetOperator.In to see if a I have any matches based on a list of ID's I am handing in. That list is myString. arr is simply an ArrayList that I'm scraping for each value.
string myString = string.Empty;
for(int i = 0;i<arr.Count;i++)
{
myString += arr[i].ToString();
if(i!=arr.Count -1)
myString += ",";
}
bucket.PredicateExpression.Add(new FieldCompareSetPredicate(
EntityFieldFactory.Create(PromotionFieldIndex.PromotionID), null,
EntityFieldFactory.Create(Group_PromotionFieldIndex.PromotionID),null,
SetOperator.In,
PredicateFactory.CompareValue(Group_PromotionFieldIndex.GroupID,ComparisonOperator.Equal,myString)));
It's not until I try to fetch the collection based on the above that an error is thrown:
An exception was caught during the execution of a retrieval query: Input string was not in a correct format.. Check InnerException, QueryExecuted and Parameters of this exception to examine the cause of this exception.
What is the correct method to handing it a list of known ID's to emulate the in () functionality is sql?
Also, which exception should I catch so I can actually view the QueryExecuted and Parameters? I've tried the ones in the documentation but something goes awry there...