InseeFr / Pogues

Questionnaire designer
MIT License
20 stars 17 forks source link

Error when generating spe or pdf #859

Closed JulienCarmona closed 3 hours ago

JulienCarmona commented 3 hours ago

Describe the bug

Error when generation spec or pdf file

To Reproduce

Steps to reproduce the behavior:

  1. With the survey available here https://conception-questionnaires.recette.insee.fr/questionnaire/kzfezgxb
  2. Click on Visualiser>Papier
  3. See error Exception occured while executing mapping function

Expected behavior

Generate pdf file

Screenshots

Image

Version where the bug appeared

Pogues 1.7.2 et BE 4.8.2-SNAPSHOT Eno 3.27.1

JulienCarmona commented 3 hours ago

Cause potentielle ?

problème d'interprétation de : "Affichage de 2* GRAND :" || cast(¤lfs01t0s-GOP¤,string) l'étoile est une balise ouvrante italique qui n'est pas fermée

Dans le DDI, instruction concernée :

<d:Instruction>
            <r:Agency>fr.insee</r:Agency>
            <r:ID>lfs01ijx</r:ID>
            <r:Version>1</r:Version>
            <d:InstructionName>
               <r:String xml:lang="fr-FR">help</r:String>
            </d:InstructionName>
            <d:InstructionName>
               <r:String xml:lang="fr-FR">SelfAdministeredQuestionnaire.WebBased</r:String>
            </d:InstructionName>
            <d:InstructionName>
               <r:String xml:lang="fr-FR">SelfAdministeredQuestionnaire.Paper</r:String>
            </d:InstructionName>
            <d:InstructionName>
               <r:String xml:lang="fr-FR">Interview.Telephone.CATI</r:String>
            </d:InstructionName>
            <d:InstructionName>
               <r:String xml:lang="fr-FR">Interview.FaceToFace.CAPIorCAMI</r:String>
            </d:InstructionName>
            <d:InstructionText>
               <d:LiteralText>
                  <d:Text xml:lang="fr-FR">"Affichage de 2* GRAND :" || cast(¤lfs01t0s-GOP¤,string) </d:Text>
               </d:LiteralText>
               <d:ConditionalText>
                  <r:SourceParameterReference>
                     <r:Agency>fr.insee</r:Agency>
                     <r:ID>lfs01t0s-GOP</r:ID>
                     <r:Version>1</r:Version>
                     <r:TypeOfObject>OutParameter</r:TypeOfObject>
                  </r:SourceParameterReference>
               </d:ConditionalText>
            </d:InstructionText>
         </d:Instruction>
JulienCarmona commented 3 hours ago

Solution : fermer la déclaration en question avec un autre * ou le supprimer

ex : "Affichage de 2 GRAND :" || cast($GRAND2$,string)