You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to import a file that was exported from another Zetkin organization and after resolving errors related to e.g. phone formatting, I clicked the Validate button and expected to see the validation screen. Instead however nothing happened and the console log printed the INVALID_COUNTRY error.
Steps to reproduce
Go to import for organization 978
Use the file provided (I will upload it on Slack, it contains some real people as well, search for the issue #)
Choose the appropriate fields for all the fields.
Click validate
Expected Behaviour
Any potential errors should be visible or it should say everything is fine and it should give me the option to proceed with the import.
Actual Behaviour
Nothing happens in the UI. Instead INVALID_COUNTRY is printed. This is also printed if Country is not imported.
Screenshots (if you have any)
Other information
This appears to be a frontend validation issue, because no upload of the data to /preview was triggered.
The text was updated successfully, but these errors were encountered:
This was related to the parsing of phone numbers when the country of the organization is invalid. It needs to be an upper-case ISO country code. In this case it was se and should have been SE.
A better way of reporting errors coming from the importer would be nice. When it encounters an unknown error rather than not doing anything, it would be good if it instead showed an error including some relevant information.
It could simply catch the error and print it in a simple text box which can be copied and sent to us for further diagnosis.
niklasva82
changed the title
Import of seemingly valid data results in INVALID_COUNTRY
Better reporting of unexpected errors from the importer
Apr 26, 2024
See the comments below.
Description
When trying to import a file that was exported from another Zetkin organization and after resolving errors related to e.g. phone formatting, I clicked the Validate button and expected to see the validation screen. Instead however nothing happened and the console log printed the
INVALID_COUNTRY
error.Steps to reproduce
Expected Behaviour
Any potential errors should be visible or it should say everything is fine and it should give me the option to proceed with the import.
Actual Behaviour
Nothing happens in the UI. Instead
INVALID_COUNTRY
is printed. This is also printed if Country is not imported.Screenshots (if you have any)
Other information
This appears to be a frontend validation issue, because no upload of the data to
/preview
was triggered.The text was updated successfully, but these errors were encountered: