I am getting a very strange error. `You may only e...
# suitescript
r
I am getting a very strange error.
You may only enter numbers into this field.
It happens on an Inventory Adjustment when I enter the subsidiary (fieldChanged most likely). If I undeploy the script, the error goes away, but if I comment out EVERY entry point and add an empty entry point function for sublistChanged or something like that (one entry point function is required), I still get the error. I feel like I've tried everything. Cleared the cache, function F5, commented out the whole script. Nothing works.
w
I've seen this when the browser decides to automatically populate fields. Not sure if this is your case, but just wanted to put that out there.
r
It happens when entering subsidiary, so natively it will automatically populate fields, but the error is only triggered when my script is deployed. Also tried deleting the deployment and recreating it. Same issue.
I've literally commented the entire script at this point and it's not fixed.
w
Wow. That sucks. Good luck!
r
c
Stick a console.log() in your function and make sure it’s executing the correct script, and also remember you always have to return true. That pesky script caching bug keeps on coming back
r
does fire when you add an item line, which is not the issue since the error happens based on sub entry.
disregard. my boss is working on this without talking to me. it was a formula field error 😂
oof 1
c
facepalm