Archive for February, 2006

De-referencing ARRAYS with no values on target …. A complete loop could be skipped in the output

Friday, February 3rd, 2006

Sometimes if ARRAYS are being de-referenced on the target and if the last ARRAY doesn't have a value, then that loop might not appear in the output. To avoid the problem, always have another condition which will always work or another assignment where there is always a value.

Output file is not created in the appl directory if $X12MsgInTestName has a path setup like this – b/TESTMAP

Friday, February 3rd, 2006

Output file is not created in the appl directory for Inbound translations if X12MsgInTestName (network filename in the inbound tab) has a path like b/TESTMAP. Just TESTMAP is good enough because the sysappl path is automatically attached. You will typically get error messages like these: 1 ...

To extract the last x characters in a string or a number

Friday, February 3rd, 2006

Always use this principle to get the last x characters: VAR->lastxcharacters = STRSUBS(VAR->lastxcharacters,x-1,STRLEN(VAR->lastxcharacters))

AI tries to read the source file again when one intends to parse the target

Friday, February 3rd, 2006

AI tries to read the source file from where it left off when one expects AI to parse the target, if the declaration in .att file is mentioned as S_MODEL and S_ACCESS instead of T_MODEL and T_ACCESS. This might happen in rare scenario when somebody is trying to create the attachments ...

Various combinations of Numeric and Date formatting

Friday, February 3rd, 2006

Run inittrans -at OTFmt.att -cs $OT_QUEUEID -tl 0 -I (on Unix) otrun -at OTFmt.att -cs $OT_QUEUEID -tl 0 -I (On windows) The output file "OTFmt.out" created in the home directory will have all the formats and respective outputs that one should expect for each kind of Date or Numeric formatting.

Map doesn’t write all records if there is DM Item used outside its definition in Target

Friday, February 3rd, 2006

If a DM Item is used outside its definition in the Target, the map will not produce the output correctly. This usually happens when you copy an existing DM items rules definition and forget to change the DM item name. This error is in AI 3.2 and it might have ...

Delimiters are not created for the enveloping segments for outbound EDI documents

Friday, February 3rd, 2006

The Delimiters are not created for the enveloping segments for outbound EDI documents when OTSrcInit is used instead of OTTrgInit on the Target model.

Missing Header and trailer segments in an outbound document

Friday, February 3rd, 2006

If an outbound map component file is directly called instead of calling it through the OTEnvlop or ESEnvlop, then the output X12 document will come out without the header and trailer segments.