Skip to Content
avatar image
Former Member

USER DEFIND FUNCTION(UDF) ERROR

I have a scenario, using UDF I need to get the current date subtract 1

have some screenshot that I tried it show some error

can any tell how I fix it

1.png (21.3 kB)
2.png (25.8 kB)
3.png (15.2 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Nov 28, 2017 at 03:27 PM

    Hi Manohar,

    Your UDF does not return any result as the return statement is missing. Therefore, no value can be assigned to your target node.

    Regards,

    Patrick

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Nov 29, 2017 at 07:24 PM

    Hi Manohar,

    Try using result.add() statement.

    Add comment
    10|10000 characters needed characters exceeded