on 08-02-2007 10:29 PM
Hi All,
I have a scenario where I am performing message mapping on two interfaces which have many mandatory fields. But when I don't pass any values in the source message for the mandatory fields the mapping still works properly showing no error. I want mapping to show error when mandatory fields are not passed. please advice.
Venki
Mandatory complex types in target message DO NOT have to be mapped. They wiill by default be created on the output structure if their parent nodes exist.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If You Specified a Field as Mandatory Field Means U Have to do the Mapping in the Mapping Editor.That is Compulsary mapp Field there
If U Didn't Specified a Field as Mandatory Field means there is no need of Mapping to that field to the Target Field .
Here Mandatory Field in the sense that Field Should be Mapped to the Target
Then only it Will give the Failure in the Mapping
Reward points If Helpful
Regards
Khanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi venkatesh,
The mapping will only fail if the mandatory fields are elements in the message.
You can determine this in the mapping editor. If you remove the mapping for a destination field and it then changes colour from green to red, then means it will fail in reality if no value is mapped to it.
Mandatory fields do not need to be mapped if they are complex types (parent nodes of other fields).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Sedamkar,
If it is mandatory field then you should always have the field occurrence as 1..1. I think in your mapping it is either 0..1 or 0..unbdounded. So that is the reason why it is not failing. So please change the occurrence to 1..1 and dont send the value in the file. Then it will definitely throw an error.
Regards,
---Satish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey
are u testing the mapping under test tab in Message mapping or in an end to end scenario?
Thanx
Aamir
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Satish
I guess what Ahamd / Aamir ( not sure why a dual personality here ) is that when you test the message from the test tool in the mapping editor, you need to delete the node manually else the node is <> </> which implies the note exists and maybe one reason why there is no error.
Regards
Bhavesh
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
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.