Je réalise une synchro des tables de références de l'ODF dans l'admin pour initialiser une application, je rencontre l'erreur suivante :
Message : [odf-enumeration.Degree] Import from CSV file: error importing the content on line 114 Emplacement : org.ametys.plugins.contentio.csv.CSVImporter.importContentsFromCSV(CSVImporter.java:181) org.ametys.cms.workflow.InvalidInputWorkflowException: At least one validation error is preventing from saving the modifications at org.ametys.cms.workflow.EditContentFunction#_handleErrors:360 at org.ametys.cms.workflow.EditContentFunction#execute:261 at jdk.internal.reflect.GeneratedMethodAccessor837#invoke (Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl#invoke:43 at java.base/java.lang.reflect.Method#invoke:568 at org.ametys.runtime.plugin.component.PluginsComponentManager$ComponentInvocationHandler#invoke:198 at jdk.proxy5/jdk.proxy5.$Proxy127#execute (Unknown Source) at com.opensymphony.workflow.AbstractWorkflow#executeFunction:871 at com.opensymphony.workflow.AbstractWorkflow#transitionWorkflow:1044 at org.ametys.plugins.workflow.AbstractAmetysWorkflow#transitionWorkflow:212 at com.opensymphony.workflow.AbstractWorkflow#doAction:567 at org.ametys.plugins.workflow.AbstractAmetysWorkflow#doAction:164 at org.ametys.cms.workflow.ContentWorkflowHelper#doAction:340 at org.ametys.cms.workflow.ContentWorkflowHelper#editContent:389 at org.ametys.cms.workflow.ContentWorkflowHelper#editContent:367 at org.ametys.plugins.contentio.csv.CSVImporter#_editContent:222 at org.ametys.plugins.contentio.csv.CSVImporter#_synchronizeContent:506 at org.ametys.plugins.contentio.csv.CSVImporter#_processContent:214 at org.ametys.plugins.contentio.csv.CSVImporter#importContentsFromCSV:164 at org.ametys.plugins.contentio.csv.ImportCSVFileHelper#_importContents:363 at org.ametys.plugins.contentio.csv.ImportCSVFileHelper#importContents:339 at org.ametys.odf.schedulable.OdfRefTableDataSynchronizationSchedulable#_doExecute:133 at org.ametys.cms.schedule.AbstractSendingMailSchedulable#execute:81 at org.ametys.core.schedule.AmetysJob#execute:151
c'est reproductible sur https://demo.ametys.org/odf/_admin/ avec la 4.7.4
Les tables de références semblent néanmoins bien alimentées.
- Référence
-
CONTENTIO-289 [CSV import] Allow the ability to import only valid values
- Open
- testing discovered
-
RUNTIME-3891 ModelHelper.validateValue(...) should not try to validate the value if it is incompatible
- Closed