Postmap hook does not seem to be working

I am using a post map script in my NetSuite Credit memo import. I am editing the line level amount using the script. I am getting the error:

I have followed the scripting format used in the relevant Celigo docs. I am using SuiteScript 2.0.
This is my code:

Is it a problem with the format or structure?

Are you mixing up NetSuite SuiteScript hooks and Celigo JavaScript hooks?

Hi Tyler,
I have used them under Post map function

What SS version is selected on your import? Just making sure it's SS2.0 since your script is SS2.0 so these need to match.

Yes.

And I assume you have the correct file internal id specified? I'm not too sure past that, so I'd suggest a support ticket.

Ok, Thank You.
I have raised a ticket, let me see if I can get a solution there.

AFAIK a postMap suitescript should return an array, but your script is returning the options object itself:

https://docs.celigo.com/hc/en-us/articles/27548857134107-NetSuite-SuiteScript-hooks#post-map-4

It should return something like [{data:record1},{data:record2},etc].

Also you are iterating over options.data but it should be options.postMapData.

Thank You for the help.
Modifying it as you said cleared the error yet there is no change occurring on the record it’s as though the script never executed.

I would add a debug-log to log the contents of postMapData, to verify that custbodyjj_ebay_tax has a value. Then also a log when setting the amount, listing the new and old values; so you also know it came as far as that.