<?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: How do I split values within a field into separate rows using ArcPy in Model Builder? in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664117#M67021</link>
    <description>&lt;P&gt;I'm going to assume their data has variable-length arrays and this will fail at best and obliterate their original data at worst.&lt;/P&gt;&lt;P&gt;I also can't find any built-in tools that will explode records based on a given format so I'm pretty sure this requires a trip to arcpy.&lt;/P&gt;</description>
    <pubDate>Thu, 06 Nov 2025 23:20:09 GMT</pubDate>
    <dc:creator>DavidSolari</dc:creator>
    <dc:date>2025-11-06T23:20:09Z</dc:date>
    <item>
      <title>How do I split values within a field into separate rows using ArcPy in Model Builder?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664052#M67012</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to split the values contained in one field table into separate rows. For example, an entry in the field 'Numbers' would contain [12, 14, 18] and I'm trying to split it up so that 12, 14 and 18 are each their own entry in their own rows while maintaining the rest of the data. I am also trying to do this in model builder; I don't know how to use ArcPy or whatever the solution is in Model Builder so if that could be explained as well that would be much appreciated.&lt;/P&gt;&lt;P&gt;If more information is required I will be sure to answer tomorrow morning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 20:32:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664052#M67012</guid>
      <dc:creator>JohnEbbers</dc:creator>
      <dc:date>2025-11-06T20:32:18Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split values within a field into separate rows using ArcPy in Model Builder?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664080#M67016</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/950435"&gt;@JohnEbbers&lt;/a&gt;,&lt;BR /&gt;I would recommend using Arcade within the calculate field geoprocessing tool within the Model. You will have to add the calculate tool each time you require to calculate a single field, so in your above example three times.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could use the split function as seen in the below expression to split the text string by each comma.&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;LI-CODE lang="c"&gt;var input = "12,14,18"
