Upload files using ODK-X Suitcase

Very confusing that you are able to download successfully but then nothing happens with uploads. @W_Brunette or @Emil any ideas?

Hi @Francky_NGUEMA
What is the command that you execute? Are you running something like:

java -jar C:\Users\Francky\Downloads\ODK-X_Suitcase_v2.1.9.jar

I’m just guessing here, but I am thinking it could be a file permissions issue - maybe try moving the file out of Downloads folder?

//emil

Hi @Emil
I moved the file to another folder with full permissions and removed the quotes in the command and here is a preview of what I received

"dataETag":"uuid:a752a116-07d2-4872-9a06-498ee7e9587a","selfUri":"http:\/\/192.168.5.49:80\/odktables\/default\/tables\/sudesa","dataUri":"http:\/\/192.168.5.49:80\/odktables\/default\/tables\/sudesa\/ref\/uuid:2016ee7b-fd9b-4c46-8080-20d54d34498e\/rows","tableId":"sudesa","aclUri":"http:\/\/192.168.5.49:80\/odktables\/default\/tables\/sudesa\/acl","schemaETag":"uuid:2016ee7b-fd9b-4c46-8080-20d54d34498e","definitionUri":"http:\/\/192.168.5.49:80\/odktables\/default\/tables\/sudesa\/ref\/uuid:2016ee7b-fd9b-4c46-8080-20d54d34498e","instanceFilesUri":"http:\/\/192.168.5.49:80\/odktables\/default\/tables\/sudesa\/ref\/uuid:2016ee7b-fd9b-4c46-8080-20d54d34498e\/attachments","diffUri":"http:\/\/192.168.5.49:80\/odktables\/default\/tables\/sudesa\/ref\/uuid:2016ee7b-fd9b-4c46-8080-20d54d34498e\/diff"},{"tableLevelManifestETag":"b1cef28285978ccc1e1de96830b8a3f7","dataETag":"uuid:64d591ca-6abc-408f-b83a-e47e51eeb280","selfUri":"http:\/\/192.168.5.49:80\/odktables\/default\/tables\/sudesa_members","dataUri":"http:\/\/192.168.5.49:80\/odktables\/default\/tables\/sudesa_members\/ref\/uuid:01429b22-5be8-4923-929f-1d4a4ffe031d\/rows","tableId":"sudesa_members","aclUri":"http:\/\/192.168.5.49:80\/odktables\/default\/tables\/sudesa_members\/acl","schemaETag":"uuid:01429b22-5be8-4923-929f-1d4a4ffe031d","definitionUri":"http:\/\/192.168.5.49:80\/odktables\/default\/tables\/sudesa_members\/ref\/uuid:01429b22-5be8-4923-929f-1d4a4ffe031d","instanceFilesUri":"http:\/\/192.168.5.49:80\/odktables\/default\/tables\/sudesa_members\/ref\/uuid:01429b22-5be8-4923-929f-1d4a4ffe031d\/attachments","diffUri":"http:\/\/192.168.5.49:80\/odktables\/default\/tables\/sudesa_members\/ref\/uuid:01429b22-5be8-4923-929f-1d4a4ffe031d\/diff"}],"hasMoreResults":false,"webSafeResumeCursor":"H4sIAAAAAAAAAG2PWwuCQBSE_0r4Grqr7EPItiBmEISBSK-ytoeSvHH2LPbziwy60DzOfAMz8uTQDri4dW1v196FaIwZm6YpGEbojSZ9bSgY8Mxm0FNSE2FTO4Jcd6CqtMiScnfIq01SZpJ9p2_4qFsHKuKR8LnwI1GGIg55LFZBxPmSP_TRnWHpsNlrSwWQwx7M7FpnwOqqg64GtJL9hWRjtwNOGk36nK0IHUj268rXK3UH0qSUAQcBAAA","webSafeRefetchCursor":null,"webSafeBackwardCursor":"H4sIAAAAAAAAAG2PXQuCMBiF_0p4Gzq13SRrIGYQhIFIt_LWVo7UyfYO-_lFBn3QuTznOXAOOzljtZndura3K69BHBJCxnEM9CB7AQhXhYE2FzKBHmeAaNTRoSygk7zOyjyttvuiXqdVzsh3-oYP0DrJ4zCmfkj9mFYRTcJlQqOALug8fOijO8HMGbUDi6VEZ3opJjfHRulBQd1oZ2WjW8HIX5Apu9FmBCOy53R-htZKRn5t9rrG79hfhWoMAQAA","appLevelManifestETag":"40faa1106920a881279869d941dee26f","hasPriorResults":false}

I checked the data but nothing was uploaded

could this be because the link to server is http://x.x.x.x instead of https://x.x.x.x?

Hmm… I would think that if it gave you that json response, it had been uploaded… @wW_Brunette: Any ideas?

It treats each line differently and reports success if it reached the server. The success/failure of each line in the CSV is listed in “outcomeFile.txt” which is located at the same level of the directory that contains the CSVs to upload. So often one level up from the csv file.

this.outcomePath = FileUtils.getUpdateSavePath().toString() + File.separator
          + DEFAULT_OUTCOME_FILE_NAME;

@W_Brunette I did not see a file named like that at this level on my computer

Even the update is not working. I’m start to think that i did not setup well the sync-endpoint.
There is the error when use the CLI for updating data

Error: Error occurred
java.lang.IllegalArgumentException: Update Task requires a valid file
        at org.opendatakit.suitcase.net.UpdateTask.doInBackground(UpdateTask.java:207)
        at org.opendatakit.suitcase.net.UpdateTask.doInBackground(UpdateTask.java:34)
        at java.desktop/javax.swing.SwingWorker$1.call(SwingWorker.java:304)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.desktop/javax.swing.SwingWorker.run(SwingWorker.java:343)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:842)

The file is prepared as in the documentation

Hi everyone.
I finally succeed to upload data.
I was not using the right version of java.
thank you very much for your help

1 Like