AnsweredAssumed Answered

arcypy.da.InsertCursor error: Python int too large to convert to C long

Question asked by tom.rippetoe on Sep 11, 2017
Latest reply on Sep 11, 2017 by tom.rippetoe

Hello. I am trying to get data from my AGOL account and insert it into an enterprise database (SQL Server).  I get the data via the ArcREST API from my AGOL table. I then use an arcpy.da InsertCursor to insert the data into a standalone table. 

 

I am get an error on insert when the AGOL data contains a date field. The error message is "OverflowError: Python int too large to convert to C long".

 

How can i use the arcypy InsertCursor to insert date data? Do i need to convert the 'ticks' that are returned from AGOL into a string date, e.g. '2017-09011' or some such?

 

Thanks.

Outcomes