<?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: Batch Processing in Model Builder - Delete rows then Append in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292949#M10177</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Start with model builder for 1 feature class and then export out to python.&amp;nbsp; Python has some great tools for iterating.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Feb 2016 23:50:55 GMT</pubDate>
    <dc:creator>MichaelVolz</dc:creator>
    <dc:date>2016-02-25T23:50:55Z</dc:date>
    <item>
      <title>Batch Processing in Model Builder - Delete rows then Append</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292948#M10176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to delete rows from multiple feature classes with prefix TCEMaster_* (such as TCEMaster_Centerline, TCEMaster_Fence etc.) in TCEMaster.SDE ----then append the feature classes with data from another sde. Names of the feature classes in Input dataset is without the prefix (such as Centerline, Fence etc.). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My ultimate goal is to run a script/batch file routinely.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Should I use modelbuilder with Iterator and then export to python or a script in python. I am not much of an expert in python. See attached what I got started in modelbuilder.&amp;nbsp; I&amp;nbsp; have also attached a screenshot of the databases exported to FGDB&amp;nbsp; for testing purposes. Target dataset is TCEMaster in test_TCE.gdb and input dataset is R0007199 in test.gdb.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be highly appreciated. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 23:21:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292948#M10176</guid>
      <dc:creator>SanhitaChatterjee1</dc:creator>
      <dc:date>2016-02-25T23:21:38Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Processing in Model Builder - Delete rows then Append</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292949#M10177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Start with model builder for 1 feature class and then export out to python.&amp;nbsp; Python has some great tools for iterating.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Feb 2016 23:50:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292949#M10177</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2016-02-25T23:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Processing in Model Builder - Delete rows then Append</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292950#M10178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please tell me what parameter is missing here in the python iterator?&lt;/P&gt;&lt;P&gt;Input dataset is Temp_test.gdb\\R0007199&lt;/P&gt;&lt;P&gt;Target dataset is test_TCE.gdb\TCEMaster&lt;/P&gt;&lt;P&gt;Target dataset has a wildcard TCEMaster_*&lt;/P&gt;&lt;P&gt;Both datasets have same schema- only difference is the wildcard in target dataset.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Import arcpy module&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;arcpy.env.workspace = "C:\Users\sc\Desktop\test\test_TCE.gdb\TCEMaster"&lt;/P&gt;&lt;P&gt;fcs = arcpy.ListFeatureClasses("TCEMaster_*")&lt;/P&gt;&lt;P&gt;Inputdataset = "C:\\Users\\sc\\Desktop\\test\\Temp_test.gdb\\R0007199"&lt;/P&gt;&lt;P&gt;Targetdataset = "C:\Users\sc\Desktop\test\test_TCE.gdb\TCEMaster"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Process: Append&lt;/P&gt;&lt;P&gt;for fc in Inputdataset:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Append_management(fc, fcs, "TEST", "", "")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 19:46:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292950#M10178</guid>
      <dc:creator>SanhitaChatterjee1</dc:creator>
      <dc:date>2016-02-29T19:46:23Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Processing in Model Builder - Delete rows then Append</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292951#M10179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to process all feature classes in a file geodatabase?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or are you trying to process all feature classes in a specific feature dataset in a file geodatabase?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 19:52:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292951#M10179</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2016-02-29T19:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Processing in Model Builder - Delete rows then Append</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292952#M10180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Specific feature dataset "&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;TCEMaster" and all FCs in this feature dataset&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 19:57:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292952#M10180</guid>
      <dc:creator>SanhitaChatterjee1</dc:creator>
      <dc:date>2016-02-29T19:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Processing in Model Builder - Delete rows then Append</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292953#M10181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;# Process: Append&lt;/P&gt;&lt;P&gt;for fc in Inputdataset:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Append_management(fc, fcs, "TEST", "", "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of for fc in Inputdataset:&lt;/P&gt;&lt;P&gt;for fc in arcpy.ListFeatureClasses('*','All',Inputdataset):&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 20:33:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292953#M10181</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2016-02-29T20:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Processing in Model Builder - Delete rows then Append</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292954#M10182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are those TCE feature classes versioned? If not, using truncate is faster than delete rows.&lt;/P&gt;&lt;P&gt;Also, if you want to run this as a scheduled job, you'll need to use &lt;A href="https://community.esri.com/space/2145"&gt;Python&lt;/A&gt;​.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 20:54:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292954#M10182</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2016-02-29T20:54:42Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Processing in Model Builder - Delete rows then Append</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292955#M10183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Michael.&lt;/P&gt;&lt;P&gt;It works if I do not have a wildcard set (such as without "TCEMaster_*" in target dataset). When I have the wildcard defined I get an error:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;File "C:/Users/sc/Desktop/test/Append_Iterator_Export_Test.py", line 25, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for fc in arcpy.ListFeatureClasses('*','All',Inputdataset):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;TypeError: 'NoneType' object is not iterable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I have now:&lt;/P&gt;&lt;P&gt;# Import arcpy module&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;arcpy.env.workspace = "C:\Users\sc\Desktop\test\test_TCE.gdb\TCEMaster"&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;fcs = arcpy.ListFeatureClasses("TCEMaster_*")&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Inputdataset = "C:\\Users\\sc\\Desktop\\test\\Temp_test.gdb\\R0007199"&lt;/P&gt;&lt;P style="font-size: 14px; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; color: #3d3d3d;"&gt;Targetdataset = "C:\Users\sc\Desktop\test\test_TCE.gdb\TCEMaster"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Process: Append&lt;/P&gt;&lt;P&gt;for fc in arcpy.ListFeatureClasses('*','All',Inputdataset):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Append_management(fc, fcs, "TEST", "", "")&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 20:56:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292955#M10183</guid>
      <dc:creator>SanhitaChatterjee1</dc:creator>
      <dc:date>2016-02-29T20:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Processing in Model Builder - Delete rows then Append</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292956#M10184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you trying to access multiple feature datasets in your code and then all feature classes in all the feature datasets?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or do you just want to iterate all feature classes in one feature dataset?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:02:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292956#M10184</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2016-02-29T21:02:14Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Processing in Model Builder - Delete rows then Append</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292957#M10185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Michael, It is all feature classes in one dataset. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:19:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292957#M10185</guid>
      <dc:creator>SanhitaChatterjee1</dc:creator>
      <dc:date>2016-02-29T21:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Processing in Model Builder - Delete rows then Append</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292958#M10186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then if the code without the wildcard runs without error, that should do the trick for you.&amp;nbsp; Now if you want to automate this, just add the python script to Windows Task Scheduler.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:39:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292958#M10186</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2016-02-29T21:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Processing in Model Builder - Delete rows then Append</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292959#M10187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually I will have to copy data to a dataset with "TCEMaster_*" prefix on all feature classes. I will have to use the wildcard. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 21:44:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292959#M10187</guid>
      <dc:creator>SanhitaChatterjee1</dc:creator>
      <dc:date>2016-02-29T21:44:18Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Processing in Model Builder - Delete rows then Append</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292960#M10188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What version of ArcGIS are you working in?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 22:16:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292960#M10188</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2016-02-29T22:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Processing in Model Builder - Delete rows then Append</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292961#M10189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;10.2.1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 22:17:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292961#M10189</guid>
      <dc:creator>SanhitaChatterjee1</dc:creator>
      <dc:date>2016-02-29T22:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: Batch Processing in Model Builder - Delete rows then Append</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292962#M10190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe it has something to do with the naming convention&amp;nbsp; of feature classes within feature datasets where you need to specify both in the path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you put in some print statements to check that the path to your input data and output data are correct with respect to the feature dataset and feature classes within the feature dataset?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I put a wildcard into my script which worked, so I don't think it's the wildcard that is the problem here.&amp;nbsp; I'm thinking it does not see any objects with the name you are specifying because you might not be including the feature dataset portion of the path.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Feb 2016 22:36:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/batch-processing-in-model-builder-delete-rows-then/m-p/292962#M10190</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2016-02-29T22:36:14Z</dc:date>
    </item>
  </channel>
</rss>

