In our first attempt to use a Trimble Juno running Android we started a municipal drain manhole inspection/collection process. Over the course of 4 days (June 2-5 2014) we have tried to sync each day to no avail, and now have issues with the python approach to reach the data.
Upon trying to sync
Using the .py code we were able to convert several points but not all.
we have collected new points (.py worked on all of these)
we have updated (inspected) existing points (.py only worked on updates on Monday and Tuesday-thursday and Friday's points come up with an error)
The error when running either of the python files (with the temp.xml, and without-same error) is that an OID already exists.(shown below)
the geodatabase input is the collector offline app data, the output gdb is empty.
Any thoughts.
P.S. one other notable item. When trying to sync on day 2 the android app asked for a login and password, to this I entered my credentials and the sync failed (I am publisher and part of the group that own the content) The collector app was signed in by the administrator at the time (ie map was downloaded by administrator permissions) This corresponds with the time of data loss i.e. we can retrieve the updated data and the new points from before this event, but only new points after this event (no updated points).
Thanks in advance
Craig.
error message from Idle shell.
>>>
Input Offline .geodatabase is: " C:\Temp\ArcGIS_Collector\offline_data\DOS_GIS_c3F1YW1pc2gubWFwcy5hcmNnaXMuY29t\5c23151f1e1f472088299308d1fed713\169f38ac-4fe0-481c-89b6-30158ac63aae.geodatabase
Output fgdb is: " C:\Temp\Collector2.gdb
Traceback (most recent call last):
File "Z:\GIS_Projects\Mobile\AndroidReadScriptV2\AndroidReadScriptV2.py", line 52, in <module>
main(sys.argv[1:])
File "Z:\GIS_Projects\Mobile\AndroidReadScriptV2\AndroidReadScriptV2.py", line 45, in main
arcpy.ImportXMLWorkspaceDocument_management(output_gdb, Temp_xml, "DATA", "")
File "C:\Program Files (x86)\ArcGIS\Desktop10.2\arcpy\arcpy\management.py", line 1194, in ImportXMLWorkspaceDocument
raise e
ExecuteError: ERROR 999999: Error executing function.
A row with this OID already exists.
Field is not editable.
Field is not editable.
Field is not editable.
Field is not editable.
...
Field is not editable.
Field is not editable.
Field is not editable.
Field is not editable.
The operation was attempted on an empty geometry.
Failed to execute (ImportXMLWorkspaceDocument).
>>>