How to aggregate data in technical workflow
Every now and then, you may receive a request to aggregate data within an Adobe Campaign Classic workflow. However, if you group by something other than the targeting dimension, you may encounter an error such as “‘w0.iid’ must appear in the GROUP BY clause or be used as an aggregate function.
What do we aggregate in adobe campaign classic? Most likely, you will be tasked to aggregate recipient-generated data, also known as delivery, broad, and tracking logs.
The reason behind Adobe Campaign always adding the primary key to the SELECT clause, in aggregate queries, remains unknown. However, we must find workarounds to deal with this situation. If you cannot avoid grouping by the targeting dimension, here is a fix for you:
Please note that this option is only available in the query activity and cannot be found in the enrichment feature.
- In query
Add data
– create as many aggregates as you want use group by check box where needed. - Save add data modal window when you are done.
- Open
Edit additional data
– on the bottom section you will seeAdvanced parameters
section - In Advanced parameters check following option – Disable automatic adding of the primary keys of targeting dimension.
- Finish
ParthaSarathy S
says:Useful information..!!