BLOG
|
I still have not been able to solve this problem, I developed an application with xamarín to generate the itemsets.csv file from the device, I have a service where I update all the catalog lists that I need in the mobile application, I update it every 30 seconds and look for changes in the items, so I update the csv locally. El lun., 9 dic. 2019 a las 15:45, M E (<geonet@esri.com>) escribió: GeoNet, The Esri Community | GIS and Geospatial Professional Community <https://community.esri.com/?et=blogs.comment.created> Updating the media folder of a Survey123 Form item new comment by M E <https://community.esri.com/people/a00847138?et=blogs.comment.created> - View all comments on this blog post <https://community.esri.com/groups/survey123/blog/2017/12/08/an-alternative-way-to-update-the-media-folder-of-a-survey123-form-item?commentID=80856&et=blogs.comment.created#comment-80856>
... View more
12-11-2019
05:40 AM
|
0
|
0
|
4324
|
BLOG
|
Sorry, I changed some name, site, name of the survey123. This would be the name of the zip file Zip file name: Form_survey123.zip Running the script in Geoprocessing in ArcGIS Desktop 10.6.1 Advanced.
... View more
08-14-2019
06:48 AM
|
0
|
0
|
8719
|
BLOG
|
Hello James I tried running the script in Geoprocessing in ArcGIS Desktop 10.6.1 Advanced and the error is the same. This is the log of results, I printed some parameters to check if something is more them. ...Starting ...Authenticating ...Querying Token: Pe9Ap__VwLxSHOpksp4ZLgPm1e0y6GASUfwgASnTvbhYFy6m_feMAU8EnruXoKG4uyJgYNkGskEWLI9v_JuPuwcuTgrj9bIHRjWewaF8Cg0vruV8A8Xou_vk6HVqFVX3PtN04lwBFqQds0O41qfFiA.. itemID:c26cd1b10e294f98a53000c70008ca55 serviceInfo-> {u'avgRating': 0, u'proxyFilter': None, u'culture': u'es-cr', u'owner': u'sistema', u'commentsEnabled': True, u'guid': None, u'screenshots': [], u'id': u'c26cd1b10e294f98a53000c70008ca55', u'size': 76500, u'appCategories': [], u'access': u'private', u'languages': [], u'title': u'Cierre de Aver\xeda', u'groupDesignations': None, u'numRatings': 0, u'numComments': 0, u'snippet': None, u'listed': False, u'largeThumbnail': None, u'itemControl': u'admin', u'type': u'Form', u'thumbnail': u'thumbnail/Cierre_de_Aver_C3_ADa.png', u'industries': [], u'numViews': 10, u'description': None, u'tags': [], u'typeKeywords': , u'extent': [], u'scoreCompleteness': 33, u'banner': None, u'properties': None, u'categories': [], u'name': u'Cierre_de_Aver\xeda.zip', u'licenseInfo': None, u'created': 1565121027089L, u'url': None, u'documentation': None, u'modified': 1565293550451L, u'isOrgItem': True, u'spatialReference': None, u'protected': False, u'ownerFolder': u'30377052949d41239f4ee634d1d798b8', u'accessInformation': None} Zip file name: Cierre_de_Avería.zip https:// organization.com/portal/sharing/rest/content/items/c26cd1b10e294f98a53000c70008ca55/data/?f=json&token=Pe9Ap__VwLxSHOpksp4ZLgPm1e0y6GASUfwgASnTvbhYFy6m_feMAU8EnruXoKG4uyJgYNkGskEWLI9v_JuPuwcuTgrj9bIHRjWewaF8Cg0vruV8A8Xou_vk6HVqFVX3PtN04lwBFqQds0O41qfFiA .. ...Downloading filename->C:/itemsets/descarga/Form_survey123.zip Form_survey123.zip downloaded to: C:/itemsets/download/ ...Extracting Runtime error Traceback (most recent call last): File ") escribió: GeoNet, The Esri Community | GIS and Geospatial Professional Community <https://community.esri.com/?et=blogs.comment.created> Updating the media folder of a Survey123 Form item new comment by James Tedrick <https://community.esri.com/people/JTedrick-esristaff?et=blogs.comment.created> - View all comments on this blog post <https://community.esri.com/groups/survey123/blog/2017/12/08/an-alternative-way-to-update-the-media-folder-of-a-survey123-form-item?commentID=76697&et=blogs.comment.created#comment-76697>
... View more
08-14-2019
06:40 AM
|
0
|
0
|
8719
|
BLOG
|
Hi James Tedrick I tried the function in this way as suggested, but it generates the same error with portal, when downloading the zip it is incorrect. def downloadFile(url, filename): print ("...Downloading") req = urllib2.urlopen(url) with open(filename, 'wb') as fp: fp.write(req.read()) On this occasion I tried it on portal 10.7.1 and the error is the same except IOError: raise BadZipfile("File is not a zip file") if not endrec: raise BadZipfile, "File is not a zip file" Evenor. El jue., 8 ago. 2019 a las 11:41, James Tedrick (<geonet@esri.com>) escribió: GeoNet, The Esri Community | GIS and Geospatial Professional Community <https://community.esri.com/?et=blogs.comment.created> Updating the media folder of a Survey123 Form item new comment by James Tedrick <https://community.esri.com/people/JTedrick-esristaff?et=blogs.comment.created> - View all comments on this blog post <https://community.esri.com/groups/survey123/blog/2017/12/08/an-alternative-way-to-update-the-media-folder-of-a-survey123-form-item?commentID=76499&et=blogs.comment.created#comment-76499>
... View more
08-10-2019
10:59 AM
|
0
|
0
|
8719
|
BLOG
|
Hi Phil. First of all thank you for your time. I am using Windows 10 professional 64 bits, the IDE I use is Python Scripter 2.5.3.3 x86 for Python 2.7. One observation, if I use ArcGIS Online in the same environment mentioned above it works perfectly, download the zip well, unzip it and upload the changes in the media folder without problems. Only on the portal is that I am experiencing this problem. Evenor. El dom., 4 ago. 2019 a las 16:52, Philip Wilson (<geonet@esri.com>) escribió: GeoNet, The Esri Community | GIS and Geospatial Professional Community <https://community.esri.com/?et=blogs.comment.created> Updating the media folder of a Survey123 Form item new comment by Philip Wilson <https://community.esri.com/people/Philip.Wilson-esristaff?et=blogs.comment.created> - View all comments on this blog post <https://community.esri.com/groups/survey123/blog/2017/12/08/an-alternative-way-to-update-the-media-folder-of-a-survey123-form-item?commentID=76211&et=blogs.comment.created#comment-76211>
... View more
08-04-2019
04:28 PM
|
0
|
0
|
8719
|
BLOG
|
Hi Philip I'm using Portal 10.6.1, but apparently when you download the .zip file it gets corrupted, when trying to unzip it generates an error. def downloadFile(url, filename): print ("...Downloading") req = urllib2.urlopen(url) CHUNK = 16 * 1024 with open(filename, 'wb') as fp: while True: chunk = req.read(CHUNK) if not chunk: break fp.write(chunk) This is the error shown when trying to unzip (raise BadZipfile, "File is not a zip file") def extractZIP(filename,folder): print ("...Extracting") zfile = zipfile.ZipFile(filename) zfile.extractall(folder) Could you give me guidance on this error! Thank you I hope you have a solution for this.
... View more
08-04-2019
11:10 AM
|
0
|
0
|
8719
|
Online Status |
Offline
|
Date Last Visited |
12-10-2020
02:47 PM
|