Flat File Schema Wizard with restriction upto 80 characters per row
hi,
i have create target flat file schema purchase order using wizard, consists of header, body & footer.
the requirement consists of below mentioned things:
- each row must consist of 80 characters only.
- also, major content in file positional.
- in body part, "+" symbol has been used delimiter.
do exact idea of how file looks, please click on url here: https://github.com/gizur/gizurcloud/wiki/system_documentation%23client%23cikab%23sales-order-export
actual file description mentioned along positional details.
in url, detailed explanation of file present, "set file specification".
please let me know how can proceed this.
thanks in advance.
hi abdul,
this can solved following approach,
1) create flat file using flat file wizard considering set file having 1 record. header, detail records , footer in 1 single file. take sample file given in reference link , open in notepad++, join lines. please make sure verify final file specification position per spec. understand, after header, there detail record.there no + symbol before detail record , after have 6 detail records separated + , repeating record (189 type) , footer.
2)you need run flat file wizard , give input file created in step 1. select complete line , split delimiter (+). first detail record under header there no + sign.you need define fields under header , first detail record positions.
3)repeat other detail records , footer. have flat file schema. make sure validate schema against instance , generate new instance , check if matches flat file input.
4) create custom pipeline component add after flat file assembler pipeline component in send pipeline.
this custom component should split file after 80 characters. need add "\r\n" after every 80 chars final output per requirement. can stream way without making whole process memory intensive.
regards,
sajith c p nair
BizTalk Server > BizTalk Server General
Comments
Post a Comment