Troubleshooting
Problem
YFC0004: Invalid Date Format error seen in the Line Availability screen.
Symptom
Environment:
Foundation 8.0
nWMS PCA 8.0
Issue description:
An 'Invalid Date Format' error is seen while launching the Line Availability screen.
This error is noticed because the "LastDate" data type in the yfsdatatypemap.xml is set to "Date". This is the cause for the issue.
<Error ErrorCode="YFC0004" ErrorDescription="Invalid Date Format" ErrorRelatedMoreInfo="">
<Attribute Name="ErrorCode" Value="YFC0004"/>
<Attribute Name="ErrorDescription" Value="Invalid Date Format"/>
<Attribute Name="ErrorRelatedMoreInfo" Value=""/>
<Stack>com.yantra.yfc.util.YFCException
at com.yantra.yfc.util.YFCDate.setDate(YFCDate.java:253)
at com.yantra.yfc.util.YFCDate.<init>(YFCDate.java:168)
at com.yantra.yfc.util.YFCDate.getYFCDate(YFCDate.java:617)
at com.yantra.yfc.ui.backend.util.LocalizedXMLPeon.getValue(LocalizedXMLPeon.java:83)
at com.yantra.yfc.ui.backend.util.Util.resolveAndEscapeValue(Util.java:123)
at com.yantra.yfc.ui.backend.util.Util.resolveValue(Util.java:119)
at com.ibm._jsp._timelineview.getValue(_timelineview.java:122)
at com.ibm._jsp._timelineview.getValue(_timelineview.java:73)
at com.ibm._jsp._timelineview._jspService(_timelineview.java:2227) (truncated stack trace)
Resolving The Problem
Pre-condition:
The workaround is applicable only if the nWMS PCA ARE Activity Based functionality is not being used.
Solution:
The solution is to comment out the "LastDate" data type in the yfsdatatypemap.xml (which can be found in the <INSTALL_DIR>/repository/xapi/template/merged/resource folder). Rebuild the resources.jar and also rebuild and redeploy the EAR to resolve the exception.
Historical Number
NFX6916
Product Synonym
[<p><b>]Function Area[</b><p>];Line Availability Console Screen;[<p><b>]Escalation ID[</b><p>];00047049;[<p><b>]Severity[</b><p>];Normal
Was this topic helpful?
Document Information
Modified date:
11 February 2020
UID
swg21554558