<?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: CCTV Solution Creates Multiple Duplicate Conditions in Water Utilities Questions</title>
    <link>https://community.esri.com/t5/water-utilities-questions/cctv-solution-creates-multiple-duplicate/m-p/615005#M1513</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've not seen this before and I can't think of a reason what would cause this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you share your data? You can email &lt;A href="mailto:pleblanc@esri.com"&gt;pleblanc@esri.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 16 Aug 2019 01:05:39 GMT</pubDate>
    <dc:creator>PaulLeBlanc1</dc:creator>
    <dc:date>2019-08-16T01:05:39Z</dc:date>
    <item>
      <title>CCTV Solution Creates Multiple Duplicate Conditions</title>
      <link>https://community.esri.com/t5/water-utilities-questions/cctv-solution-creates-multiple-duplicate/m-p/615004#M1512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running the CCTV Solution and for some reason it's creating 4 or more duplicate conditions.&amp;nbsp; In the original conditions table I can see there are only 10 conditions for inspection 4017 in the screenshot below. First image is the CCTV Conditions table that gets created, second is the original conditions table.&amp;nbsp; My continuous field is blank because we don't track that.&amp;nbsp; Any ideas why it may be creating so many duplicates?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using ArcGIS Pro 2.4.1&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/457152_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/457199_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2019 00:04:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/cctv-solution-creates-multiple-duplicate/m-p/615004#M1512</guid>
      <dc:creator>KrystalPhaneuf2</dc:creator>
      <dc:date>2019-08-16T00:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: CCTV Solution Creates Multiple Duplicate Conditions</title>
      <link>https://community.esri.com/t5/water-utilities-questions/cctv-solution-creates-multiple-duplicate/m-p/615005#M1513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've not seen this before and I can't think of a reason what would cause this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you share your data? You can email &lt;A href="mailto:pleblanc@esri.com"&gt;pleblanc@esri.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2019 01:05:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/cctv-solution-creates-multiple-duplicate/m-p/615005#M1513</guid>
      <dc:creator>PaulLeBlanc1</dc:creator>
      <dc:date>2019-08-16T01:05:39Z</dc:date>
    </item>
    <item>
      <title>Re: CCTV Solution Creates Multiple Duplicate Conditions</title>
      <link>https://community.esri.com/t5/water-utilities-questions/cctv-solution-creates-multiple-duplicate/m-p/615006#M1514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Paul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure I will send you the files.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, another issue I came across and was able to fix in the ESRI solution script, the inspection_pk attribute is required to be a text field, however at line 520 of core.py, the script adds the inspection_pk field to the OUTPUT_LINE feature.&amp;nbsp; When it adds, it adds it as a LONG so this process changes the field type.&amp;nbsp; Then when it joins, the join does not work because it's trying to join a TEXT to a LONG.&amp;nbsp; So I changed line 520 to add the field as a TEXT field and it worked.&amp;nbsp; Here's a snippet of the section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Add count field for each condition.&lt;BR /&gt; # Add inspection ID field so that the entries can be uniquely identified.&lt;BR /&gt; # Add split flag.&lt;BR /&gt; arcpy.AddFields_management(in_table=self.output_line,&lt;BR /&gt; field_description=[(NUMBER_CONDITIONS, 'SHORT', 'Number of Conditions', '', ''),&lt;BR /&gt; (self.inspection_pk, &lt;STRONG&gt;'TEXT'&lt;/STRONG&gt;, '', '', ''),&amp;nbsp; &lt;STRONG&gt;## this was 'LONG'&lt;/STRONG&gt;&lt;BR /&gt; (SPLIT_FLAG, 'SHORT', 'Line Inspected?', '', '')])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test this with some other data and let me know if it's correct. Worked perfectly with mine.&amp;nbsp; Also, the issue of duplicates was happening before I edited the script so I know it's not a result of the edit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found a similar issue back in October and posted &lt;A _jive_internal="true" href="https://community.esri.com/thread/222407-cctv-manager-null-fields"&gt;this&lt;/A&gt;&amp;nbsp;but was able to figure out I needed to add inspection id (inspection_pk) as a numeric.&amp;nbsp; The tool at that time allowed either text or numeric fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly, on the &lt;A href="https://solutions.arcgis.com/water/help/cctv-manager/tool-reference/generate-cctv-pipe-features.htm"&gt;CCTV Manager&lt;/A&gt;&amp;nbsp;tool reference in the Code Sample, the parameter "pipes=pipes" is wrong.&amp;nbsp; It gives an error and should be "pipe=pipes".&amp;nbsp;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/457259_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Krystal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2019 15:49:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/cctv-solution-creates-multiple-duplicate/m-p/615006#M1514</guid>
      <dc:creator>KrystalPhaneuf2</dc:creator>
      <dc:date>2019-08-16T15:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: CCTV Solution Creates Multiple Duplicate Conditions</title>
      <link>https://community.esri.com/t5/water-utilities-questions/cctv-solution-creates-multiple-duplicate/m-p/615007#M1515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll take a look at the field type mismatch, that does seem strange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll forward on the doc feedback, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Aug 2019 16:06:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/water-utilities-questions/cctv-solution-creates-multiple-duplicate/m-p/615007#M1515</guid>
      <dc:creator>PaulLeBlanc1</dc:creator>
      <dc:date>2019-08-16T16:06:23Z</dc:date>
    </item>
  </channel>
</rss>

