Skip to content
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

Update Project is not permitted with multiple_select choices #256

Open
SteadyCadence opened this issue Aug 24, 2017 · 2 comments
Open

Update Project is not permitted with multiple_select choices #256

SteadyCadence opened this issue Aug 24, 2017 · 2 comments

Comments

@SteadyCadence
Copy link
Contributor

SteadyCadence commented Aug 24, 2017

Not sure if this is a QGIS bug or API one.

This is the logs:

Update success
Finished update project information
Update spatial information
Error 400 : {"attributes": ["Invalid choice for crops: \"(1:sorghum)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:maize)\"", "Invalid choice for fertilizer_limits: \"(1:no_supply)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:rice)\"", "Invalid choice for fertilizer_limits: \"(1:cost)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:maize)\"", "Invalid choice for fertilizer_limits: \"(1:cost)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:sorghum)\"", "Invalid choice for fertilizer_limits: \"(1:logistics)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:cassava)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:pea)\"", "Invalid choice for fertilizer_limits: \"(1:logistics)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:sweet_potato)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:irish_pototato)\"", "Invalid choice for fertilizer_limits: \"(1:logistics)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:rice)\"", "Invalid choice for fertilizer_limits: \"(1:logistics)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(3:fruit,vegetable,banana)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:banana)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:cassava)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:vegetable)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:maize)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:sorghum)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:bean)\"", "Invalid choice for fertilizer_limits: \"(1:cost)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:fruit)\"", "Invalid choice for fertilizer_limits: \"(1:other)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:sweet_potato)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:fruit)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(2:maize,sorghum)\"", "Invalid choice for fertilizer_limits: \"(1:other)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:groundnut)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(3:maize,cassava,irish_pototato)\"", "Invalid choice for fertilizer_limits: \"(1:other)\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:bean)\"", "Invalid choice for fertilizer_limits: \"(1:cost)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:irish_pototato)\"", "Invalid choice for fertilizer_limits: \"(1:cost)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:cassava)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:vegetable)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:bean)\"", "Invalid choice for fertilizer_limits: \"(1:logistics)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(2:maize,sorghum)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:rice)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:irish_pototato)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:rice)\"", "Invalid choice for fertilizer_limits: \"(1:other)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:sweet_potato)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:sorghum)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:cassava)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:rice)\"", "Invalid choice for fertilizer_limits: \"(1:na)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:groundnut)\"", "Invalid choice for fertilizer_limits: \"(1:no_supply)\"", "Validation failed for fertilizer_other: \"None\""]}

Error 400 : {"attributes": ["Invalid choice for crops: \"(1:pea)\"", "Invalid choice for fertilizer_limits: \"(1:other)\"", "Validation failed for fertilizer_other: \"None\""]}
@SteadyCadence SteadyCadence changed the title May be an API bug: Update Project is not permitted with multiple_select choices Update Project is not permitted with multiple_select choices Aug 24, 2017
@dimasciput
Copy link
Collaborator

Could you upload the project data and the questionnaire

@SteadyCadence
Copy link
Contributor Author

SteadyCadence commented Aug 31, 2017

Hey @dimasciput, could you tag me in replies? I dont see them otherwise.

The project can be found here: https://demo.cadasta.org/organizations/cadasta-demo-organization/projects/smallholder-farmers-india/

I have given your dimasciput username access to that project. You can download the data in QGIS and see in the attribute table of the location layer the format that is provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants