<?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 Feature Layer Calculate Timeout Error Code 400 in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-calculate-timeout-error-code-400/m-p/856132#M4017</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to overcome the timeout error 400 that is hindering a perfectly good request.&amp;nbsp; I can enter the same commands on the command line and they work alright.&amp;nbsp; But the script is&amp;nbsp; ending in timeout!&amp;nbsp; I feel like a little child being put on a timeout with no reasonable cause.&amp;nbsp;I can run the same command while in a Pythn debug session and it perfectly executes. In fact I trap the error and right then I execute the command at the debug session command line and there is no timeout error at all. The feature layer has about 2000 records and I am just calculating a single column.&amp;nbsp; Is there anyway to have the process repeat by parsing the error code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this error message when executing from a script either in a manually run python script or using a windows task scheduler of the same script.&lt;/P&gt;&lt;P&gt;resultupd1 = wmlnclyrsects.calculate(where=qryStr0,calc_expression={"field" : fldx , "value" : valx})&lt;BR /&gt; Error message : Unable to calculate fields.&lt;BR /&gt;Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.&lt;BR /&gt;(Error Code: 400) &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;The error code 400 is meant to be a bad request as per the code definition in this link&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/guide/platform-error-codes.htm" title="https://developers.arcgis.com/net/latest/wpf/guide/platform-error-codes.htm"&gt;Platform error codes—ArcGIS Runtime SDK for .NET | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do to mitigate the problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Nov 2019 18:36:22 GMT</pubDate>
    <dc:creator>MaazaMekuria</dc:creator>
    <dc:date>2019-11-27T18:36:22Z</dc:date>
    <item>
      <title>Feature Layer Calculate Timeout Error Code 400</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-calculate-timeout-error-code-400/m-p/856132#M4017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How to overcome the timeout error 400 that is hindering a perfectly good request.&amp;nbsp; I can enter the same commands on the command line and they work alright.&amp;nbsp; But the script is&amp;nbsp; ending in timeout!&amp;nbsp; I feel like a little child being put on a timeout with no reasonable cause.&amp;nbsp;I can run the same command while in a Pythn debug session and it perfectly executes. In fact I trap the error and right then I execute the command at the debug session command line and there is no timeout error at all. The feature layer has about 2000 records and I am just calculating a single column.&amp;nbsp; Is there anyway to have the process repeat by parsing the error code&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this error message when executing from a script either in a manually run python script or using a windows task scheduler of the same script.&lt;/P&gt;&lt;P&gt;resultupd1 = wmlnclyrsects.calculate(where=qryStr0,calc_expression={"field" : fldx , "value" : valx})&lt;BR /&gt; Error message : Unable to calculate fields.&lt;BR /&gt;Execution Timeout Expired. The timeout period elapsed prior to completion of the operation or the server is not responding.&lt;BR /&gt;(Error Code: 400) &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;The error code 400 is meant to be a bad request as per the code definition in this link&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/net/latest/wpf/guide/platform-error-codes.htm" title="https://developers.arcgis.com/net/latest/wpf/guide/platform-error-codes.htm"&gt;Platform error codes—ArcGIS Runtime SDK for .NET | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What can I do to mitigate the problem.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2019 18:36:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/feature-layer-calculate-timeout-error-code-400/m-p/856132#M4017</guid>
      <dc:creator>MaazaMekuria</dc:creator>
      <dc:date>2019-11-27T18:36:22Z</dc:date>
    </item>
  </channel>
</rss>

