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
A DataObject has implemented a validate() function that returns a ValidationResult object. Using the Import CSV button, data can be imported - but if any item fails validation, the import seems to be abandoned without explanation. Furthermore if there were any messages from previous imports (ie. items were previously updated or created) these messages persist, creating the illusion that something happened.
Steps to Reproduce
add validation to a dataobject.
go to modeladmin and click the "import CSV" button.
select a CSV file that you know will have some valid entries, and click the "import from csv" button.
now select a CSV file that you know will have some invalid entries, and click the "import from csv" button.
be confused by the results.
It would be nice if imports succeeded and just skipped the invalids, or alternatively some feedback is given explaining that the import failed.
The text was updated successfully, but these errors were encountered:
Just wanting to follow up on this issue. I can confirm this issue is occurring in SilverStripe 4.11.0.
It is very time consuming trying to find what row in the CSV is causing the issue. No information is recorded in any log which makes it that much more annoying.
Affected Version
SS4.2.0
Description
A DataObject has implemented a validate() function that returns a ValidationResult object. Using the Import CSV button, data can be imported - but if any item fails validation, the import seems to be abandoned without explanation. Furthermore if there were any messages from previous imports (ie. items were previously updated or created) these messages persist, creating the illusion that something happened.
Steps to Reproduce
It would be nice if imports succeeded and just skipped the invalids, or alternatively some feedback is given explaining that the import failed.
The text was updated successfully, but these errors were encountered: