Issue
When you use Date objects in a LiveCycle ES 8.2.1 orchestration after migrating from LiveCycle 7, the following exception may occur:
ALC-DSC-119-000: com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: Apr 07, 2010 of type: java.lang.String to type: class java.util.Date at com.adobe.idp.dsc.util.CoercionUtil.toDateTime(CoercionUtil.java:532) at com.adobe.idp.dsc.util.CoercionUtil.toType(CoercionUtil.java:966) at com.adobe.workflow.datatype.CoercionUtil.toType(CoercionUtil.java:168) at com.adobe.workflow.dom.VariableAttr.setBoundValue(VariableAttr.java:67) at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataValue(PATExecutionContextImpl.java:791) at com.adobe.workflow.pat.service.PATExecutionContextImpl.setProcessDataWithExpression(PATExecutionContextImpl.java:375) at com.adobe.workflow.qpac.set_value.SetValueService.execute(SetValueService.java:72) at com.adobe.workflow.engine.PEUtil.executeAction(PEUtil.java:558)
Reason
This exception occurs if you are trying to use the parseDate() or parseDateTime() functions in your XPath expressions. In LiveCycle ES, it’s not necessary to use these functions to convert Strings into Date objects. These functions cannot handle formatted date strings. For more information about the date functions, see the LiveCycle online Help: http://livedocs.adobe.com/livecycle/8.2/wb_help/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Workbench_ES&file=000812.html.
Solution
Use a direct assignment in the XPath expression to convert the String into a Date variable.
reference: (181553843/2610966)
