New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't re-import new Screendoor write-ins #57
Comments
These look like two different version of Collaborate being ran. @mayatmiller Do you have the lastest code? Or did you change the settings to I'm going to be working through this issue in the next day or two. If anyone has error logs from the failure, it would be helpful. |
I don't have the latest code and haven't been in the backend of the website at all (so haven't changed the settings in anyway). The re-import option is still not working, unfortunately, and am receiving the same error. I'm copying the entire code that appears in the error message in case it's helpful:
Let me know if there's anything else I can do to help! |
I just tested through screendoor and I couldn't find any exceptions when I ran imports. I think it's something specific to the form. Things to check:
That's all I can think of with the information I have. An error log from the web server would be really helpful. |
Hi @brandonrobertz Here's the error message: InvalidDimensions at /db-config/begin/ by Django Environment: Request Method: POST Django Version: 2.2.7 Traceback: File "/usr/local/lib/python3.7/site-packages/django/core/handlers/exception.py" in inner File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response File "/usr/local/lib/python3.7/site-packages/django/core/handlers/base.py" in _get_response File "/usr/local/lib/python3.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view File "/srv/app/django_models_from_csv/views/configuration.py" in begin File "/srv/app/django_models_from_csv/views/configuration.py" in begin File "/srv/app/django_models_from_csv/utils/dynmodel.py" in unique_name_wrapper File "/srv/app/django_models_from_csv/utils/dynmodel.py" in from_screendoor File "/srv/app/django_models_from_csv/utils/screendoor.py" in build_csv File "/srv/app/django_models_from_csv/utils/screendoor.py" in build_csv_from_data File "/usr/local/lib/python3.7/site-packages/tablib/core.py" in append File "/usr/local/lib/python3.7/site-packages/tablib/core.py" in rpush File "/usr/local/lib/python3.7/site-packages/tablib/core.py" in insert File "/usr/local/lib/python3.7/site-packages/tablib/core.py" in _validate Exception Type: InvalidDimensions at /db-config/begin/ |
@BluClare Thanks for the error log. I have a few ideas as to what it might be. Just so you know, this is the generic error related to imported columns not matching what Collaborate initially detected. Some things this could be:
One thing you can try is reverting back to 03d22c0 and doing the import. If it fails, then it's unlikely to be related to 2. Let me know about those and we can go from there. |
Hi @brandonrobertz I think you are spot on with point 1. I've looked and there are many duplicate fields. I'll sort this out and then try again. |
Okay, if you find a specific duplicate that is causing this let me know. In the meantime I'll try and reproduce it in some unit tests. |
Also note that you may need to remove and re-import the data source if this master branch change allows you to import new Screendoor forms but not re-import existing ones. This is all kind of a shot in the dark since I don't have access to anyones' data. So thanks for bearing with me. |
Hey all,
I'm working on the "Debthospitalslrn" project in Collaborate, and was trying to re-import new responses from Screendoor during Brandon's latest fix.
Now, when I try to re-import Screendoor responses I get directed to an error page. Here's a screenshot of the top of that page:
Feel free to reach me at maya.miller@propublica.org if you want to talk through further, or if I can send any additional information to make troubleshooting easier.
Thanks,
Maya
The text was updated successfully, but these errors were encountered: