RTC Programatic Query Creation : Exception in QueryDescriptor : Value of attribute "internalExpression" is 33364 bytes, which is greater than 32768
Hello Team,
I have a usecase wherein i need to create a Query using RTC API, which takes n number of task workitems as one of the input attributes. We have more than 100 workitems to be appended.
I followed this link in creating the query :
<style>
&amp;amp;amp;lt;!-- /* Font Definitions */ @font-face {font-family:&amp;amp;amp;quot;MS Mincho&amp;amp;amp;quot;; panose-1:2 2 6 9 4 2 5 8 3 4;} @font-face {font-family:&amp;amp;amp;quot;Cambria Math&amp;amp;amp;quot;; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:&amp;amp;amp;quot;\@MS Mincho&amp;amp;amp;quot;; panose-1:2 2 6 9 4 2 5 8 3 4;} @font-face {font-family:&amp;amp;amp;quot;Segoe UI&amp;amp;amp;quot;; panose-1:2 11 5 2 4 2 4 2 2 3;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin-top:0in; margin-right:0in; margin-bottom:8.0pt; margin-left:0in; line-height:107%; font-size:11.0pt; font-family:&amp;amp;amp;quot;Calibri&amp;amp;amp;quot;,sans-serif;} .MsoChpDefault {font-family:&amp;amp;amp;quot;Calibri&amp;amp;amp;quot;,sans-serif;} .MsoPapDefault {margin-bottom:8.0pt; line-height:107%;} /* Page Definitions */ @page WordSection1 {size:8.5in 11.0in; margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 {page:WordSection1;} --&amp;amp;amp;gt;
</style>
However i am getting the following exception:
ERROR - CRJAZ2675I A client action caused the server exception that is listed below. The identifier for the error is 7eb5ef51-06a9-463d-aa5a-04acb9b3d35c.
com.ibm.team.repository.common.validation.PropertyConstraintException: Validation errors for item: type = QueryDescriptor, itemId = [UUID _D4N4AHI4EemHMtpuv2r3mw] Value of attribute "internalExpression" is 33364 bytes, which is greater than the allowed encoded length of 32768 bytes.
Can we get the bytes of this queryDescriptor and then check the size lesser than 32768 bytes and then process or is there a better way to deal with this ?
Please assist us here.
|
Be the first one to answer this question!
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.