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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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