Cadasta / cadasta-qgis-plugin

[DEPRECATED] QGIS plugin to create, edit, upload and download Cadasta projects
GNU General Public License v3.0
4 stars 7 forks source link

Update Project is not permitted with multiple_select choices #256

Open SteadyCadence opened 7 years ago

SteadyCadence commented 7 years ago

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\""]}
dimasciput commented 7 years ago

Could you upload the project data and the questionnaire

SteadyCadence commented 7 years ago

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.