The Zurich release has arrived! Interested in new features and functionalities? Click here for more

ignore row but with error code 800 Unable to resolve target record, coalesce values not present

Momiji
Tera Contributor

In the excel to be imported, I want to ignore the whole row after the header row (only contains instructions).

I tried doing an onBefore script to ignore the row, but the error still appeared. Is this an expected behavior?

12 REPLIES 12

@Momiji 

if you are not using then delete that row manually and then load.

you can specify in the data source what should the header row but in your case it will not create the columns as those are at row 2

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

The requirement is from the client. Is it still possible to retain the row without the error showing?

@Momiji ,

It's working now let me share the code. For testing I updated short description of Incident table.

Sample Excel I created as per your requirement.

MIftikhar_0-1758633180254.png

In your data source change header to 2.

MIftikhar_1-1758633235447.png

Now in your On before transform map add code as follows:

MIftikhar_2-1758633306989.png

MIftikhar_3-1758633353830.png

You can clearly see 1st row was ignored and 2 incident records were updated.

MIftikhar_4-1758633399880.pngMIftikhar_5-1758633415400.png

 

Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution and helpful so others can benefit as well.

 

thanks for this but it doesn't work on my end

I tried it in the PDI but still get the error. Did I miss a step?