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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Bhavi
Frequent Visitor

Unexpected error: Invalid URI: The Uri string is too long

I have written a Kusto query to get a dataset. The query is working fine in Kusto. But when i try to run the same query in PowerBi I am getting the above error. In my query I have hard coded some 15000 IDs which should not be included in the final data. I think because of this that particular line has become too long in the query. Can you please suggest a fix for this? can we increase the limit for query?

1 ACCEPTED SOLUTION
Bhavi
Frequent Visitor

@v-haibl-msft ...Thanks for reesponding. I was able to solve the problem a few minutes ago. I created a function in Kusto and dumped all the 15000 IDs in that function. In the Kusto query i just invoked the function thus reducing the query string length. Then the query worked smoothly in PowerBi.

View solution in original post

4 REPLIES 4
Bhavi
Frequent Visitor

@Vicky_Song - I have mentioned the solution i used to solve my issue in the earlier post. 

Bhavi
Frequent Visitor

@v-haibl-msft ...Thanks for reesponding. I was able to solve the problem a few minutes ago. I created a function in Kusto and dumped all the 15000 IDs in that function. In the Kusto query i just invoked the function thus reducing the query string length. Then the query worked smoothly in PowerBi.

Vicky_Song
Impactful Individual
Impactful Individual

 
v-haibl-msft
Employee
Employee

@Bhavi

 

The too long query maybe the cause.

Are you able to exclude the 15000 IDs on Kusto side firstly, and then get data in Power BI Desktop?

Or you can get data from Kusto without hard coding the IDs to exclude them. You can filter the data after the import is completed.

 

Best Regards,
Herbert

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors