Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anske
Frequent Visitor

Group by on Redshift Data Source Table causes great many active sessions (connection limit exceeded)

Hi,

 

I have a fairly simple report loading 10 tables from a single Redshift Datasource, I never had any troubles so far, until today when I duplicated one of the queries and performed a Group By step in the Edit Queries view.  Now it gives the following error 

DataSource.Error: ODBC: ERROR [53300] [Microsoft][Amazon Redshift] (10) Error occurred while trying to connect: [SQLState 53300] FATAL: connection limit "498" exceeded for non-superusers.

 

Being a superuser myself, I checked open connections for the power bi user in the stl_connection_log, and low and behold, there's over 400 open connections, starting at the time I added the group by to the stept, a couple of connections starting up per second for this special pbi user I've made (and yes, I'm completely sure no one else and no other reports are querying the datasource with this user), ranging over a couple minutes (so from 12:45:55 to 12:48:14). 

How do all these connections get created?? Are there any known issues creating this behaviour, or is it not a power bi issue at all? I'm in import mode, not in direct query mode, by the way. 

Thanks.

 

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @Anske 

If you use direct query, it is unsupported to transform data like "group by".

Also, please check if you use any unsupported data types:

https://docs.aws.amazon.com/redshift/latest/dg/c_Supported_data_types.html

 

If error still occurs, please create a support ticket for further analysis.

https://powerbi.microsoft.com/en-us/support/

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Maggie, 

 

as I remarked in my initial question, I'm NOT using direct query.

 

Cheers, 

Anske.

Greg_Deckler
Super User
Super User

I've seen certain operations in Power Query against certain data sources cause problems. You could check the Issues forum and see if it is mentioned and if there is a solution. https://aka.ms/PBI_Comm_Issues

 

Also, you could use a work-a-round by using DAX SUMMARIZE or SUMMARIZECOLUMNS to create a new table in your data model.

@Anske 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors