I'm using an update cursor to populate some fields which works fine but i want to get the XY of the point at the same time but i get an error:
999999: Error executing function
this is my code:
UpdRPoint <SPAN class="operator token">=</SPAN> arcpy<SPAN class="punctuation token">.</SPAN>UpdateCursor<SPAN class="punctuation token">(</SPAN>NearXY_Lyr<SPAN class="punctuation token">)</SPAN>
<SPAN class="keyword token">for</SPAN> RP <SPAN class="keyword token">in</SPAN> UpdRPoint<SPAN class="punctuation token">:</SPAN>
Desc_1 <SPAN class="operator token">=</SPAN> RP<SPAN class="punctuation token">.</SPAN>getValue<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"DESCRIPTION_1"</SPAN><SPAN class="punctuation token">)</SPAN>
x<SPAN class="punctuation token">,</SPAN> y <SPAN class="operator token">=</SPAN> RP<SPAN class="punctuation token">.</SPAN>getValue<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"SHAPE@XY"</SPAN><SPAN class="punctuation token">)</SPAN>
messages<SPAN class="punctuation token">.</SPAN>addMessage<SPAN class="punctuation token">(</SPAN><SPAN class="string token">"{}, {}"</SPAN><SPAN class="punctuation token">.</SPAN>format<SPAN class="punctuation token">(</SPAN>x<SPAN class="punctuation token">,</SPAN> y<SPAN class="punctuation token">)</SPAN><SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>any ideas why its not working?