on 04-30-2007 6:36 AM
Hi,
My flat fille has 3 fields. Mentined fixed lengths as 10,10,5.
And my flat file has below content.
==========================
Smarty Sweet 85014
Smartya Sweetya 85014
==========================
In my output file i am getting first two fields correct. ZIP code i am getting only 850 instead 85014.
File has content like (10 characters including blanks) space (10 characters including blanks) blankspace (5 characters).
Thanks
Narayana
Hi Narayana,
Just check these links... it may help you
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter (Fixed lenght )
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion (Field Separator )
Introduction to simple (File-XI-File) scenario and complete walk through for starters /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
Introduction to (File-XI-File) scenario and complete walk through for starters /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
Sachin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Narayna,
Can you please send the flat file you are using to my ID amitanshudeep@gmail.com.
field.FixedLengths should work for this.
Thanks
Amitanshu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The parameter fieldFixedLength is madatory if you do not provide the parameter fieldSeparator.
Provide the fieldFixedLength parameter as early and include the parameter fieldContentFormatting with value nothing.
Also, give us the parameters you have used now.
Regards,
Jai Shankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey
try by removing the fieldFixedlength parameter
thanx
ahmad
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ahmad,
I got below problem after deleting fixedLength.
====================================
Sender Adapter v2307 for Party '', Service 'BS_KIRKLAND':
Configured at 2007-04-30 01:53:54 EDT
History:
- 2007-04-30 01:53:54 EDT: Error: Conversion initialization failed: Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found:
Parameter 'Address.fieldFixedLengths' or 'Address.fieldSeparator' is missing
Consistency check: no. of arguments in 'Address.fieldFixedLength' does not match 'Address.fieldNames' (0 <> 3)
============================
Looks like Fixed length attribute is mandatory.
Thanks
Narayana
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.