Uploaded image for project: 'Offre de formation'
  1. Offre de formation
  2. ODF-3669

Affectation de contacts sur ELPs via import csv

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.7.13, 4.8.0
    • 4.8.0
    • Synchro
    • None
    • 4.8.0 RC2
    • Oui

      L'affectation de contacts sur des fiches de type ELP ne fonctionne pas. L'erreur renvoyée est : Unable to retrieve the value at path 'contacts/persons'. The segment 'contacts' refers to a multiple data and can not be used inside the data path 

          [ODF-3669] Affectation de contacts sur ELPs via import csv

          David Moulin added a comment -

          Ok pour le msg d'erreur qui empêche l'import

          David Moulin added a comment - Ok pour le msg d'erreur qui empêche l'import

          I'm trying to import thesaurus like this (code is an additional data to terms of thesaurus):

          code*;title;specificTerms.code*;specificTerms.title;specificTerms.specificTerms.code;specificTerms.specificTerms.title
          "A";"Title A";"A1";"Title A1";"A1a";"Title A1a"
          "A";"Title A";"A1";"Title A1";"A1b";"Title A1b"
          "A";"Title A";"A2";"Title A2";"A2a";"Title A2a"
          "B";"Title B";"B1";"Title B1";"B1a";"Title B1a"

          But I'm getting the following error:

          java.lang.ClassCastException: class org.ametys.runtime.model.View cannot be cast to class org.ametys.runtime.model.ModelViewItemGroup (org.ametys.runtime.model.View and org.ametys.runtime.model.ModelViewItemGroup are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @1ef3efa8)
              at org.ametys.plugins.contentio.csv.ImportCSVFileHelper._getRepeaterParent(ImportCSVFileHelper.java:470)
              at org.ametys.plugins.contentio.csv.ImportCSVFileHelper._haveRepeaterParent(ImportCSVFileHelper.java:460)
              at org.ametys.plugins.contentio.csv.ImportCSVFileHelper._checkViewItemContentContainer(ImportCSVFileHelper.java:442)
              at org.ametys.plugins.contentio.csv.ImportCSVFileHelper._checkViewItemContainer(ImportCSVFileHelper.java:401)
              at org.ametys.plugins.contentio.csv.ImportCSVFileHelper.validateConfiguration(ImportCSVFileHelper.java:230)
              at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              [...]

          Bérénice Maurel added a comment - I'm trying to import thesaurus like this (code is an additional data to terms of thesaurus): code*;title;specificTerms.code*;specificTerms.title;specificTerms.specificTerms.code;specificTerms.specificTerms.title "A" ; "Title A" ; "A1" ; "Title A1" ; "A1a" ; "Title A1a" "A" ; "Title A" ; "A1" ; "Title A1" ; "A1b" ; "Title A1b" "A" ; "Title A" ; "A2" ; "Title A2" ; "A2a" ; "Title A2a" "B" ; "Title B" ; "B1" ; "Title B1" ; "B1a" ; "Title B1a" But I'm getting the following error: java.lang.ClassCastException: class org.ametys.runtime.model.View cannot be cast to class org.ametys.runtime.model.ModelViewItemGroup (org.ametys.runtime.model.View and org.ametys.runtime.model.ModelViewItemGroup are in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @1ef3efa8) at org.ametys.plugins.contentio.csv.ImportCSVFileHelper._getRepeaterParent(ImportCSVFileHelper.java:470) at org.ametys.plugins.contentio.csv.ImportCSVFileHelper._haveRepeaterParent(ImportCSVFileHelper.java:460) at org.ametys.plugins.contentio.csv.ImportCSVFileHelper._checkViewItemContentContainer(ImportCSVFileHelper.java:442) at org.ametys.plugins.contentio.csv.ImportCSVFileHelper._checkViewItemContainer(ImportCSVFileHelper.java:401) at org.ametys.plugins.contentio.csv.ImportCSVFileHelper.validateConfiguration(ImportCSVFileHelper.java:230) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [...]

            kbourgoin Kepa Bourgoin
            dmoulin David Moulin
            Kepa Bourgoin Kepa Bourgoin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: