cancel
Showing results for 
Search instead for 
Did you mean: 

Assignment

Former Member
0 Kudos

MDM Experts,

I am new to MDM. I need to create a assignment. The rerquirement is

If field "A" is empty and field "B" is empty, then copy value of field "C" in to field "B", If field "A" and field "B" are not empty then keep the value of field "B".

These are all Main table records.

I tried this and did not work.

IF(IS_NULL(A AND B), C, B)

And table field = B

thank you

Dan

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dan,

your assignment works fine with me. Where did you get the error? When you close the assignment editor or when you execute the assignment? Make sure that you use the drop-down menus in assignment editor to create your expression. Also make sue that all fields are text or integer fields.

Christian

Former Member
0 Kudos

Hi,

Thanks for your input.

All fields are Text fields. The error occurs when I execute the Assignment.

If I use string instead of field then it works fine. For example

IF(IS_NULL(A AND B), "Success", B)

Regards,

Dan

Former Member
0 Kudos

Could it be the length of the field, that the content of C does not fit into B? Could you create a test assignment that simply contains "C" and the target field as B to test it?

Christian

Former Member
0 Kudos

Hi,

If I use following expression, it works.

IF(Is_Null(A) AND Is_Null(B), C, B).

Thank you for your help.

DAN

Answers (4)

Answers (4)

Former Member
0 Kudos

thanks

Former Member
0 Kudos

Thanks

Former Member
0 Kudos

Thank you

Former Member
0 Kudos

Thank you.

The lenght was the error.