Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Data in target file is not updating - new record created when it shouldn't

Kirsten2
Tera Contributor

I have a xls file with columns and data loaded in to an import set table:

 

Kirsten2_0-1758588722941.png

 

 

I then transform using TMap with mapped fields. Purchasing Document is a unique field so coalesce is true.

 

Kirsten2_1-1758588722944.png

 

 

After Transform I check the ast_contract and a new record is created instead of updating the existing record. The Contract Number is the PO# and is unique in the xls and import file.  The first record is the one that was created when it should have been the second record updated. Also, the first record was created without the PO# even though it is in the import file.

 

Kirsten2_2-1758588722946.png

 

 

What have I missed? Thank you!

6 REPLIES 6

The PO# in ast_contract and the import file is string. In the excel that field is General.

Kirsten2_0-1758666734637.png

 

Ankur Bawiskar
Tera Patron
Tera Patron

@Kirsten2 

share your field map screenshots.

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