IBM Support

YIF_FILE_TRAILER_DOES_NOT_MATCH:Expectedfiletrailerid:<666>doesnotmatchfound<66>

Troubleshooting


Problem

YIF_FILE_TRAILER_DOES_NOT_MATCH:Expectedfiletrailerid:<666>doesnotmatchfound<66>

Symptom

PART: Documentation 7.0 SP2 Platform
PRODUCT: Distributed Order Management
COMPONENT: Other

2004-07-28 13:49:56,428:ERROR : YIF_FILE_TRAILER_DOES_NOT_MATCH : Expected file trailer id: <666> does not match found: <66>: HeaderTrailerChecker
2004-07-28 13:49:56,431:ERROR : File Header Trailer is not clean: OutOfTheBox_delim_input.txt: FFReceiver

Cause

Resolving The Problem

You can solve this problem, by correcting either the schema or the Inputfile.
Make the Schema Trailer Length = InputFileTrailerLength+1

For example if your Input File Trailer is
666 - make <FileTrailer FileTrailerId="666" FileTrailerStartPos="1" FileTrailerLength="4"/>
FILE_FOOTER - make <FileTrailer FileTrailerId="FILE_FOOTER" FileTrailerStartPos="1" FileTrailerLength="12"/>

This problem happens because the system reads the Schema Trailer Length L, but reads L-1 characters from the Inputfile trailer.
Yantra's out of the box example,
has a schema which expects a
File Trailer = 666
But says length L=4, so system looks for L-1 = 3 characters finds 666 and goes fine.

This logic is somehow not intuitive.
Either we need to fix the Schema so that the user can give exactly same Trailer length as the Input file trailer
in this case if railer is 666, the Schema trailer length should also be 3

or in the TextTranslator section of the Configuration guide they have to explain this L , L-1 funda clearly.

[{"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":"Not Applicable","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All","Edition":"","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Historical Number

PRI49414

Product Synonym

[<p><b>]Fact[</b><p>];

Document Information

Modified date:
16 June 2018

UID

swg21530704