AnsweredAssumed Answered

Get Point XY from update cursor

Question asked by Stuart.Moore on Aug 15, 2019
Latest reply on Aug 15, 2019 by Stuart.Moore

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 = arcpy.UpdateCursor(NearXY_Lyr)
               for RP in UpdRPoint:

                    Desc_1 = RP.getValue("DESCRIPTION_1")
                    x, y = RP.getValue("SHAPE@XY")
                    messages.addMessage("{}, {}".format(x, y))

any ideas why its not working?