An idear : do i call multivalued attribute with another method than getDatasetFirstValueById because it’s sem to get « first value » ?
> Le 5 févr. 2018 à 14:25, Vincent LEPETIT <[email protected]> a écrit : > > [This sender failed our fraud detection checks and may not be who they appear > to be. Learn about spoofing at http://aka.ms/LearnAboutSpoofing] > > just before your answers i add a value to this multivalued attribute. > Now « description » had two value : > • {ARRIVALDATE}20180101 > • {LEAVINGDATE}20180502 > > in this order. > > and now the erro code is : > > févr. 05 14:06:58 - ERROR - Fail to compute expression: > AD.getAccountExpires(return_maxleavingdate(srcBean.getDatasetFirstValueById("description")),"yyyyMMdd") > on id=uid=utest002,ou=people,dc=univ-psl,dc=fr > Reason: javax.script.ScriptException: sun.org.mozilla.javascript.EcmaError: > TypeError: Cannot find function filter in object {ARRIVALDATE}20180101. > (<Unknown source>#13) in <Unknown source> at line number 13 > févr. 05 14:06:58 - ERROR - Error while synchronizing ID {uid=utest002}: > org.lsc.exception.LscServiceException: javax.script.ScriptException: > sun.org.mozilla.javascript.EcmaError: TypeError: Cannot find function filter > in object {ARRIVALDATE}20180101. (<Unknown source>#13) in <Unknown source> at > line number 13 > > Like you said it’s look like my function received a value and not an array…. > This is my lsc.xml syntax ? > > Maybe i had to delete <![CDATA[ > > i try > > >> Le 5 févr. 2018 à 14:18, Soisik Froger <[email protected]> >> a écrit : >> >> On 05/02/2018 13:47, Vincent LEPETIT wrote: >>> Reason: javax.script.ScriptException: sun.org.mozilla.javascript.EcmaError: >>> TypeError: Cannot find function filter in object {LEAVINGDATE}20180502. >>> (<Unknown source>#11) in <Unknown source> at line number 11 >>> févr. 05 13:34:33 - ERROR - Error while synchronizing ID {uid=utest002}: >>> org.lsc.exception.LscServiceException: javax.script.ScriptException: >>> sun.org.mozilla.javascript.EcmaError: TypeError: Cannot find function >>> filter in object {LEAVINGDATE}20180502. (<Unknown source>#11) in <Unknown >>> source> at line number 11 >> My guess is this is a single valued descrition, and your function receives a >> string instead of array. >> >> -- >> Soisik >> _______________________________________________________________ >> Ldap Synchronization Connector (LSC) - http://lsc-project.org >> >> lsc-users mailing list >> [email protected] >> https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users > > _______________________________________________________________ > Ldap Synchronization Connector (LSC) - http://lsc-project.org > > lsc-users mailing list > [email protected] > https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users _______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] https://lists.lsc-project.org/cgi-bin/mailman/listinfo/lsc-users

