Comments (3)
This error occurs because we replace the contents of the text files in the survey configuration zip file. While this is implemented in order to swizzle the contents, no modification of the contents is needed to replicate this bug: we simply read and replace text files. While the XLSX file is also read, it is not replaced back into the zip--it is left alone.
from solution.js.
This is occurring because the date timestamps for the files are showing in the future for some files. See the screenshot below, I just took this picture and the timestamps for the Sign Request.xml file is showing as tomorrow. Survey123 Connect compares the timestamp of the xlsx file with this .xml file. If the xlsx file has a modification date newer than the xml file then it refreshes the xml file from the xlsx definition. Because the timestamp of the xml appears newer than the xlsx even after I save it doesn't refresh.
The update forces the xml to update and its timestamp is updated to now as a result. Is there anything we can do to control the timestamp of these files when we replace these files in the zip? Not sure if this is some UTC offset going on here.
from solution.js.
Thank you, @chris-fox, for discovering this.
I'm marking every file with the same time.
- xlsx earlier than xml causes this issue as you discovered
- xlsx later than xml causes infinite loop asking if we want to update the survey
- xlsx with same date as xml works
S123 does something strange while unzipping, however: it adds the UTC offset to all files except the PNG and .itemInfo files. This puts the XLSX file hours into the future west of the prime meridian, thus breaking the update.
Merely correcting for UTC offset for all files leads to S123 to unzip all files to be approximately the same time, but all files except the PNG and .itemInfo files are one day in the future.
Merely subtracting one day for all files has the same effect as setting all files to deployment time.
Correcting for UTC offset and subtracting one day seems to be the solution.
from solution.js.
Related Issues (20)
- Add Public Notification for ArcGIS Enterprise Variable HOT 2
- Support group tag when creating a solution item HOT 3
- Recycle Bin and Deleting Solutions
- Vector Tile Layer Basemap Dropped During Template Creation HOT 7
- Set properties property of Group during deployment HOT 2
- Copy layer level metadata into solution item
- When creating a QuickCapture solution, resources other than qc.project.json remain as files in addition to templatized forms HOT 1
- We need to ignore the published_data.json resource during creation and create it from the item data during deployed HOT 1
- Search for url encoded portal url and replace with {{portalBaseUrl}} property HOT 7
- Add support for Survey123 webhooks HOT 32
- Label property is not being replaced in Real-Time and Big Data Analytics when items are reused
- Conditional Values dropped in deployed solution HOT 2
- Organization URL key should be lower case HOT 1
- Join View fails to deploy if source services have different spatial references
- Upgrade an existing feature service
- Deployed surveys have blank thumbnail HOT 2
- Explore swizzling xlsx file in Survey123 form HOT 4
- deploySolution demo's OAuth path is broken
- Use workflow api to delete a workflow when deleting a solution
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solution.js.