<?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: Error 001156: Failed on input OID &amp;lt;value&amp;gt;; could not write value '&amp;lt;value&amp;gt;' to output field &amp;lt;value&amp;gt;. Script fails when run on scedule, no fail when run manually in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-001156-failed-on-input-oid-lt-value-gt-could/m-p/524323#M41110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was there any kind of patch (Windows OS I assume) applied to the server in the past two weeks that you were not informed about?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jul 2018 12:22:00 GMT</pubDate>
    <dc:creator>MichaelVolz</dc:creator>
    <dc:date>2018-07-13T12:22:00Z</dc:date>
    <item>
      <title>Error 001156: Failed on input OID &lt;value&gt;; could not write value '&lt;value&gt;' to output field &lt;value&gt;. Script fails when run on scedule, no fail when run manually</title>
      <link>https://community.esri.com/t5/python-questions/error-001156-failed-on-input-oid-lt-value-gt-could/m-p/524320#M41107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a script that reads a table with data from a CSV file and processes the information. This script is set to run on a server through the scheduler, after the updated csv files are made available. For each run, I recreate&amp;nbsp;an empty inputtable from a template and append the data from the csv. I might add that the script has been working flawless for months,&amp;nbsp;but this suddenly changed about two weeks ago.&amp;nbsp;Recently, the script has started to fail every time, with the error message shown above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;001156: Failed on input OID &amp;lt;value&amp;gt;; could not write value '&amp;lt;value&amp;gt;' to output field &amp;lt;value&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It fails on the first line from the csv, the failing value is '601240.2' and the output field is a double field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The strange thing is that if I open the script in IDLE and run it from there, it will run perfectly.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any suggestions as to why this fails in the sceduler and works perfectly when ran maually?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 07:50:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-001156-failed-on-input-oid-lt-value-gt-could/m-p/524320#M41107</guid>
      <dc:creator>HåvardMoe1</dc:creator>
      <dc:date>2018-07-13T07:50:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error 001156: Failed on input OID &lt;value&gt;; could not write value '&lt;value&gt;' to output field &lt;value&gt;. Script fails when run on scedule, no fail when run manually</title>
      <link>https://community.esri.com/t5/python-questions/error-001156-failed-on-input-oid-lt-value-gt-could/m-p/524321#M41108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What changed two weeks ago?&amp;nbsp; Did the field names in the csv change?&amp;nbsp; Any blanks or special characters?&amp;nbsp; A google search of the error (&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-01151-01175-001156.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/tool-errors-and-warnings/001001-010000/tool-errors-and-warnings-01151-01175-001156.htm"&gt;001156: Failed on input OID ; could not write value '' to output field .—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;) suggests a field type mismatch.&amp;nbsp; Maybe change your target field to float?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 10:57:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-001156-failed-on-input-oid-lt-value-gt-could/m-p/524321#M41108</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2018-07-13T10:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error 001156: Failed on input OID &lt;value&gt;; could not write value '&lt;value&gt;' to output field &lt;value&gt;. Script fails when run on scedule, no fail when run manually</title>
      <link>https://community.esri.com/t5/python-questions/error-001156-failed-on-input-oid-lt-value-gt-could/m-p/524322#M41109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;What changed two weeks ago? Good question. As far as I know nothing changed. The input CSV files are formatted in the same way, and that first line that fails now is not changed from before. The script or the target database is not changed. The error suggests a type mismatch, but the data is already set as a float (double) - and it works when I run it manually.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;The strange thing is just that: it runs fine in the shell, but fails when sceduled.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 11:38:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-001156-failed-on-input-oid-lt-value-gt-could/m-p/524322#M41109</guid>
      <dc:creator>HåvardMoe1</dc:creator>
      <dc:date>2018-07-13T11:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error 001156: Failed on input OID &lt;value&gt;; could not write value '&lt;value&gt;' to output field &lt;value&gt;. Script fails when run on scedule, no fail when run manually</title>
      <link>https://community.esri.com/t5/python-questions/error-001156-failed-on-input-oid-lt-value-gt-could/m-p/524323#M41110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was there any kind of patch (Windows OS I assume) applied to the server in the past two weeks that you were not informed about?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jul 2018 12:22:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-001156-failed-on-input-oid-lt-value-gt-could/m-p/524323#M41110</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2018-07-13T12:22:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error 001156: Failed on input OID &lt;value&gt;; could not write value '&lt;value&gt;' to output field &lt;value&gt;. Script fails when run on scedule, no fail when run manually</title>
      <link>https://community.esri.com/t5/python-questions/error-001156-failed-on-input-oid-lt-value-gt-could/m-p/524324#M41111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It might have been, but not to my knowledge. The question is what kind of patch would that be to mess up a script only when run by the sceduler from a .bat-file and not when running the same script from console/IDLE...?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 14:19:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-001156-failed-on-input-oid-lt-value-gt-could/m-p/524324#M41111</guid>
      <dc:creator>HåvardMoe1</dc:creator>
      <dc:date>2018-08-22T14:19:20Z</dc:date>
    </item>
    <item>
      <title>Re: Error 001156: Failed on input OID &lt;value&gt;; could not write value '&lt;value&gt;' to output field &lt;value&gt;. Script fails when run on scedule, no fail when run manually</title>
      <link>https://community.esri.com/t5/python-questions/error-001156-failed-on-input-oid-lt-value-gt-could/m-p/524325#M41112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was there ever a resolution for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Dec 2019 19:42:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-001156-failed-on-input-oid-lt-value-gt-could/m-p/524325#M41112</guid>
      <dc:creator>deleted-user-JVpgF2XzWoGH</dc:creator>
      <dc:date>2019-12-02T19:42:13Z</dc:date>
    </item>
  </channel>
</rss>

