peacecorps / medlink

A project to make it easier for Peace Corps Volunteers to order their medical supplies from a local Peace Corps Office. Volunteers can order by sms or webform. PC Staff interact with the orders in a simple to use dashboard.
https://www.youtube.com/watch?v=uNkwizhzMVA
Other
39 stars 36 forks source link

.csv uploads not producing new users #431

Closed choquette33 closed 9 years ago

choquette33 commented 9 years ago

I am uploading a .csv of users for the DR

  1. I choose the file and country
  2. Click on the upload .csv button
  3. The application starts working and eventually the chart of users that I just attempted to upload is displayed without errors on the page.
  4. I do not receive confirmation of upload in the form of a pop up
  5. When I check the users for the DR, none of the new users from the .csv are there.
aroberts01 commented 9 years ago

@choquette33 @jamesdabbs

Still receiving error for uploads. "undefined method ' empty?' for nil:NilClass Not sure what I'm doing wrong. it's in the same format as has always been. I believe this is a new error message I'm receiving. pcm_upl

jamesdabbs commented 9 years ago

My guess would be that this is something about having blank rows at the end of the file and not handling them correctly. Could you email me a copy of the file you're trying to upload so I can take a look?

aroberts01 commented 9 years ago

@jamesdabbs Hey, I was uploading Volunteers from Lesotho- and a new issue occurred. I'm not having an 'issues' or 'errors' but the information isn't being loaded into the application. You can see below- after I select the file and select to upload I am brought to this screen- with all the information being correct for all uploaded- but when you go to view users in Lesotho and I am not seeing Volunteers. image001

aroberts01 commented 9 years ago

@jamesdabbs It's working now. It helped to upload 4 volunteers with a small csv. Then they all worked.

jamesdabbs commented 9 years ago

@aroberts01 - I'm not sure what the issue was, but glad it's working now. In the future, if you hit any unexpected upload errors, please send me a copy of the CSV you're uploading, so that I can troubleshoot it.