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?

13 REPLIES 13

@Momiji 

so what script did you use?

You can grab the row number in onBefore transform script using source object

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

I tried the script given by @M Iftikhar but it still throws the error. This was the first script I use:

if(source.sys_import_row == 0){
     ignore = true;
}

I think I know why. Because in @M Iftikhar sample excel, there's still data on the coalesce field from the ignored row. I tried replicating this in the PDI and the error is not showing anymore.

tejas1111
Tera Contributor

Yes, this is expected behavior.

When you use an onBefore Transform Script and try to “ignore” a row, the platform has already tried to resolve the target record using the coalesce fields. If the coalesce value is missing, ServiceNow logs error 800 (Unable to resolve target record, coalesce values not present) even if your script later decides to skip.

Ways to handle it cleanly:

Best option: Add a Transform Map Condition → e.g., source.<coalesce_field> is not empty. That way, the instruction row never even enters the transform process, so no error gets raised.

Alternative: Clean the source file → remove instruction rows before uploading.

Script-based workaround (not ideal) → In onBefore you can set ignore = true; (older versions: action.setAbort();) but even then the coalesce error may still show, depending on release.