cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to get value

Former Member
0 Kudos

Hi

My structure is like this

Customer

-


Name

-


Emp_Number

-


State

My condition is like this, if state is less than 25, it should have the value in target and state field should be created. If it's greater than 25 then it should not be created at all.

If the state is greater than 25, then I don't have to create it in target. Target structure also same. I used createif, when it is greater than 25, I don't get it. But when it is less than 25, I get the state created but the value is not copied.

State Constant(25) less createif state

This is the logic that I used. Everything works but when the value is less than 25, state is created in target but the value is not displayed.

The occurence is 1...1 at source and 0..1 at target for this field.

Can someone help me with this ?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

There can be multiple ways to do this.

Try this:

State Constant(25) greater-> If then else condition -> state

Input to "Then" condition:

Constatnt(put value 0) -> CreateIf.

Input to Else condition:

State(source)

Thanks

Amit

Former Member
0 Kudos

What's the input to if condition in the ifthenelse block ?

Former Member
0 Kudos

Yes, it works now.

Thanks Amit and Raja

Former Member
0 Kudos

Its working but can you explain to me the logic in this step

Constatnt(put value 0) -> CreateIf.

Input to Else condition:

Thanks

Answers (1)

Answers (1)

rajasekhar_reddy14
Active Contributor
0 Kudos

> State Constant(25) less createif state

>

> This is the logic that I used. Everything works but when the value is less than 25, state is created in target but the value is not displayed.

>

> The occurence is 1...1 at source and 0..1 at target for this field.

>

> Can someone help me with this ?

Hi Ajith,

Paste your mapping logic how you have done,

I think you missed passing the value like you creating target element when state value less than 25,but you have to pass the value from source filed.

Regards,

Raj

Former Member
0 Kudos

State Constant(25) less createif state

rajasekhar_reddy14
Active Contributor
0 Kudos

Hi Ajith,

No need to write separate logic for bothe condition use if the else conditions it will work

Just follow the logic amit replied.still issue let me know will give you the logic.

Regards,

Raj