on 02-13-2013 6:14 PM
Hi Experts,
i working on file to proxy scenario, where in i have the requirement of checking the mandatory fields in the file and then process the file, so here my question is for example i have 10 records in the file and in one of the records the mandatory field data is missing but other records have the proper data,so here is it possible to process the other 9 records and ignore the 1 record with error.
Thanks in advance,
Regards,
Pooja
Hi Pooja,
First of all, if you define occurrence 1-1 in Message Type of the Source Structure / XSD has 1-1 occurrence but you are not performing any XML Validation by Adapter Engine / Integration Engine, it will not fail. The whole message will be available in Message Mapping and you can easily check whether the Field occurred in the Source message, pass all the 9 records, don't populate the Record at Target Structure which does not have mandatory field at Source Structure.
If you are performing XML Validation, then the whole message will fail. In that case you don't have any other option but send each Record as a separate message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Pooja,
Please find the below blog for more information about exists and createIf functions.
http://scn.sap.com/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-part-ii
Hi Nabendu,
Thanks for the link, i tired to keep the source XSD 1..1 and then used the graphical functions to check on validation for mandatory fields, i see that even the records with empty fields is successfully processed.
Graphical Mapping
Source --->exists(Function)---->createIf(Function)----->target
Thanks,
Pooja
Hi Pooja,
The above logic will work for Target Nodes, not for Target fields. try with:
Source Field / Source Node --> exists --> createIf --> Target Node
Source Field ---> Target Field (1-1 mapping, you can have any other logic if you want to transform data)
Also check Source Field is coming with blank value or not.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.