Hi! I get an error with my Scheduled Event microflow after my deployment to acceptance (MF works perfectly when I run locally): 11:13:00appERRORTaskQueue: Failed to execute task 'RestApiModule.Samplers_Put()' for scheduled event 'RestApiModule.SE_Sampler_Put' from task queue 'System.ScheduledEventsQueue'. 11:13:00appcom.mendix.modules.microflowengine.MicroflowException: Failed to evaluate expression, error occurred on line 2, character 1 11:13:00appif $IteratorSampler/ExpectedStart != empty then 11:13:00appformatDateTime($IteratorSampler/TrueStart, 'yyyy-MM-dd HH:mm:ss') 11:13:00app^ 11:13:00appelse 11:13:00app'2024-01-01 12:00:00' 11:13:00appat RestApiModule.Samplers_Put.nested.63bde4aa-81d4-4663-b362-4c82b208b1cf [0 of 4408] (CreateOrChangeVariable : 'Create String variable') 11:13:00appat RestApiModule.Samplers_Put (ListLoop : '') 11:13:00appAdvanced stacktrace: 11:13:00appat com.mendix.languages.mxexpressions.MxExpressionImpl.evaluate(MxExpressionImpl.scala:32) 11:13:00appCaused by: com.mendix.languages.expressions.ExpressionException: Unsupported number of parameters: 2 11:13:00appat com.mendix.languages.expressions.Expr.evaluate(Expr.scala:16) 11:13:00appCaused by: com.mendix.systemwideinterfaces.MendixRuntimeException: Unsupported number of parameters: 2 The problem is in the "create string variable action", value-expression: if $IteratorSampler/ExpectedStart != empty then formatDateTime($IteratorSampler/ExpectedStart, 'yyyy-MM-dd HH:mm:ss') else '2024-01-01 12:00:00' Anyone an idea what is wrong and why this problem does not occur when I run locally? Kind regards, Giel
asked
Giel Smits
2 answers
1
Could it be a data issue?
You can connect a debugger to the acceptance environment and see if eg $IteratorSampler has an issue.
answered
Micha Friede
0
Okay, I fouund it... It was a formatDateTime later in the microflow, and the is-empty-check was wrong so it tried to format an empty dat-time.........