<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Count number of element returned by OData request in Windchill Customization</title>
    <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Count-number-of-element-returned-by-OData-request/m-p/1027291#M10263</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/326172"&gt;@Fadel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your message. I don't think I have duplicated values, but I have so many values that I get this mesasge. So I would like to paginate the results using 'count', 'top' and 'skip' parameters but it doesn't work and I wonder if it is because of the version I use.&lt;BR /&gt;Fred&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2025 15:01:25 GMT</pubDate>
    <dc:creator>FM_13835117</dc:creator>
    <dc:date>2025-07-31T15:01:25Z</dc:date>
    <item>
      <title>Count number of element returned by OData request</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Count-number-of-element-returned-by-OData-request/m-p/1027120#M10258</link>
      <description>&lt;P&gt;My count OData request does not work :&lt;/P&gt;&lt;P&gt;https://&amp;lt;url&amp;gt;/Windchill/servlet/odata/v5/DataAdmin/Containers('OR:wt.pdmlink.PDMLinkProduct:681234555')/Folders('OR:wt.folder.Cabinet:681234597')/Folders('OR:wt.folder.SubFolder:681267970')/Folders('OR:wt.folder.SubFolder:681267975')/FolderContents?$count&lt;BR /&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;&lt;P&gt;Version: Windchill 12.1 (Product v12.1.2.0, REST Services v2.3)&lt;/P&gt;</description>
      <pubDate>Wed, 30 Jul 2025 14:50:39 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Count-number-of-element-returned-by-OData-request/m-p/1027120#M10258</guid>
      <dc:creator>FM_13835117</dc:creator>
      <dc:date>2025-07-30T14:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of element returned by OData request</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Count-number-of-element-returned-by-OData-request/m-p/1027260#M10261</link>
      <description>&lt;P&gt;Do you have duplicate objects ? can it be that you have a count for each object version ?&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 12:36:49 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Count-number-of-element-returned-by-OData-request/m-p/1027260#M10261</guid>
      <dc:creator>Fadel</dc:creator>
      <dc:date>2025-07-31T12:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of element returned by OData request</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Count-number-of-element-returned-by-OData-request/m-p/1027291#M10263</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/326172"&gt;@Fadel&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your message. I don't think I have duplicated values, but I have so many values that I get this mesasge. So I would like to paginate the results using 'count', 'top' and 'skip' parameters but it doesn't work and I wonder if it is because of the version I use.&lt;BR /&gt;Fred&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 15:01:25 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Count-number-of-element-returned-by-OData-request/m-p/1027291#M10263</guid>
      <dc:creator>FM_13835117</dc:creator>
      <dc:date>2025-07-31T15:01:25Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of element returned by OData request</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Count-number-of-element-returned-by-OData-request/m-p/1029743#M10326</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In your request URL I observed the Boolean value missing for $count, there is no issue with the version&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;https://&amp;lt;url&amp;gt;/Windchill/servlet/odata/v5/DataAdmin/Containers('OR:wt.pdmlink.PDMLinkProduct:681234555')/Folders('OR:wt.folder.Cabinet:681234597')/Folders('OR:wt.folder.SubFolder:681267970')/Folders('OR:wt.folder.SubFolder:681267975')/FolderContents?$count&lt;FONT color="#FF0000"&gt;=true&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RD_13647666_1-1755510984219.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/127121i5F5C0ED6532246B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RD_13647666_1-1755510984219.png" alt="RD_13647666_1-1755510984219.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 09:56:48 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Count-number-of-element-returned-by-OData-request/m-p/1029743#M10326</guid>
      <dc:creator>rajeshd105</dc:creator>
      <dc:date>2025-08-18T09:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of element returned by OData request</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Count-number-of-element-returned-by-OData-request/m-p/1029799#M10330</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://www.ptcusercommunity.com/t5/user/viewprofilepage/user-id/972429"&gt;@rajeshd105&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've modified the request as you proposed : "$count=true", but server seems to request first all elements before to count and I get always the same error message &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; :&amp;nbsp;&lt;SPAN&gt;"The returned query result has exceeded the query limit, and only 50,000 result returned."&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I also try these parameter on another request and I just have the complete result but no count value :&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://www.ptcusercommunity.com/" target="_blank"&gt;https://&amp;lt;url&amp;gt;/Windchill/servlet/rest/v1/contexts/wt.pdmlink.PDMLinkProduct%3A681234555/folders&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://palma.space.thales:1443/Windchill/servlet/rest/v1/contexts/wt.pdmlink.PDMLinkProduct%3A681234555/folders?$count=true" target="_blank"&gt;https://&amp;lt;url&amp;gt;/Windchill/servlet/rest/v1/contexts/wt.pdmlink.PDMLinkProduct%3A681234555/folders?$count=true&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FM_13835117_0-1755523436851.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/127130i4DC356D88F87EF89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FM_13835117_0-1755523436851.png" alt="FM_13835117_0-1755523436851.png" /&gt;&lt;/span&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tested limit attribute and nothing change, I get all values :&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://palma.space.thales:1443/Windchill/servlet/rest/v1/contexts/wt.pdmlink.PDMLinkProduct%3A681234555/folders?$count=true" target="_blank"&gt;https://&amp;lt;url&amp;gt;/Windchill/servlet/rest/v1/contexts/wt.pdmlink.PDMLinkProduct%3A681234555/folders?$limit=2&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Fred&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Aug 2025 13:25:11 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Count-number-of-element-returned-by-OData-request/m-p/1029799#M10330</guid>
      <dc:creator>FM_13835117</dc:creator>
      <dc:date>2025-08-18T13:25:11Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of element returned by OData request</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Count-number-of-element-returned-by-OData-request/m-p/1029801#M10331</link>
      <description>&lt;P&gt;Sorry, I was confusing with the rest request. My apologise.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;With ODATA request it works fine, Thanks a lot !&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FM_13835117_1-1755523720030.png" style="width: 400px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/127131i1D70FC4A9523C60B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="FM_13835117_1-1755523720030.png" alt="FM_13835117_1-1755523720030.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know how to limit the number of results ?&lt;BR /&gt;Fred&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 13:29:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Count-number-of-element-returned-by-OData-request/m-p/1029801#M10331</guid>
      <dc:creator>FM_13835117</dc:creator>
      <dc:date>2025-08-18T13:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Count number of element returned by OData request</title>
      <link>https://www.ptcusercommunity.com/t5/Windchill-Customization/Count-number-of-element-returned-by-OData-request/m-p/1029803#M10332</link>
      <description>&lt;P&gt;In fact, it works when the limit of 50.000 items is not reached otherwise I got the error message.&lt;/P&gt;&lt;P&gt;Fred&lt;/P&gt;</description>
      <pubDate>Mon, 18 Aug 2025 13:32:53 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/Windchill-Customization/Count-number-of-element-returned-by-OData-request/m-p/1029803#M10332</guid>
      <dc:creator>FM_13835117</dc:creator>
      <dc:date>2025-08-18T13:32:53Z</dc:date>
    </item>
  </channel>
</rss>

