Field mapping

Aniket Shukla
Tera Contributor

how to overcome the error "An existing map to this target field already exists", but i am mapping to two different fields like:

  • purchase_order_line

  • purchase_order_line.short_description

1 ACCEPTED SOLUTION

Muhammad Salar
Giga Sage

Hi,
The error is occurring because the same target field is being used in two mappings. While the target field is the same, only the reference value field name differs.

The reference value field name is used for target reference fields to indicate which field from the source should be matched, for example, the 'name' field in your reference field's table.

To resolve the issue, ensure that only one mapping is created for this target field.

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

@Aniket Shukla 

you have only 1 transform map and you want to set 2 target fields with same source value?

If yes then system is blocking you?

If yes then why not use onBefore transform script for the 2nd field like this

target.fieldName = source.u_fieldname;

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

@Aniket Shukla 

the second field seems to be a dot walked field

share screenshots.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

Aniket Shukla
Tera Contributor

AniketShukla_0-1747813206019.png

 

@Aniket Shukla 

which are the other field maps?

Did you check any other field map already exist for the same target field?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader