Hi Everyone,
I hope this message finds you well.
I am currently working on a decision model in IBM DMN Canvas and have encountered some issues while trying to extract the year from a date field. Below are the details of the problems:
1. Year Extraction Issue: While attempting to use the date(getDOB).year expression, the following error is generated:
extended_services | 2024-11-28 14:38:45,195 ERROR [org.kie.dmn.cor.ast.DMNLiteralExpressionEvaluator] (executor-thread-30) FEEL ERROR while evaluating literal expression 'date(getDOB).year': The parameter 'from', in function date(), cannot be null.
according to the error, getDOB is null but I have verified it is not null.
2. Dependency Value Error: Another error I noticed is related to the Customer dependency type:
extended_services | 2024-11-28 15:21:49,046 ERROR [org.kie.dmn.cor.imp.DMNRuntimeImpl] (executor-thread-43) Error while evaluating node 'New Decision' for dependency 'Customer': the dependency value '[{empType=string, otherDescription=string, tdsInco... [string clipped after 50 chars, total length is 3114]' is not allowed by the declared type (DMNType{ https://kie.org/dmn/_2C4DF60B-8CD3-453E-8412-173AF357EF1E : Customer })
Steps Taken:
Verified the data mappings and types for Application.requestDate and Customer.dateOfBirth.
Attached is a screenshot of the DMN canvas for your reference.
Thank you for your assistance. Please let me know if additional details are required.

------------------------------
Kishan Kumar
------------------------------