Hi Experts, I have a requiremnet to fail the mapping if value mapping lookup (standard valuemapping) fails...
For example
vendor --111 --valuemaplookup to aaa ---target =aaa
if vendor 222 does not have value defined in value map table it has to fail the mapping...I am not sure its not working its outputting 222 in the target , any idea whats the cause.
Regards
Ravikiran
Request clarification before answering.
create a UDF for this lookup and for not required values, throw exception using throws statement.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ravikiran,
@RAJEEV GUPTA: UDF is not required here, standard configuration of Value Mapping function can be used.
The solution is: when you double-click the Value Mapping function, a configuration popup appears. You can choose the expected behavior when the lookup fails: Use Key (which is the default and apparently is used in your case), Use Default Value and Throw Exception. You should use the last one in your case. See below:
Hope this helps,
Greg
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.