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

Report API's query parameter encoding issue!

 Hi,


I am using a report API to fetch the "itemId" of the project area "[System Defined] Domains".

The report API looks something like below -

https://<server>/dm/rpt/repository/foundation?fields=projectArea/projectArea[name=%27%5BSystem%20Defined%5D%20Domains%27]/itemId

And the response is - Error 500: CRRED0122E: Illegal syntax in fields argument: Domains'.

By this error i can understand there is an issue with project area name encoding. 

What is the way to encode the report API query parameters?

Thanks & Regards,
Praveen S H

0 votes

Comments

I have done some testing. The problem is not the opening square bracket but the closing one.

And this is the stacktrace: com.ibm.rational.dataservices.exceptions.CommonExecException: Illegal syntax in fields argument: Domains".>com.ibm.rational.dataservices.exceptions.CommonExecException: Illegal syntax in fields argument:  Domains".
at com.ibm.rational.dataservices.framework.impl.xpath.FieldsParameterParser.parseElementList(FieldsParameterParser.java:126)
at com.ibm.rational.dataservices.framework.impl.xpath.FieldsParameterParser.parseElementList(FieldsParameterParser.java:120)
at com.ibm.rational.dataservices.framework.impl.xpath.FieldsParameterParser.parse(FieldsParameterParser.java:33)
at com.ibm.rational.dataservices.framework.impl.ResourceProxyImpl.getFields(ResourceProxyImpl.java:104)
at com.ibm.rational.dataservices.framework.impl.ResourceProxyImpl.getData(ResourceProxyImpl.java:151)


Be the first one to answer this question!

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
× 1,701

Question asked: Nov 02 '17, 8:39 a.m.

Question was seen: 967 times

Last updated: Nov 02 '17, 9:06 a.m.

Confirmation Cancel Confirm