cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Discussions

Solve problems, and share tips and tricks with other JMP users.
%3CLINGO-SUB%20id%3D%22lingo-sub-848192%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EGroupColumns%20g%C3%A9n%C3%A9rant%20une%20exception%20dans%20la%20version%26nbsp%3B18%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-848192%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ECh%C3%A8re%20communaut%C3%A9%2C%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EDepuis%20que%20je%20suis%20pass%C3%A9%20%C3%A0%20la%20version%2018%2C%20un%20appel%20de%20fonction%20qui%20fonctionnait%20auparavant%20correctement%2C%20l%C3%A8ve%20d%C3%A9sormais%20une%20exception%20(en%20mode%20d%C3%A9bogage%20uniquement%2C%20sinon%2C%20il%20est%20simplement%20ignor%C3%A9%20en%20silence)%26nbsp%3B%3A%3C%2FP%3E%3CUL%3E%3CLI%3ECela%20fonctionnait%20dans%20la%20version%2017%26nbsp%3B%3A%3C%2FLI%3E%3C%2FUL%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3EcolList%20%3D%20dt2%20%26lt%3B%26lt%3B%20Get%20Column%20Names(%20String%20)%3B%0Adt2%20%26lt%3B%26lt%3B%20GroupColumns(%20%3CU%3E%3CSTRONG%3EcolList%5B1%5D%3C%2FSTRONG%3E%3C%2FU%3E%20%3A%3A%20%3ATime%20At%20Exit%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3CUL%3E%3CLI%3EL%C3%A8ve%20cette%20exception%20dans%20la%20v18%3CBR%20%2F%3E%20%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22HubPSDe_0-1742225867279.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22HubPSDe_0-1742225867279.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22HubPSDe_0-1742225867279.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.jmp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F73950i506B2C59C8D150FA%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22HubPSDe_0-1742225867279.png%22%20alt%3D%22HubPSDe_0-1742225867279.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FLI%3E%3CLI%3EFYI%2C%20this%20explicit%20workaround%20works%3A%3CBR%20%2F%3E%3CPRE%3E%3CCODE%20class%3D%22%20language-jsl%22%3Edt2%20%26lt%3B%26lt%3B%20GroupColumns(%20%3CU%3E%3CSTRONG%3E%3ATime%20At%20Entrance%20Queue%3C%2FSTRONG%3E%3C%2FU%3E%20%3A%3A%20%3ATime%20At%20Exit%20)%3B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%3C%2FUL%3E%3CP%3EQuelqu'un%20peut-il%20dire%20pourquoi%20%3CEM%3E%3CSTRONG%3E%3CU%3EcolList%5B1%5D%3C%2FU%3E%3C%2FSTRONG%3E%3C%2FEM%3E%20ne%20fonctionne%20plus%20dans%20ce%20contexte%20%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-848192%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3EAutomatisation%20et%20scripts%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-848210%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3ERe%26nbsp%3B%3A%20GroupColumns%20g%C3%A9n%C3%A9rant%20une%20exception%20dans%20la%20version%26nbsp%3B18%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-848210%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EJe%20suppose%20que%20JMP18%20n'appr%C3%A9cie%20pas%20qu'on%20m%C3%A9lange%20des%20cha%C3%AEnes%20avec%20l'autre%20format%20(ce%20format%20est%20globalement%20tr%C3%A8s%20%C3%A9trange).%20Personnellement%2C%20j'utiliserais%20simplement%20une%20liste%20de%20colonnes%20ou%20le%20nom%20de%20la%20colonne%20(sous%20forme%20de%20cha%C3%AEne)%20et%20un%20num%C3%A9ro.%20%3CA%20href%3D%22https%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F18.1%2F%23page%2Fjmp%2Fgroup-columns.shtml%23ww805157%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.jmp.com%2Fsupport%2Fhelp%2Fen%2F18.1%2F%23page%2Fjmp%2Fgroup-columns.shtml%23ww805157%3C%2FA%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
Choose Language Hide Translation Bar
HubP-SDe
Level I

GroupColumns raising exception in v18

Dear Community,

 

Since I moved to v18, a function call that previously worked fine, now raises an exception (in Debug mode only, otherwise, just skipped silently):

  • This worked in v17:
colList = dt2 << Get Column Names( String );
dt2 << GroupColumns( colList[1] :: :Time At Exit );
  • Raises this exception in v18
    HubPSDe_0-1742225867279.png
  • FYI, this explicit workaround works:
    dt2 << GroupColumns( :Time At Entrance Queue :: :Time At Exit );

Can anyone tell why colList[1] does not work anymore in this context?

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: GroupColumns raising exception in v18

My guess is that JMP18 doesn't like you mixing string with the other format (that format is overall very weird). Personally I would just use list of columns or name of column (as a string) and number. https://www.jmp.com/support/help/en/18.1/#page/jmp/group-columns.shtml#ww805157

 

 

-Jarmo

View solution in original post

1 REPLY 1
jthi
Super User

Re: GroupColumns raising exception in v18

My guess is that JMP18 doesn't like you mixing string with the other format (that format is overall very weird). Personally I would just use list of columns or name of column (as a string) and number. https://www.jmp.com/support/help/en/18.1/#page/jmp/group-columns.shtml#ww805157

 

 

-Jarmo

Recommended Articles