# Postmap hook does not seem to be working

**URL:** <https://connective.celigo.com/t/postmap-hook-does-not-seem-to-be-working/6015>\
**Category:** Integrator.io\
**Created:** [January 22, 2026, 5:02am UTC](https://connective.celigo.com/t/postmap-hook-does-not-seem-to-be-working/6015 "2026-01-22T05:02:38Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rohan\_S](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@Rohan\_S](https://connective.celigo.com/u/Rohan_S)\
**Post date:** [January 22, 2026, 5:02am UTC](https://connective.celigo.com/t/postmap-hook-does-not-seem-to-be-working/6015/1 "2026-01-22T05:02:38Z")

</div>

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:

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/6/6f49886ddf46b066ee60dcf8af92189af5625517.png)

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

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/a/acc82e86a5d995dd5dd7c8e1098536517b4c23f7.png)

Is it a problem with the format or structure?

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [January 22, 2026, 5:10am UTC](https://connective.celigo.com/t/postmap-hook-does-not-seem-to-be-working/6015/2 "2026-01-22T05:10:28Z")

</div>

Are you mixing up [NetSuite SuiteScript hooks](https://docs.celigo.com/hc/en-us/articles/27548857134107-NetSuite-SuiteScript-hooks#post-map-4) and [Celigo JavaScript hooks](https://docs.celigo.com/hc/en-us/articles/20228312523931-JavaScript-hooks#postmap-3)?

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/d/d0992b509530609090766c6a1adc5882d4cd215e.png)

---

<div class="post-metadata">

**Author:** ![Rohan\_S](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@Rohan\_S](https://connective.celigo.com/u/Rohan_S)\
**Post date:** [January 22, 2026, 5:22am UTC](https://connective.celigo.com/t/postmap-hook-does-not-seem-to-be-working/6015/3 "2026-01-22T05:22:29Z")

</div>

Hi Tyler,  
I have used them under Post map function

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/0/06a7678e73cd96eee50af171738cf25ebd929d0d.png)

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [January 22, 2026, 5:26am UTC](https://connective.celigo.com/t/postmap-hook-does-not-seem-to-be-working/6015/4 "2026-01-22T05:26:34Z")

</div>

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.

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/6/64389c7e3ae707be5f55a74a8994bc6e3ef65ded.png)

---

<div class="post-metadata">

**Author:** ![Rohan\_S](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@Rohan\_S](https://connective.celigo.com/u/Rohan_S)\
**Post date:** [January 22, 2026, 5:38am UTC](https://connective.celigo.com/t/postmap-hook-does-not-seem-to-be-working/6015/5 "2026-01-22T05:38:58Z")

</div>

Yes.

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/1/1307342eb10bb22a8b56ae8adda7e23a47afe588.png)

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [January 22, 2026, 6:39am UTC](https://connective.celigo.com/t/postmap-hook-does-not-seem-to-be-working/6015/6 "2026-01-22T06:39:36Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Rohan\_S](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@Rohan\_S](https://connective.celigo.com/u/Rohan_S)\
**Post date:** [January 22, 2026, 9:59am UTC](https://connective.celigo.com/t/postmap-hook-does-not-seem-to-be-working/6015/7 "2026-01-22T09:59:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![basvanditzhuijzen](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/basvanditzhuijzen/32/4422_2.png) [@basvanditzhuijzen](https://connective.celigo.com/u/basvanditzhuijzen)\
**Post date:** [January 22, 2026, 10:14am UTC](https://connective.celigo.com/t/postmap-hook-does-not-seem-to-be-working/6015/8 "2026-01-22T10:14:44Z")

</div>

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](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.

---

<div class="post-metadata">

**Author:** ![Rohan\_S](https://avatars.discourse-cdn.com/v4/letter/r/d9b06d/32.png) [@Rohan\_S](https://connective.celigo.com/u/Rohan_S)\
**Post date:** [January 22, 2026, 12:00pm UTC](https://connective.celigo.com/t/postmap-hook-does-not-seem-to-be-working/6015/9 "2026-01-22T12:00:50Z")

</div>

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.

 ![image](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/6/67e34921babdd27ea78e84d9304b5bf174c4b3e6.png)

---

<div class="post-metadata">

**Author:** ![basvanditzhuijzen](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/basvanditzhuijzen/32/4422_2.png) [@basvanditzhuijzen](https://connective.celigo.com/u/basvanditzhuijzen)\
**Post date:** [January 23, 2026, 7:34am UTC](https://connective.celigo.com/t/postmap-hook-does-not-seem-to-be-working/6015/10 "2026-01-23T07:34:03Z")

</div>

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.