var output = Split(input, ",")
return output[0]
//12 would be returned
//return output[1]
//14 would be returned&lt;/LI-CODE&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://developers.arcgis.com/arcade/function-reference/text_functions/#splitinputtext-separatortext-limit-removeempty---arraytext" target="_blank"&gt;https://developers.arcgis.com/arcade/function-reference/text_functions/#splitinputtext-separatortext-limit-removeempty---arraytext&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;let me know if you need more information here, happy to help!&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 06 Nov 2025 21:55:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664080#M67016</guid>
      <dc:creator>BrendanNewell</dc:creator>
      <dc:date>2025-11-06T21:55:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split values within a field into separate rows using ArcPy in Model Builder?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664117#M67021</link>
      <description>&lt;P&gt;I'm going to assume their data has variable-length arrays and this will fail at best and obliterate their original data at worst.&lt;/P&gt;&lt;P&gt;I also can't find any built-in tools that will explode records based on a given format so I'm pretty sure this requires a trip to arcpy.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Nov 2025 23:20:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664117#M67021</guid>
      <dc:creator>DavidSolari</dc:creator>
      <dc:date>2025-11-06T23:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split values within a field into separate rows using ArcPy in Model Builder?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664182#M67028</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/428981"&gt;@BrendanNewell&lt;/a&gt;&amp;nbsp;, thanks for you suggestion.&lt;/P&gt;&lt;P&gt;Unfortunately&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/4413"&gt;@DavidSolari&lt;/a&gt;&amp;nbsp;is correct, my data set has variable-length arrays, in addition to a variable set of arrays that need to be split. I should have been more clear with my question and will edit to make the example fit my situation better.&lt;/P&gt;&lt;P&gt;-John&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 12:51:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664182#M67028</guid>
      <dc:creator>JohnEbbers</dc:creator>
      <dc:date>2025-11-07T12:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split values within a field into separate rows using ArcPy in Model Builder?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664183#M67029</link>
      <description>&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;The example I gave did not sufficiently represent my situation. Say I had this dataset:&lt;/P&gt;&lt;P&gt;OBJECTID | FIELDX&amp;nbsp; &amp;nbsp; &amp;nbsp;| FIELDY&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | P1, W2&amp;nbsp; &amp;nbsp; &amp;nbsp;| Cat&lt;BR /&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | S6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Dog&lt;BR /&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | I1, K9, J7 | Fish&lt;/P&gt;&lt;P&gt;The output I am trying to create would be this:&lt;/P&gt;&lt;P&gt;OBJECTID | FIELDX&amp;nbsp; &amp;nbsp; &amp;nbsp;| FIELDY&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | P1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Cat&lt;BR /&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | W2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Cat&lt;BR /&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | S6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Dog&lt;BR /&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | I1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Fish&lt;BR /&gt;5&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | K9&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;| Fish&lt;BR /&gt;6&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | J7&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; | Fish&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 12:57:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664183#M67029</guid>
      <dc:creator>JohnEbbers</dc:creator>
      <dc:date>2025-11-07T12:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split values within a field into separate rows using ArcPy in Model Builder?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664370#M67042</link>
      <description>&lt;P&gt;Have a look at this post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://gis.stackexchange.com/questions/486403/duplicating-records-by-using-column-delimiter-in-arcgis-pro" target="_blank"&gt;https://gis.stackexchange.com/questions/486403/duplicating-records-by-using-column-delimiter-in-arcgis-pro&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it is what you want.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Nov 2025 21:43:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664370#M67042</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2025-11-07T21:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split values within a field into separate rows using ArcPy in Model Builder?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664623#M67055</link>
      <description>&lt;P&gt;Hello Bob,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks! This&amp;nbsp;&lt;EM&gt;should&amp;nbsp;&lt;/EM&gt;work, but for some reason when I run the for loop nothing happens, I've included the relevant screenshots.&lt;/P&gt;&lt;P&gt;John Ebbers&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 15:15:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664623#M67055</guid>
      <dc:creator>JohnEbbers</dc:creator>
      <dc:date>2025-11-10T15:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split values within a field into separate rows using ArcPy in Model Builder?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664630#M67056</link>
      <description>&lt;P&gt;It looks like you are doing this in the Python Window in ArcGIS Pro. It might be better to do it in a Notebook in ArcGIS Pro, to save repeated copy/paste and to have a sense of what is working.&lt;/P&gt;&lt;P&gt;I would add some rows with print statements to get a view into the variables' contents at different places in the code. If the code is running without giving you an error message, the problem is probably a logic error in the code&amp;nbsp; - it is doing something, just not what you want...&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 15:32:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664630#M67056</guid>
      <dc:creator>BobBooth1</dc:creator>
      <dc:date>2025-11-10T15:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: How do I split values within a field into separate rows using ArcPy in Model Builder?</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664726#M67063</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;This is what finally did it, the error I kept on getting was actually that I hadn't signed in a so didn't have the proper license to edit the data. For future readers, this is the code that worked:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnEbbers_0-1762804477463.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143540i8D5BB1894F3DF490/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnEbbers_0-1762804477463.png" alt="JohnEbbers_0-1762804477463.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It is virtually the same as the one in the link sent by&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/95621"&gt;@BobBooth1&lt;/a&gt;&amp;nbsp;but I will mark this as the solution since the code is localized. Here are also screenshots of the tables that were used:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnEbbers_1-1762804586744.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143541i4DB8FB3AAAA4DDF6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnEbbers_1-1762804586744.png" alt="JohnEbbers_1-1762804586744.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JohnEbbers_2-1762804594464.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/143542iA76346402A70530A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JohnEbbers_2-1762804594464.png" alt="JohnEbbers_2-1762804594464.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Bob,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;John Ebbers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 19:57:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/how-do-i-split-values-within-a-field-into-separate/m-p/1664726#M67063</guid>
      <dc:creator>JohnEbbers</dc:creator>
      <dc:date>2025-11-10T19:57:12Z</dc:date>
    </item>
  </channel>
</rss>

