<?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: WARNING 000405 when using 'Calculate field' in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/warning-000405-when-using-calculate-field/m-p/115327#M3950</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad you could resolve your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Nov 2014 13:07:34 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2014-11-27T13:07:34Z</dc:date>
    <item>
      <title>WARNING 000405 when using 'Calculate field'</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/warning-000405-when-using-calculate-field/m-p/115324#M3947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I'm using a Python code block to calculate the azimuths of 11 polylines within a single shapefile. When I run the code block the field calculator it works fine for 8 of the polylines but returns an incorrect result of '0' for 3 polylines. The geoprocessing results give the following reason:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WARNING 000405: No records within table&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The polyline shapefile was aquired as a single shapefile data download, so I don't understand why 3 of the polyline features seem to have no records. They don't appear any different in the attribute table, which looks like this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/legacyfs/online/34960_pastedImage_2.png"&gt;&lt;IMG alt="" class="image-1 jive-image" height="323" src="https://community.esri.com/legacyfs/online/34960_pastedImage_2.png" style="max-width:294px; max-;" width="294" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I doubt it's an error with my code block because I've used this code for many other datasets and not had a problem. Besides it is computing the correct results for the other polylines in this shapefile. But just in case, here is the code:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;def GetAzimuthPolyline(shape):&lt;/P&gt;&lt;P&gt; radian = math.atan((shape.lastPoint.X - shape.firstPoint.X)/(shape.lastPoint.Y - shape.firstPoint.Y))&lt;/P&gt;&lt;P&gt; degrees = math.degrees(radian)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; if degrees &amp;lt; 0:&lt;/P&gt;&lt;P&gt;&amp;nbsp; return degrees + 360&lt;/P&gt;&lt;P&gt; else:&lt;/P&gt;&lt;P&gt;&amp;nbsp; return degrees&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression applied is:&lt;/P&gt;&lt;P&gt;Azimuth = GetAzimuthPolyline(!shape!)&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone suggest a reason why I'm having this problem?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using Arc 10.1 with the basic licence.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 11:32:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/warning-000405-when-using-calculate-field/m-p/115324#M3947</guid>
      <dc:creator>CamillaRootes</dc:creator>
      <dc:date>2014-11-27T11:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING 000405 when using 'Calculate field'</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/warning-000405-when-using-calculate-field/m-p/115325#M3948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you looked at the 3 polylines? Do they have a zero length or do their start and end points match? What is their orientation?&lt;/P&gt;&lt;P&gt;Can they be multipart polylines?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 11:50:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/warning-000405-when-using-calculate-field/m-p/115325#M3948</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-11-27T11:50:33Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING 000405 when using 'Calculate field'</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/warning-000405-when-using-calculate-field/m-p/115326#M3949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answers to your questions are: yes I have looked at them; they all have a length that looks correct; the start and end points don't match; they have different orientations (but none should produce azimuths of 0); they're definitely not multipart polylines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I've done is to re-download the data and ran the whole process again from the start. This appears to have solved the issue - I'm now getting correct azimuths for every line. Putting it down to a corrupt download for now, I'll keep working on it and get right back on here if the issue reappears!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 12:24:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/warning-000405-when-using-calculate-field/m-p/115326#M3949</guid>
      <dc:creator>CamillaRootes</dc:creator>
      <dc:date>2014-11-27T12:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING 000405 when using 'Calculate field'</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/warning-000405-when-using-calculate-field/m-p/115327#M3950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad you could resolve your issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Nov 2014 13:07:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/warning-000405-when-using-calculate-field/m-p/115327#M3950</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2014-11-27T13:07:34Z</dc:date>
    </item>
  </channel>
</rss>

