<?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: Thingworx RTPPM KPI in ThingWorx Developers</title>
    <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Thingworx-RTPPM-KPI-is-not-calculating-OEE/m-p/887629#M63112</link>
    <description>&lt;P&gt;Hi Gabryel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm glad that worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the query to insert the records in TimesliceSchedule (the query I linked in the previous comment), it starts like this :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DECLARE     @EquipmentNameToInsert  VARCHAR(MAX)    = 'EQUIPMENTNAMELIST', -- comma delimited Equipment Name list (e.g., 'EQ_WorkUnit1,EQ_WorkUnit2')&lt;/LI-CODE&gt;&lt;P&gt;So if you write "Machine1, Machine2", it will work and add both Machine1 and Machine2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, in the next part of the query, it filters out the records that already exist. This means if you try "Machine1" and then "Machine1,Machine2,Machine3", the second time it will not do Machine1 because it's already there, but it will add Machine2 and Machine3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have further questions.&lt;/P&gt;</description>
    <pubDate>Fri, 14 Jul 2023 21:57:09 GMT</pubDate>
    <dc:creator>mstarnaud</dc:creator>
    <dc:date>2023-07-14T21:57:09Z</dc:date>
    <item>
      <title>Thingworx RTPPM KPI is not calculating OEE</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Thingworx-RTPPM-KPI-is-not-calculating-OEE/m-p/887308#M63097</link>
      <description>&lt;P&gt;I have six WorkUnits configured in RTPPM, but the only one who calculate the OEE is the Machine1, all the others machines don't calculate and i don't know why&amp;nbsp;&lt;SPAN class=""&gt;because it looks like the rest is normal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;This is the most current error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;[PTC.SCA.SCO.MnfgCommonEquipmentUtilsThing].[SetUserDefaultSelectedEquipmentsBySolution_EQT]: Returned the following error : JavaException: com.thingworx.common.exceptions.ModelAccessException: [2,000] Error occurred while accessing the model provider.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will be greatful if someone can help me.&lt;/P&gt;&lt;P&gt;&lt;FONT color="headerbuttontrackingcode"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="headerbuttontrackingcode"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="headerbuttontrackingcode"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="headerbuttontrackingcode"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 18:28:33 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Thingworx-RTPPM-KPI-is-not-calculating-OEE/m-p/887308#M63097</guid>
      <dc:creator>GABRYEL25770</dc:creator>
      <dc:date>2023-07-13T18:28:33Z</dc:date>
    </item>
    <item>
      <title>Re: Thingworx RTPPM KPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Thingworx-RTPPM-KPI-is-not-calculating-OEE/m-p/887313#M63098</link>
      <description>&lt;P&gt;This is the images where the Machine1 is working but Machine2 not.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Machine1.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/85347i3AE72BC38F790A1C/image-size/large?v=v2&amp;amp;px=999" role="button" title="Machine1.png" alt="Machine1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Machine2.png" style="width: 999px;"&gt;&lt;img src="https://www.ptcusercommunity.com/t5/image/serverpage/image-id/85348iAA0120BEE750821F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Machine2.png" alt="Machine2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 18:23:15 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Thingworx-RTPPM-KPI-is-not-calculating-OEE/m-p/887313#M63098</guid>
      <dc:creator>GABRYEL25770</dc:creator>
      <dc:date>2023-07-13T18:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Thingworx RTPPM KPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Thingworx-RTPPM-KPI-is-not-calculating-OEE/m-p/887322#M63099</link>
      <description>&lt;P&gt;Hi GM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;About the error message in your first post, I suspect it's simply not related to this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So the first thing to notice is that all 3 of the KPIs are at 0%. This makes me suspect that the TimesliceSchedule table in the database is missing the records for this equipment, this will also result in the equipment having no record in the Timeslice table. &lt;A href="https://support.ptc.com/help/thingworx_applications_setup/r1.0/en/#page/applications_setup/RTPPM_Config_Appendix_SQL.html" target="_blank" rel="noopener"&gt;Please refer to this link&lt;/A&gt; to see the query to insert the missing records. Because the Timeslices (containing the numbers to get the KPIs) will not be calculated if those records are missing, and the KPIs use the calculated Timeslice values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Queries to check, if you need help :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SELECT * FROM equipmnt -- find the UID of your equipment
SELECT * FROM timeslice WHERE equipmentuid = ..... -- write the Uid here, I'm guessing this will give no result.
SELECT * FROM timesliceschedule WHERE equipmentuid = ..... -- write the Uid here, I'm guessing this will give no result.&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are a few Articles in the knowledge base relating to the Performance and Quality KPIs failing to calculate. However in those cases the Availability% would still get calculated, which is not your scenario here. Here's some Articles about this, in case you need them :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.ptc.com/en/support/article/CS363687" target="_blank"&gt;https://www.ptc.com/en/support/article/CS363687&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.ptc.com/en/support/article/CS362880" target="_blank"&gt;https://www.ptc.com/en/support/article/CS362880&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2023 19:41:48 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Thingworx-RTPPM-KPI-is-not-calculating-OEE/m-p/887322#M63099</guid>
      <dc:creator>mstarnaud</dc:creator>
      <dc:date>2023-07-13T19:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Thingworx RTPPM KPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Thingworx-RTPPM-KPI-is-not-calculating-OEE/m-p/887609#M63110</link>
      <description>&lt;P&gt;Hi mstarnaud!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You were right, my timeslice table was empty, i tried to write the Workunits one at time in the KPI query. I wrote "Machine1" and executed, "Machine2" and executed... instead "Machine1,Machine2,Machine3..." and I don't know why but it worked for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the support!&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 18:26:13 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Thingworx-RTPPM-KPI-is-not-calculating-OEE/m-p/887609#M63110</guid>
      <dc:creator>GABRYEL25770</dc:creator>
      <dc:date>2023-07-14T18:26:13Z</dc:date>
    </item>
    <item>
      <title>Re: Thingworx RTPPM KPI</title>
      <link>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Thingworx-RTPPM-KPI-is-not-calculating-OEE/m-p/887629#M63112</link>
      <description>&lt;P&gt;Hi Gabryel&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm glad that worked!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the query to insert the records in TimesliceSchedule (the query I linked in the previous comment), it starts like this :&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;DECLARE     @EquipmentNameToInsert  VARCHAR(MAX)    = 'EQUIPMENTNAMELIST', -- comma delimited Equipment Name list (e.g., 'EQ_WorkUnit1,EQ_WorkUnit2')&lt;/LI-CODE&gt;&lt;P&gt;So if you write "Machine1, Machine2", it will work and add both Machine1 and Machine2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, in the next part of the query, it filters out the records that already exist. This means if you try "Machine1" and then "Machine1,Machine2,Machine3", the second time it will not do Machine1 because it's already there, but it will add Machine2 and Machine3.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know if you have further questions.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jul 2023 21:57:09 GMT</pubDate>
      <guid>https://www.ptcusercommunity.com/t5/ThingWorx-Developers/Thingworx-RTPPM-KPI-is-not-calculating-OEE/m-p/887629#M63112</guid>
      <dc:creator>mstarnaud</dc:creator>
      <dc:date>2023-07-14T21:57:09Z</dc:date>
    </item>
  </channel>
</rss>

