<?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 CCTV Manager Solution - modelbuilder iteration fails when using inline variable substitution in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/cctv-manager-solution-modelbuilder-iteration-fails/m-p/1032588#M38107</link>
    <description>&lt;P&gt;I am using the CCTV Manager Solution. I am trying to create a model to iterate over a series of folders and run the&amp;nbsp;&lt;STRONG&gt;Import Access Tables&lt;/STRONG&gt;&amp;nbsp;script on the MDB file within. I am using inline variable substitution to construct the Access database file path. The script will not accept what I try to pass into it.&lt;/P&gt;&lt;P&gt;The Access database parameter is set as a&amp;nbsp;&lt;STRONG&gt;File&lt;/STRONG&gt; type. It&amp;nbsp;works if I hardcode the Access database. But when I try to construct the Access database path using inline variable substitution, it errors out and won't accept that.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The MDB file is located here:&amp;nbsp;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;C:\CCTV_Inspections\2020_05_11\2020_05_11_PACP _ LACP _ MACP 6.0.mdb&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;The iterator produces the following output:&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Folder&lt;/STRONG&gt; - i.e.&amp;nbsp;C:\CCTV_Inspections\2020_05_11&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Folder Name&lt;/STRONG&gt; - i.e. 2020_05_11&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;I've constructed the Access database name using inline variable substitution:&lt;UL&gt;&lt;LI&gt;%Folder%\%Folder Name%_PACP _ LACP _ MACP 6.0.mdb&lt;/LI&gt;&lt;LI&gt;When translated, it matches exactly the MDB file path&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here is my model:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GISUser74305830_3-1614800759051.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7434iED7CAF1425DDAE8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GISUser74305830_3-1614800759051.png" alt="GISUser74305830_3-1614800759051.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>Wed, 03 Mar 2021 19:48:38 GMT</pubDate>
    <dc:creator>GISUser74305830</dc:creator>
    <dc:date>2021-03-03T19:48:38Z</dc:date>
    <item>
      <title>CCTV Manager Solution - modelbuilder iteration fails when using inline variable substitution</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cctv-manager-solution-modelbuilder-iteration-fails/m-p/1032588#M38107</link>
      <description>&lt;P&gt;I am using the CCTV Manager Solution. I am trying to create a model to iterate over a series of folders and run the&amp;nbsp;&lt;STRONG&gt;Import Access Tables&lt;/STRONG&gt;&amp;nbsp;script on the MDB file within. I am using inline variable substitution to construct the Access database file path. The script will not accept what I try to pass into it.&lt;/P&gt;&lt;P&gt;The Access database parameter is set as a&amp;nbsp;&lt;STRONG&gt;File&lt;/STRONG&gt; type. It&amp;nbsp;works if I hardcode the Access database. But when I try to construct the Access database path using inline variable substitution, it errors out and won't accept that.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The MDB file is located here:&amp;nbsp;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;C:\CCTV_Inspections\2020_05_11\2020_05_11_PACP _ LACP _ MACP 6.0.mdb&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;The iterator produces the following output:&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Folder&lt;/STRONG&gt; - i.e.&amp;nbsp;C:\CCTV_Inspections\2020_05_11&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Folder Name&lt;/STRONG&gt; - i.e. 2020_05_11&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;I've constructed the Access database name using inline variable substitution:&lt;UL&gt;&lt;LI&gt;%Folder%\%Folder Name%_PACP _ LACP _ MACP 6.0.mdb&lt;/LI&gt;&lt;LI&gt;When translated, it matches exactly the MDB file path&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here is my model:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="GISUser74305830_3-1614800759051.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/7434iED7CAF1425DDAE8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="GISUser74305830_3-1614800759051.png" alt="GISUser74305830_3-1614800759051.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>Wed, 03 Mar 2021 19:48:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cctv-manager-solution-modelbuilder-iteration-fails/m-p/1032588#M38107</guid>
      <dc:creator>GISUser74305830</dc:creator>
      <dc:date>2021-03-03T19:48:38Z</dc:date>
    </item>
    <item>
      <title>Re: CCTV Manager Solution - modelbuilder iteration fails when using inline variable substitution</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cctv-manager-solution-modelbuilder-iteration-fails/m-p/1032595#M38108</link>
      <description>&lt;P&gt;It doesn't produce a valid name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;folder = "C:\CCTV_Inspections\2020_05_11"

folder_name = "2020_05_11"

txt = "_PACP _ LACP _ MACP 6.0.mdb"

folder + folder_name + txt

 'C:\\CCTV_Inspections\x820_05_112020_05_11_PACP _ LACP _ MACP 6.0.mdb'&lt;/LI-CODE&gt;&lt;P&gt;Raw encoding does&lt;/P&gt;&lt;LI-CODE lang="python"&gt;folder = r"C:\CCTV_Inspections\2020_05_11"

folder_name = r"2020_05_11"

txt = r"_PACP _ LACP _ MACP 6.0.mdb"

folder + folder_name + txt

'C:\\CCTV_Inspections\\2020_05_112020_05_11_PACP _ LACP _ MACP 6.0.mdb'&lt;/LI-CODE&gt;&lt;P&gt;And never use folders that begin with numbers, a, r, t, and a bunch of other characters too many to list&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 20:17:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cctv-manager-solution-modelbuilder-iteration-fails/m-p/1032595#M38108</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-03T20:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: CCTV Manager Solution - modelbuilder iteration fails when using inline variable substitution</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cctv-manager-solution-modelbuilder-iteration-fails/m-p/1032596#M38109</link>
      <description>&lt;P&gt;what am i doing wrong?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 20:18:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cctv-manager-solution-modelbuilder-iteration-fails/m-p/1032596#M38109</guid>
      <dc:creator>GISUser74305830</dc:creator>
      <dc:date>2021-03-03T20:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: CCTV Manager Solution - modelbuilder iteration fails when using inline variable substitution</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cctv-manager-solution-modelbuilder-iteration-fails/m-p/1032598#M38110</link>
      <description>&lt;P&gt;Your paths aren't able to make a valid filepath when concatenated together, hence my example of "raw encoding" by adding the little 'r' to the front of each element.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 20:28:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cctv-manager-solution-modelbuilder-iteration-fails/m-p/1032598#M38110</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-03T20:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: CCTV Manager Solution - modelbuilder iteration fails when using inline variable substitution</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cctv-manager-solution-modelbuilder-iteration-fails/m-p/1032599#M38111</link>
      <description>&lt;P&gt;Can you raw encode in Modelbuilder?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 20:29:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cctv-manager-solution-modelbuilder-iteration-fails/m-p/1032599#M38111</guid>
      <dc:creator>GISUser74305830</dc:creator>
      <dc:date>2021-03-03T20:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: CCTV Manager Solution - modelbuilder iteration fails when using inline variable substitution</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/cctv-manager-solution-modelbuilder-iteration-fails/m-p/1032600#M38112</link>
      <description>&lt;P&gt;I use python not modelbuilder, but I suspect this is why this tool exists for modelbuilder&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/modelbuilder-toolbox/parse-path-ext.htm" target="_blank"&gt;Parse Path (ModelBuilder)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;but I haven't used it&lt;/P&gt;</description>
      <pubDate>Wed, 03 Mar 2021 20:35:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/cctv-manager-solution-modelbuilder-iteration-fails/m-p/1032600#M38112</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-03-03T20:35:07Z</dc:date>
    </item>
  </channel>
</rss>

