on 06-06-2012 2:57 PM
Dear Experts,
I am stuck in a mapping situation as explained below and need your help for resolution.
Mapping in contention is as shown below :
As per this mapping the Substring should throw 3 character word and in fix value mapping it is getting displayed correctly. The fix value mapping is as shown below:
queue result of Substring function in mapping :
Queue Result for Fix Value mapping :
Till this point every thing looks fine but when I clicked on the Queue of the Target field it throws out the error as:
Here it clearly shows that output of the key in fix value mapping is null, which contradicts the result of fix value mapping queue.
Please let me know if any one else has faced this issue before or if you have any idea for the resolution of this issue.
Thanks and Regards,
Sudhir Kumar
You can easilyu find the issue, PR_ not maintained in the Fix value list hence it is thowring an error.
this kind os situation you have 3 options
1)Throwing an exception
2)sending default value.
3)Maintain key and value for PR_
decision is up to you.
Regards,
Raj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Raja,
Thanks for your help. I tried out this logic but surprisingly the queue result for Map by default is as shown below :
and consequently it is throwing error in substring fuction as
"
Exception:[java.lang.StringIndexOutOfBoundsException: String index out of range: 3] in class com.sap.aii.mappingtool.flib7.TextFunctions method substring[, 0, 3, com.sap.aii.mappingtool.tf7.rt.Context@5368bf52]"
Best Regards,
Sudhir
Just Few cents... This is mere data discrepancy issue. I would recommend to sync/update the fix value records always. This problem could populate always with different values that comes from sender side... You might get a different string in the future like this. Go with atleast default value to take care this issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
When you check the Fix Values settings, what is your setting for Behaviour if Lookup Fails? If you are using Throw Exception, try changing it to one of the other options and see what happens.
Regards,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sudhir,
Hope i have understand the requirement correctly/
As shown above in the screen shots of Fixed value mapping
there are only three keys
1) SA_
2) FA_
3) IT_
but the output of the sub string function resulting PR_
which is not present in the Fixed value mapping as a key
try to maintain the key value pair in fixed value mapping for
key = PR_
value = Procurement
so when ever the sub string results the output as PR_ then Procurement will be passed to the Target element.
Thanks
Sai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.