Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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):


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

				

0 votes



One answer

Permanent link
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

0 votes

Comments

Achal,
    Were  you ever able to get  this to work?  Clearly it is a misappropriated error.
 I have  the same issues and cant seem to get to the  cause of it.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,925

Question asked: Oct 18 '11, 11:24 a.m.

Question was seen: 4,668 times

Last updated: Aug 20 '13, 9:58 p.m.

Confirmation Cancel Confirm