on 05-21-2008 9:47 AM
Hallo all,
we have the following problem.
we implemented a scenario as sown in this blog
/people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
but there is a problem.
If the file structure is declared as :
Header,1,Items,*
then the adapter does not even read the file from the directory (so I assume that for some reason the file structure is not as expected).
If on the other had the structured is declared as :
Header,1,Items,3
everything works.
Obviously though, this is not satisfying since we need variable cardinalities.
Any suggestions and help is appreciated
Thank you .
Thank you all very much, the question was finally answered here :
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
anyone?
could it be a service pack issue ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I should probably mention that it also works with multiple records, as long as i have fixed cardinality for the items
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, there is a rroot element, although probably not needed.
Yet we have also used the ignoreRecordsetName=true directive because I don't want it to show in the produced structure
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well, I will write the main tests we tried, in case that the situation could be cleared :
I have a specific file in a standard directory, called xi_input. The file is edited straight into that directory, so there can't be filename errors etc.
If the file is left empty :
Nothing happens . No message of any kind in sxmb_moni/monitoring xml messages .
If the file contains the following (data is random) , where 'H' is the key for the header and 'I' is the key for the items :
H 20060403 16 3 316001 kapou lalla morellala 20060403 F3 23
I 277101010 2
I 277101011 3
I 277101012 4
There are to cases :
if the file structure is declared as :
Header,1,Items,*
Then nothing happens .
If on the other had the structured is declared as :
Header,1,Items,3
everything works .
I guess there is now a more clear picture of the problem.
As for whether the file adapter does care about the file contents or not, I think that if the Message Protocol is "Message Content Conversion", then it does check the structure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
then the adapter does not even read the file from the directory (so I assume that for some reason the file structure is not as expected).
File adapter is unable to perform field level validations. it will perform only file level validations.
Like name of the file and source Path of the file.
Field level validations are performed on message mappings.
Header, 1, Items, *
And the structure u declare is correct.
Please check your file name and source path when u gave that structure.
Note: u can check without giving any data in your file with the same name and path that specify in sender file adapter.
Regards,
Pradeep A.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi, I guess you mean this :
Header :
keyfield,CreationDate,CentralCustomerCode,CustomerCode,ReferenceDocumentNumber,DeliveryPlace,Message,ReturnMessage,DeliveryDate,SalesmanCode,Rest
Items :
keyfield,Material,Quantity
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Markos,
What is your source structure????
Regards,
Sanjeev.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.