Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Error calculating sum

Questions related to nuBuilder Forte Reports and the Report Builder.
Post Reply
treed
Posts: 205
Joined: Mon May 18, 2020 12:02 am
Been thanked: 2 times
Contact:

Error calculating sum

Unread post by treed »

I put together a nice invoice report and when the total is summed I get the following debug error. The field I'm trying to sum is OrdLineAmt.

[0] :
===USER==========

globeadmin

===PDO MESSAGE===

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'WCBBQ_DB.___nu15fe249fd7f33e____nu_summary' doesn't exist

===SQL===========

SELECT SUM(nu_sum_OrdLineAmt) AS the_sum_a FROM ___nu15fe249fd7f33e____nu_summary

===BACK TRACE====

/var/www/html/db/nurunpdf.php - line 756 (nuRunQuery)

/var/www/html/db/nurunpdf.php - line 604 (nuGetFieldValue)

/var/www/html/db/nurunpdf.php - line 370 (getObjectRows)

/var/www/html/db/nurunpdf.php - line 320 (setObjectLines)

/var/www/html/db/nurunpdf.php - line 256 (buildSection)

/var/www/html/db/nurunpdf.php - line 48 (nuBuildReport)
treed
Posts: 205
Joined: Mon May 18, 2020 12:02 am
Been thanked: 2 times
Contact:

Re: Error calculating sum

Unread post by treed »

After doing some research it seems its documented in v.3 that a grouping is needed to have a some. I'll assume that's the issue as I've worked around it another way. If this is correct, perhaps a future version could pass that info along in an error message.
steven
Posts: 410
Joined: Mon Jun 15, 2009 10:03 am
Has thanked: 58 times
Been thanked: 55 times

Re: Error calculating sum

Unread post by steven »

treed,

That sounds right.

The Report Builder works the same as v3.

Steven
A short post is a good post.
Buy Kev a Coffee
Post Reply