What is the supported IDL pattern or UI configuration for conditionally omitting a date field in an expression?
Originally posted by Barbara Buchanan on May 21, 2026 at 4:59 PM.
What is the supported IDL pattern or UI configuration for conditionally omitting a date field in an expression?
I am working on an inbound integration with multiple levels of mapping for a 401(k) loan import that will import as an EmployeeElectionImport. In the source file, if the "Status" is "Z", then the employee's loan deduction needs an end date. Otherwise, the EffectiveEndDate can be omitted. I have tried multiple ways to configure this condition but continue to get the error: Cannot format arbitrary string in param 'date'. Check that string is a valid Date/Time and that the data type is Date. String value: \"2026-05-21\"\n>>> EffectiveEndDate = format_date(vars([now(), (srcLoanRecord?.Status? ?? nil)], (enddate, status) => if (((status? ?? nil) ?? nil) =~ \"Z\") {",
It seems to get caught up somewhere in the omitting of the field that is formatted as a date.
Using conditional mapping, I have tried:

Which produces an IDL expression:

I have tried writing an expression for the field, the most recent iteration being:

Any thoughts? Suggestions? Thank you so much!
