Heya Guys. Quick Question. Any one using avalara h...
# suitescript
k
Heya Guys. Quick Question. Any one using avalara had a problem with version 6.2 on customer records where the error is
You have entered an invalid form element name. It must be prefixed with "custpage", unique, lowercase, and cannot contain any non-alphanumeric characters (except for the underscore character) in order to be added to the form or sublist.
e
We use Avalara, but are on version 6.8 - I don't get any errors like that.
k
we are on the oneworld version should have mentioned htat.
Jus trwaling through their code now to try and find the issue. It is only on the AVA_Customer script that the issue occurs.
e
Id search for "form.addField" and see if any dont have the "custpage" prefix on their id
k
done that fixed a few but still the errors persisit
e
That's annoying -- but also, that's on Avalara. They shouldn't be pushing code that doesn't work.
Out of curiosity, did you just update to that version of Avalara? or is this error "out of the blue"?
k
just update
Just logged ticket with them and tried to call Acct mgr
left voicemail
e
I think thats the best path. Id hate to see you fix their code, then them try to pin it on you.
k
Even tried undeploying but got an unexpected error.
e
It's also strange that they dont lock their scripts
k
TBH they can pin it on me if they want. I know what i changed
Whats odd is it’s only in our US sub as well. not Canada.
where we use AVAtax on both subs.
e
I'm guessing if it's a new release, they likely have Devs standing by waiting for customers like you to tell them of errors fingers crossed
k
We shall see.
I have gone through everything i can think of to find anyting that add anything to a form and cannot find a god damned thing that is wrong except for what i have already changed
Which didnt help.
e
You checked all the criteria of that error as well. My gut always goes to look for anything that doesn't start with "custpage", but you also need to make sure that every added field has a unique id - so maybe copy/paste the code into an editor and Ctrl F every ".addField" then take the ID and Ctrl F that as well to make sure it doesn't appear twice
also have to check for the "lowercase, and cannot contain any non-alphanumeric characters (except for the underscore character)" part too
k
Thats true i will do that. I am on the phone with Avalara support now.
Don;t really want to sort myself if i dont have to. I didnt build the thing.
e
^100%
k
11,000 line script in SS1.0 is not something i want any part of!
e
my gut says they added a field more than once. Ive seen it from a few companies. They will add it to the form with a user event script and try to add it again with a client script
k
hmmmmmm that could be true. It’s the UE that is failing so i may try to find myself in Webstorm with the script files.
e
Once you fix it, send them an invoice for your time 🙂
k
OMG Scripted Records Order of Scripts was the problem.
It was my script!!!!
e
Ahhhh