Skip to main content
Alliosaaa
Inspiring
August 18, 2017
Question

Interpreting Console Errors

  • August 18, 2017
  • 4 replies
  • 389 views

I recently learned of the Javascript Console in Acrobat, and am having a lot of trouble figuring out what the error messages mean. I am getting 2 in particular that confuse me.

First, no matter what field value I change I get several errors saying:

TypeError: this.getField(...) is null

1:Field:Calculate

How am I supposed to know what field is being referenced? Shouldn't there be a field name instead of "(...)"? I have over 100 calculated fields, so not knowing where this error is coming from makes my life way more difficult.

Separate question for clarification... say fields A + B = C. After entering a number into "A", will I get that error code if nothing has yet been entered into "B"?

The other error I get...

InvalidSetError: Set not possible, invalid or unknown.

Event.value:7:Field PAYOFF.0:Calculate

For the life of me I can't find any explanation on what these error messages could mean. Is there some sort of reference manual I'm missing?

Any help would be awesome before I pull my hair out! Thank you!

This topic has been closed for replies.

4 replies

Inspiring
August 19, 2017

When using Simplified Field Notation field names cannot contain spaces, special characters, or punctuation marks. If you need to include any field with any of these characters you  must precede the character with the JavaScript Escape character to the following character is treated as part of the name of the field. The Escape character is ¨\¨.

try67
Community Expert
Community Expert
August 18, 2017

It will be helpful if you posted the full code, or shared the actual file with us.

Inspiring
August 18, 2017

The message is indicating that the field name you are providing does not exist. You need to check the spelling and capitalization of the field name.

Bernd Alheit
Community Expert
Community Expert
August 18, 2017

A + B = C is incorrect.