Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 83469

formatDateTime function

$
0
0
I have a strange issue with this function. When I run the microflow with the debugger I don’t get error messages: formatDateTimeUTC($DS_GetAnalysis_by_URL_Table/ANALYSIS_RUNTIME, 'yyyy-MM-dd HH:mm:ss') When I get to the page and widget that calls the microflow I receive the following error: Caused by: com.mendix.modules.microflowengine.MicroflowException: Failed to evaluate expression, error occurred on line 1, character 1 formatDateTimeUTC($DS_COLUMN_ANALYSIS/ANALYSIS_RUNTIME, 'yyyy-MM-dd HH:mm:ss') ^     at SmartStreams.Get_SimpleStatistics_IndName (CreateOrChangeVariable : 'Create String variable') Advanced stacktrace:     at com.mendix.languages.mxexpressions.MxExpression.evaluate(MxExpression.scala:26) Caused by: com.mendix.languages.expressions.ExpressionException: com.mendix.systemwideinterfaces.MendixRuntimeException: Unsupported number of parameters: 2     at com.mendix.languages.expressions.Expr.evaluate(Expr.java:22) I did several tests and I found that when I get the error when using the variable from the database : $DS_GetAnalysis_by_URL_Table/ANALYSIS_RUNTIME. If I replace this variable with the system variable [%CurrentDateTime%] I don’t get the error. I suspected that it may be a format difference between the values of the two variables but they look exactly the same. More than that although I get the error message and window the function works and returns the right value after clicking Cancel. In the Studio debugger, the two variables have identical format/pattern as date and string data types. . It looks like a bug to me. Please assist.   Regards, Costin Marzea  

Viewing all articles
Browse latest Browse all 83469

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>