Showing results for 
Search instead for 
Did you mean: 

Calculation failed: Incorrect page references (start page = -1, end page = -1)


Hello to all,

I am trying to create a subsum on last line of each page of my form. I am using following script:

data.Page1.Table.Totals.Subtotal.#field[1]::ready:layout - (JavaScript, both)

this.rawValue = tableCalcs.obj.Sum("LFIMG", xfa.layout.absPage(this));

It works on the first page, but other parts of my script are not working correctly on other pages. The log says following:

Error: Uncaught JavaScript exception: Calculation failed: Incorrect page references (start page = -1, end page = -1).
Script failed (language is javascript; context is xfa[0].form[0].data[0].Page1[0].lastLine[0].Totals[0].Subtotal[0].#field[1])

Interestingly, the error affect only processing of the form on background. When I print the form from a preview, the output looks different (correct). Is it possible there is a difference between refferencing on local and ADS server engine?

I suspect the script to stopped working after ADS server update on Java 8.1. I am using livecycle ES4 version 11.0.8

Please suggest possible error causes...

Accepted Solutions (0)

Answers (1)

Answers (1)

Active Contributor
0 Kudos

The ads is never local. So it could be a issue with the parameters on the ads itself. Are you able to switch your ads to the cloud instance (there is a free trial) and have a look again.

It's a pretty broad field to cover... also observe the page-variable at the same time and print it next to your sum. Maybe your basis-guy can discover the ads-setting, which cause this error. Don't believe the script is wrong, but a form has a lot of settings also:-)