<?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: Arcpy error 000278 field mapping issue for date field in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-error-000278-field-mapping-issue-for-date/m-p/374403#M29558</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks like a field typo, we had corrected the field&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;T_ce_view_plot_interments.Inter&lt;STRONG&gt;n&lt;/STRONG&gt;ment_Date (note the 'Intern' rather than 'Inter') so the script appears to have been looking for a field that didn't exist.&amp;nbsp; It didn't error out on not finding the input field, but instead threw the error above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Yes, that was it.&amp;nbsp; Problem solved.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Nov 2018 22:43:55 GMT</pubDate>
    <dc:creator>GISOfficer</dc:creator>
    <dc:date>2018-11-22T22:43:55Z</dc:date>
    <item>
      <title>Arcpy error 000278 field mapping issue for date field</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-error-000278-field-mapping-issue-for-date/m-p/374402#M29557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I have been having the same issue as described at the following threads,with a date field being flagged as invalid in a feature class to feature class conversion:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A _jive_internal="true" data-containerid="2145" data-containertype="14" data-objectid="94488" data-objecttype="1" href="https://community.esri.com/thread/94488" style="color: #287433; background-color: transparent; border: 0px; font-weight: inherit; padding: 1px 0px 1px calc(12px + 0.35ex);"&gt;Date Field Conflict w Feature Class to Feature Class Conversion via Arcpy&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;A href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgis.stackexchange.com%2Fquestions%2F48060%2Ffield-type-date-invalid-when-run-in-python-but-not-in-model" rel="nofollow" style="color: #287433; border: 0px; font-weight: inherit; text-decoration: none; padding: 0px calc(12px + 0.35ex) 0px 0px;" target="_blank"&gt;arcpy - Field Type Date invalid when run in Python, but not in Model? - Geographic Information Systems Stack Exchange&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I have tried the Stack Exchange workaround (second link above) in going via a temporary file geodatabase/feature class, but when trying to then transfer that into my intended destination I still get the same error.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Code line is as follows, N.B. I did not write this script and am not sure when it was first authored:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding-left: 30px;"&gt;Int_fields="""Interment_ID "Interment ID" true true false 12 Long 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Record_ID,-1,-1;Interment_Type "Interment Type" true true false 20 Text 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Grave_Ashes,-1,-1;Plot_ID "Plot ID" true true false 20 Text 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Cemetery_Code,-1,-1;Surname "Surname" true true false 50 Text 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Family_Name,-1,-1;Given_Names "Given Names" true true false 50 Text 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Given_Names,-1,-1;Full_Name "Full Name" true true false 50 Text 0 0 ,First,"#""" + flInt + """,""" + IntM2 + """.Given_Names",FL_Interments_with_geometry,T_ce_view_plot_interments.Family_Name,-1,-1;Age "Age" true true false 20 Text 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Age,-1,-1;Age_Type "Age Type" true true false 10 Text 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Age_Type,-1,-1;Date_Deceased "Date Deceased" true true false 8 Date 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Date_Deceased,-1,-1;Date_Interred "Date Interred" true true false 8 Date 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Internment_Date,-1,-1;Occupation "Occupation" true true false 60 Text 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Occupation,-1,-1;Place_Origin "Place of Origin" true true false 25 Text 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Nationality,-1,-1;Funeral_Director "Funeral Director" true true false 60 Text 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Funeral_Director,-1,-1;Clergyman "Clergyman" true true false 50 Text 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Clergyman,-1,-1;Denomination "Denomination" true true false 60 Text 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Denomination,-1,-1;Purchaser "Purchaser" true true false 50 Text 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Purchaser,-1,-1;Purchase_Date "Purchase Date" true true false 8 Date 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Purchase_Date,-1,-1;Headstone_Inscription "Headstone Inscription" true true false 1000 Text 0 0 ,First,#,""" + flInt + """,""" + IntM2 + """.Headstone_Inscription,-1,-1"""&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding-left: 30px;"&gt;&lt;BR /&gt; arcpy.FeatureClassToFeatureClass_conversion(in_features=flInt, out_path=ws,&lt;BR /&gt; out_name=Int2, field_mapping=Int_fields)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;My error messages are below:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding-left: 30px;"&gt;PYTHON ERRORS:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding-left: 30px;"&gt;Traceback info:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding-left: 30px;"&gt;&amp;nbsp; File "D:\ArcGIS\Tools\Python scripts\Cemeteries_Updater.py", line 179, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding-left: 30px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; out_name=Int2, field_mapping=Int_fields)&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding-left: 30px;"&gt;Error Info:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding-left: 30px;"&gt;ERROR 000278: Field mapping error: field type invalid for output field Date_Interred and input field T_ce_view_plot_interments.Internment_Date&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding-left: 30px;"&gt;Failed to execute (FeatureClassToFeatureClass).&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding-left: 30px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding-left: 30px;"&gt;ArcPy ERRORS:&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding-left: 30px;"&gt;ERROR 000278: Field mapping error: field type invalid for output field Date_Interred and input field T_ce_view_plot_interments.Internment_Date&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; padding-left: 30px;"&gt;Failed to execute (FeatureClassToFeatureClass).&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I'm unable to share source data but just looking for ideas on solutions/workarounds to convert a SQL view into a file geodatabase feature class and brig a date field across successfully.&amp;nbsp; This started happening 3 weeks ago, and I am aware of no changes that we made to either our ArcGIS install or databases/feature classes/fields.&amp;nbsp; It just seemed to start happening.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;I have tried importing this into a model builder model and running it that way, but still get the same error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2018 20:50:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-error-000278-field-mapping-issue-for-date/m-p/374402#M29557</guid>
      <dc:creator>GISOfficer</dc:creator>
      <dc:date>2018-11-22T20:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy error 000278 field mapping issue for date field</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-error-000278-field-mapping-issue-for-date/m-p/374403#M29558</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This looks like a field typo, we had corrected the field&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;T_ce_view_plot_interments.Inter&lt;STRONG&gt;n&lt;/STRONG&gt;ment_Date (note the 'Intern' rather than 'Inter') so the script appears to have been looking for a field that didn't exist.&amp;nbsp; It didn't error out on not finding the input field, but instead threw the error above.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Yes, that was it.&amp;nbsp; Problem solved.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2018 22:43:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-error-000278-field-mapping-issue-for-date/m-p/374403#M29558</guid>
      <dc:creator>GISOfficer</dc:creator>
      <dc:date>2018-11-22T22:43:55Z</dc:date>
    </item>
  </channel>
</rss>

