Issue with Date Formats Variable

Hello Everyone,

I have problem when using the date format functionality in Actions Library. May I know if I choose anything incorrectly?

–Error Log–
Error executing DateFormatAction
com.workfusion.studio.rpa.recorder.playback.PlaybackException: Error executing TemplateAction[templateName=DateFormatAction.ftl,id=16,name=Optional[DateFormatAction],parent=-1,arguments=ActionArguments[outputLocale=[en],input=[7:33:06 AM],outputMask=[h:mm a],delay=[0],timeoutMs=[10000],inputLocale=[en],xsi:type=[recorder:DateFormatAction, recorder:DateFormatAction],pollingInterval=[300],active=[true],inputMask=[h:mm:ss a],awaitTimeout=[5000],direction=[STRING_TO_STRING]]]
at com.workfusion.studio.rpa.recorder.playback.flow.StandardControlFlow.execute(StandardControlFlow.java:54)
at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:28)
at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:15)
at com.workfusion.studio.rpa.recorder.playback.player.ActionPlayer.next(ActionPlayer.java:81)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.playNextAction(PlaybackLogic.java:154)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:112)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: Unable to process template with name: DateFormatAction.ftl
at com.workfusion.studio.rpa.recorder.freemarker.FreemarkerTemplateProcessor.process(FreemarkerTemplateProcessor.java:95)
at com.workfusion.studio.rpa.recorder.playback.ActionTemplate.process(ActionTemplate.java:42)
at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.executeBehavior(TemplateAction.java:33)
at com.workfusion.studio.rpa.recorder.playback.flow.StandardControlFlow.execute(StandardControlFlow.java:46)
at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:28)
at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:15)
at com.workfusion.studio.rpa.recorder.playback.player.ActionPlayer.next(ActionPlayer.java:81)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.playNextAction(PlaybackLogic.java:154)
at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:112)
at java.lang.Thread.run(Thread.java:745)
Caused by: freemarker.core.InvalidReferenceException: The following has evaluated to null or missing:
==> targetVariable [in template “DateFormatAction.ftl” at line 4, column 7]


Tip: If the failing expression is known to be legally refer to something that’s sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??


FTL stack trace ("~" means nesting-related):
- Failed at: ${targetVariable} [in template “DateFormatAction.ftl” at line 4, column 5]

  at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:131)
  at freemarker.core.EvalUtil.coerceModelToString(EvalUtil.java:355)
  at freemarker.core.Expression.evalAndCoerceToString(Expression.java:82)
  at freemarker.core.DollarVariable.accept(DollarVariable.java:41)
  at freemarker.core.Environment.visit(Environment.java:324)
  at freemarker.core.MixedContent.accept(MixedContent.java:54)
  at freemarker.core.Environment.visitByHiddingParent(Environment.java:345)
  at freemarker.core.IfBlock.accept(IfBlock.java:48)
  at freemarker.core.Environment.visit(Environment.java:324)
  at freemarker.core.MixedContent.accept(MixedContent.java:54)
  at freemarker.core.Environment.visit(Environment.java:324)
  at freemarker.core.Environment.process(Environment.java:302)
  at freemarker.template.Template.process(Template.java:325)
  at com.workfusion.studio.rpa.recorder.freemarker.FreemarkerTemplateProcessor.process(FreemarkerTemplateProcessor.java:84)
  at com.workfusion.studio.rpa.recorder.playback.ActionTemplate.process(ActionTemplate.java:42)
  at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.executeBehavior(TemplateAction.java:33)
  at com.workfusion.studio.rpa.recorder.playback.flow.StandardControlFlow.execute(StandardControlFlow.java:46)
  at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:28)
  at com.workfusion.studio.rpa.recorder.playback.action.template.TemplateAction.execute(TemplateAction.java:15)
  at com.workfusion.studio.rpa.recorder.playback.player.ActionPlayer.next(ActionPlayer.java:81)
  at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.playNextAction(PlaybackLogic.java:154)
  at com.workfusion.studio.rpa.recorder.player.PlaybackLogic.run(PlaybackLogic.java:112)
  at java.lang.Thread.run(Thread.java:745)

@Yellow looks like you need to select the output variable.

Actually I did