Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Must appear in the GROUP BY clause or be used in an aggregate function

Linda_Stinson
Employee
Employee

Symptom

Red blinking outline on Query after adding data and computing an aggregate, e.g. Sum, Count, Max. Display logs shows the journal entry highlighted here:

Must appear in the GROUP BY.jpg

Underlying cause

Number of values don't synch up resulting in an error when adding data to the temporary worktable.

Fix

Edit additional data and (1) Check the Group box for any columns that do not contain aggregates, and (2) Click Advanced parameters and check Group data by the targeting dimension element.

Preventative

When adding additional data and computed aggregates in a Query, maker sure every column in the worktable is an aggregate or Group by, including the targeting dimension.

0 Replies
Amit_Kumar
Community Advisor
Community Advisor

Campaign error.JPG

I am getting a postgreSQL error while updating the schema which contains aggregate function sum.

Linda_Stinson
Employee
Employee

Hi Amit, you need to click on the Advanced link when editing the additional data and activate the checkbox to Group by the targeting dimension.

Linda

Amit_Kumar
Community Advisor
Community Advisor

Hi Linda,

I am using a preloading in web form.so in there i don't see any

checkbox to Group by the targeting dimension.

Regards,

Amit

Linda_Stinson
Employee
Employee

This post is referring to a segmentation or Campaign workflow, not a web form rendering workflow.

Amit_Kumar
Community Advisor
Community Advisor

Thanks Linda,

I was using the wrong type query activity in web form.

Regards,

Amit