formatDate() function error?

0
Hello Mendix ,     In my app, I was trying to use formatDate() function in a microflow.     The issue is while running the microflow its throwing an error (I've attached the screenshot of the stacktrace).     But I'm getting the desired result from the mocroflow, strange.
asked
4 answers
0

Hi Ramachandiran,

I’m not sure why you get the error with the format() function.

But the work around for that could be,

Extract the activity where u use the function into a submicroflow.

And give a error handling type continue for the submicroflow.

Since you stated that you are getting the desired output, this would only avoid the error being thrown at the client side.

answered
1

Hi Ramachandhiran,

Add a clause to check for empty values as well, as the function will throw exception if the date passed is empty

answered
0

You might want to check if the Chat_Owner_Account object exists.

answered
0

The stacktrace is missing the most important part, that were the error is explained. 

But I think Prashant is right in his comment, there should be empty checks. 

answered