# Error: NoTypeValidates: # StringTooLong: #NullExpected

**URL:** <https://connective.celigo.com/t/error-notypevalidates-stringtoolong-nullexpected/5829>\
**Category:** Integrator.io\
**Tags:** http, error-handling, import, netsuite\
**Created:** [November 5, 2025, 1:49am UTC](https://connective.celigo.com/t/error-notypevalidates-stringtoolong-nullexpected/5829 "2025-11-05T01:49:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Angelica\_Guerzo](https://avatars.discourse-cdn.com/v4/letter/a/bc79bd/32.png) [@Angelica\_Guerzo](https://connective.celigo.com/u/Angelica_Guerzo)\
**Post date:** [November 5, 2025, 1:49am UTC](https://connective.celigo.com/t/error-notypevalidates-stringtoolong-nullexpected/5829/1 "2025-11-05T01:49:54Z")

</div>

This is what I’m doing in the first step:

I’m using a saved-search pulling data in NetSuite and using that as an export to Celigo

This is what I’m using in the handlebar along with the data being used and the data being previewed.

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

Despite having the correct output in the handlebar preview, I am getting this error once I populate the Mock Reponse:

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

Error: NoTypeValidates: #/Records {Array: ArrayItemNotValid: #/Records[0] { NoTypeValidates: #/Records[0].Supplier1Code {Null: StringTooLong: #/Records[0].Supplier1Code NullExpected: #/Records[0].Supplier1Code } {String: StringTooLong: #/Records[0].Supplier1Code } } } {Null: ArrayItemNotValid: #/Records[0] { NoTypeValidates: #/Records[0].Supplier1Code {Null: StringTooLong: #/Records[0].Supplier1Code NullExpected: #/Records[0].Supplier1Code } {String: StringTooLong: #/Records[0].Supplier1Code } } NullExpected: #/Records }

Has anyone encountered something similar to this? I checked the field in netsuite and the field has a maximum length of 60. Thank you in advance!

---

<div class="post-metadata">

**Author:** ![nuriensing](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/nuriensing/32/6918_2.png) [@nuriensing](https://connective.celigo.com/u/nuriensing)\
**Post date:** [November 5, 2025, 7:50am UTC](https://connective.celigo.com/t/error-notypevalidates-stringtoolong-nullexpected/5829/2 "2025-11-05T07:50:34Z")

</div>

The error looks like it says the field can be either `null` or a string, but the string you provided is invalid (too long). So it falls back to check if it can be `null` instead — and it wasn’t, so that fails too. Use Handlebars to limit it to 60 characters: `{{substring Supplier1Code 0 60}}` and try again.
