Original Message:
Sent: Mon December 09, 2024 12:13 PM
From: Kishan Kumar
Subject: DMNLiteralExpressionEvaluator Error
Hi Tibor,
The issue you're facing appears to involve an error in evaluating a DMN literal expression. The error message indicates a problem with the parameter from in the date() or years and months duration() functions, particularly involving XML Schema compliance.
Error Details:
- The error states: "The parameter 'from', in function
date() or years and months duration(), is not compliant with XML Schema Part 2 Datatypes." - This typically means that the input value passed to the
date() function does not match the expected format (YYYY-MM-DD).
Other logic
Note - With this logic same error getting

Debugging Steps:
- Test the DMN model directly in the Swagger-UI with inputs, we are getting excepted output.


------------------------------
Kishan Kumar
Original Message:
Sent: Thu November 28, 2024 10:48 AM
From: Tibor Zimányi
Subject: DMNLiteralExpressionEvaluator Error
Hi Kishan,
I think these problems may be caused by type mismatches. However to better know, it would be great, if you could provide a short DMN file, with which the problem could be reproduced. When having such file, I could try to reproduce the problem and see, what could be causing it.
Example - the date() function requires a date string as a parameter (1). However, I see you have getDOB defined as Any, so it is not clear, that it contains strings all the time.
Best regards,
Tibor
(1) https://kiegroup.github.io/dmn-feel-handbook/#date-from-string
------------------------------
Tibor Zimányi
Original Message:
Sent: Thu November 28, 2024 10:34 AM
From: Kishan Kumar
Subject: DMNLiteralExpressionEvaluator Error
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
------------------------------