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.
I connected to an OData source, but am having trouble importing data because the table has too many columns.
I get an error:
Failed to save modifications to the server. Error Returned: 'OLE DB or ODBC error: [DataSource.Error] OData: Request failed: The remote server returned an error: (414) Request-URI Too Long. (Request-URI Too Long).
After reducing the number of columns I can import the data fine, but that isn't a viable solution in this case.
Is this a limitation of PowerBI or the OData protocol, and is there a way around it?
Solved! Go to Solution.
I found a solution. The limitation I linked to above is not the problem. The problem is in fact the URI too long.
In this particular case there are well over 300 columns and many have very long column names. When the OData connection is made and data is transfered, the column names are tacked onto the URI. The max characther length is breached and causes the error.
The way around this is to modify the URL you are using for the OData feed.
After /_vti_bin/ListData.svc you should add the specific table and the select all query
ex. https://siteurl.com/projectserver/db/_vti_bin/ListData.svc/tablename?$select=*
I found a solution. The limitation I linked to above is not the problem. The problem is in fact the URI too long.
In this particular case there are well over 300 columns and many have very long column names. When the OData connection is made and data is transfered, the column names are tacked onto the URI. The max characther length is breached and causes the error.
The way around this is to modify the URL you are using for the OData feed.
After /_vti_bin/ListData.svc you should add the specific table and the select all query
ex. https://siteurl.com/projectserver/db/_vti_bin/ListData.svc/tablename?$select=*
Hi @rsmccall33,
AFAK, OData not contain the length limit, but I think the service side has setting the query length limit.
E.g.
<configuration> <system.web> <httpRuntime maxQueryStringLength = "5000" ... />
For detailed information, you can refer to below links:
httpRuntime Element (ASP.NET Settings Schema)
Regards,
Xiaoxin Sheng
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
77 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |