<?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: Merge_management with field mapping strange output in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/merge-management-with-field-mapping-strange-output/m-p/1367404#M69559</link>
    <description>&lt;P&gt;i've been trying a few other ways like mergeing 5 files at a time but i now get this error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StuartMoore_0-1704728659844.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90849iD52D6BBEB51C959D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StuartMoore_0-1704728659844.png" alt="StuartMoore_0-1704728659844.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i've even increased the field lengths and set the field map lengths to only use the first 50 characters (from my basic understanding)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StuartMoore_1-1704728730406.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90850iFB26B0A2465EDD5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StuartMoore_1-1704728730406.png" alt="StuartMoore_1-1704728730406.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 08 Jan 2024 15:45:52 GMT</pubDate>
    <dc:creator>StuartMoore</dc:creator>
    <dc:date>2024-01-08T15:45:52Z</dc:date>
    <item>
      <title>Merge_management with field mapping strange output</title>
      <link>https://community.esri.com/t5/python-questions/merge-management-with-field-mapping-strange-output/m-p/1365690#M69526</link>
      <description>&lt;P&gt;i'm trying to use the suggestion in this post from&amp;nbsp;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/126818" target="_blank"&gt;@RandyBurton&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-questions/merge-with-field-mapping/m-p/560853/highlight/true#M43887" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/python-questions/merge-with-field-mapping/m-p/560853/highlight/true#M43887&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to merge 25 or so shp files and map the fields but using the code i get a strange output&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StuartMoore_0-1704212040714.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90291i01A26C054EF290AC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StuartMoore_0-1704212040714.png" alt="StuartMoore_0-1704212040714.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;any suggestions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 09:07:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merge-management-with-field-mapping-strange-output/m-p/1365690#M69526</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2024-01-03T09:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Merge_management with field mapping strange output</title>
      <link>https://community.esri.com/t5/python-questions/merge-management-with-field-mapping-strange-output/m-p/1365916#M69527</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/159798"&gt;@StuartMoore&lt;/a&gt;. Could you please include the code snippet you're running? Are you working in ArcMap or ArcGIS Pro?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 17:55:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merge-management-with-field-mapping-strange-output/m-p/1365916#M69527</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2024-01-03T17:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Merge_management with field mapping strange output</title>
      <link>https://community.esri.com/t5/python-questions/merge-management-with-field-mapping-strange-output/m-p/1366179#M69534</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;        fields = [
        ['LINENAME "LINENAME" true true false 100 Text 0 0,First,#,{0};', '{0},LINENAME,0,50'],
        ['LAUNCH "LAUNCH" true true false 100 Text 0 0,First,#,{0};', '{0},LAUNCH,0,50'],
        ['RECEIVER "RECEIVER" true true false 100 Text 0 0,First,#,{0};', '{0},RECEIVER,0,50'],
        ['PROJNO "PROJNO" true true false 100 Text 0 0,First,#,{0};', '{0},PROJNO,0,50'],
        ['INSPTYPE "INSPTYPE" true true false 100 Text 0 0,First,#,{0};', '{0},INSPTYPE,0,50'],
        ['INSPDATE "INSPDATE" true true false 100 Text 0 0,First,#,{0};', '{0},INSPDATE,0,50'],
        ]

        fmap = ''

        for fld in fields:
            fm = []
            for fc in r_plin:
                fm.append(fld[1].format(fc))
                fmap = fmap + fld[0].format(','.join(fm))
                            
        messages.addMessage(fmap)

        #messages.addMessage(fieldMappings)
        arcpy.Merge_management(inputs= r_plin,output="C:/tmp.gdb/tmp_Polyline2",field_mappings= fmap)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/191789"&gt;@BlakeTerhune&lt;/a&gt;&amp;nbsp;above is the code i'm using, i forgot to say i'm using it in an python toolbox in arc catalog&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 10:54:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merge-management-with-field-mapping-strange-output/m-p/1366179#M69534</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2024-01-04T10:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Merge_management with field mapping strange output</title>
      <link>https://community.esri.com/t5/python-questions/merge-management-with-field-mapping-strange-output/m-p/1367404#M69559</link>
      <description>&lt;P&gt;i've been trying a few other ways like mergeing 5 files at a time but i now get this error&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StuartMoore_0-1704728659844.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90849iD52D6BBEB51C959D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StuartMoore_0-1704728659844.png" alt="StuartMoore_0-1704728659844.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;i've even increased the field lengths and set the field map lengths to only use the first 50 characters (from my basic understanding)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StuartMoore_1-1704728730406.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/90850iFB26B0A2465EDD5E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StuartMoore_1-1704728730406.png" alt="StuartMoore_1-1704728730406.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 15:45:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merge-management-with-field-mapping-strange-output/m-p/1367404#M69559</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2024-01-08T15:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Merge_management with field mapping strange output</title>
      <link>https://community.esri.com/t5/python-questions/merge-management-with-field-mapping-strange-output/m-p/1367555#M69567</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/159798"&gt;@StuartMoore&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;i'm using it in an python toolbox in arc catalog&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;What are the parameters in the toolbox?&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jan 2024 19:13:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merge-management-with-field-mapping-strange-output/m-p/1367555#M69567</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2024-01-08T19:13:39Z</dc:date>
    </item>
    <item>
      <title>Re: Merge_management with field mapping strange output</title>
      <link>https://community.esri.com/t5/python-questions/merge-management-with-field-mapping-strange-output/m-p/1367789#M69584</link>
      <description>&lt;P&gt;the only parameters are in input folder which contains the shp files and an output folder for where the merged gdb is placed&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stu&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jan 2024 12:42:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/merge-management-with-field-mapping-strange-output/m-p/1367789#M69584</guid>
      <dc:creator>StuartMoore</dc:creator>
      <dc:date>2024-01-09T12:42:58Z</dc:date>
    </item>
  </channel>
</rss>

