Customer Portal

Problem treating "" as null

Comments 8

  • Avatar
    oldforum
    0
    Comment actions Permalink
    is there an estimate for when the next release will be out, even if it is a beta I would like to know how soon?
  • Avatar
    oldforum
    0
    Comment actions Permalink
    i switch to CloverETL version 2.1.3 and tested both the nvl(arg, default) and the iff(condition, falseValue, trueValue) functions and both still have problems with having "" as one of the arguments

    here is the error:

    ERROR [WatchDog] - Node Transformation finished with status: ERROR caused by: Interpreter runtime exception on line 9 column 164 : add - NULL value not allowed
    arg[0] null "!! NULL !!"
    arg[1] java.lang.StringBuilder "AllenTEST"

    DEBUG [WatchDog] - Node Transformation error details:
    org.jetel.interpreter.TransformLangExecutorRuntimeException: Interpreter runtime exception on line 9 column 164 : add - NULL value not allowed
    arg[0] null "!! NULL !!"
    arg[1] java.lang.StringBuilder "AllenTEST"

    at org.jetel.interpreter.TransformLangExecutor.visit(TransformLangExecutor.java:397)
    at org.jetel.interpreter.node.CLVFAddNode.jjtAccept(CLVFAddNode.java:19)
    at org.jetel.interpreter.TransformLangExecutor.visit(TransformLangExecutor.java:390)
    at org.jetel.interpreter.node.CLVFAddNode.jjtAccept(CLVFAddNode.java:19)
    at org.jetel.interpreter.TransformLangExecutor.visit(TransformLangExecutor.java:1634)
    at org.jetel.interpreter.node.CLVFMapping.jjtAccept(CLVFMapping.java:32)
    at org.jetel.interpreter.TransformLangExecutor.executeFunction(TransformLangExecutor.java:1731)
    at org.jetel.component.WrapperTL.executePreparedFunction(WrapperTL.java:325)
    at org.jetel.component.RecordTransformTL.transform(RecordTransformTL.java:91)
    at org.jetel.component.Reformat.execute(Reformat.java:191)
    at org.jetel.graph.Node.run(Node.java:364)
    at java.lang.Thread.run(Unknown Source)
  • Avatar
    oldforum
    0
    Comment actions Permalink
    Please, try it in latest release 2.1.3 and let me know if described issue persists. Then we could do our inner tests based on your description.

    Best regards, Martin.
  • Avatar
    oldforum
    0
    Comment actions Permalink
    New release will be next week probably (at least beta version)
  • Avatar
    oldforum
    0
    Comment actions Permalink
    I think you solved your issue in proper way. Can I ask you what engine version are you using? Inner transformation language now coming through big modification...

    Martin
  • Avatar
    oldforum
    0
    Comment actions Permalink
    I am using clover version 2.1.2 I did not update to 2.1.3 because the patch notes did not seem to apply to what i was working on since i dont have null numbers or use the switch statement. Is your fix in 2.1.3 or in the next update?
  • Avatar
    oldforum
    0
    Comment actions Permalink
    Hi,
    the problem was found and fixed. Correct version is in svn and will be included in next release.
    Agata
  • Avatar
    oldforum
    0
    Comment actions Permalink
    Hi,
    this should work as you need:
    function fullName(firstName,lastName,suffix){
    string tmp = "";
    string result;
    if (not isnull(firstName) and not isnull(lastName)) tmp=" ";
    result = concat(s1,tmp,s2);
    tmp = "";
    if (not isnull(result) and not isnull(suffix)) tmp=" ";
    result=concat(result,tmp,s3);
    return result
    }

    Agata

Please sign in to leave a comment.