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
Anonymous
Not applicable

5 arguments were passed to a function which expects between 2 and 4

Hi,

 

I have a report which doesn't refresh in Powerbi web having a gateway connection to a PostGreSQL database which works fine with other reports. Please note that this report does refresh in the desktop version without any problem.

 

I am getting the following technical details, which doesn't really help me to find at least the name of the table that may cause the error (I guess that the problem is linked to tables, having also read the message https://community.powerbi.com/t5/Report-Server/5-arguments-were-passed-to-a-function-which-expects-b...).

Unable to connect to the data source undefined.

  • Underlying error code-2147467259
  • Underlying error message5 arguments were passed to a function which expects between 2 and 4.
  • DM_ErrorDetailNameCode_UnderlyingHResult-2147467259
  • Microsoft.Data.Mashup.ValueError.Arguments{Table.FromRecords({}), "Index", 1, 1, number}
  • Microsoft.Data.Mashup.ValueError.ReasonExpression.Error


Can you please help?

Thanks,
Salva

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Solved after reading this https://community.powerbi.com/t5/Desktop/Add-Index-Function-causes-refresh-to-fail/td-p/1301932.

The root cause was the adoption of an index. I have just erased the column type and now the refreshes. 

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Solved after reading this https://community.powerbi.com/t5/Desktop/Add-Index-Function-causes-refresh-to-fail/td-p/1301932.

The root cause was the adoption of an index. I have just erased the column type and now the refreshes. 

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!

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.