Error: Incorrectly typed parameter submitted to query;
Hello everyone,
We are trying to find workitem Id's programatically using JAva code with following Code(only relevant portion):
But execution of Second line of code gives following error:
Intrestingly this code worked perfectly fine for other repositories. Any idea on what could be the cause, solution or any pointer?
-Regards,
Achal
We are trying to find workitem Id's programatically using JAva code with following Code(only relevant portion):
AttributeExpression dueExpression= new AttributeExpression(attribute, AttributeOperation.EQUALS,SMS_ID.get(y));
System.out.println("Inside for loop 2 ");
Term term= new Term(Operator.AND);
term.add(projectAreaExpression);
term.add(dueExpression);
IQueryResult<IResolvedResult<IWorkItem>> result= queryService.getResolvedExpressionResults(projectAreaHandler,term, profile);
List<IWorkItem> matchingWorkItems= new ArrayList<IWorkItem>(result.getResultSize(monitor).getTotalAvailable());
But execution of Second line of code gives following error:
Incorrectly typed parameter submitted to query;
Parameter 1 was class java.lang.String but com.ibm.team.repository.common.UUID was expected
Intrestingly this code worked perfectly fine for other repositories. Any idea on what could be the cause, solution or any pointer?
-Regards,
Achal
One answer
Hello everyone
Just did some more analysis and it seems that issue comes only for some of the fields. The one change which we can see in this new PA is that type of these fields is now big string.
We also tried to change the data type back to small string but it still dont works. Any ideas, pointers will be highly appreciated.
-Regards,
Achal
Just did some more analysis and it seems that issue comes only for some of the fields. The one change which we can see in this new PA is that type of these fields is now big string.
We also tried to change the data type back to small string but it still dont works. Any ideas, pointers will be highly appreciated.
-Regards,
Achal