Forum Discussion
dd96
3 years agoFrequent Visitor
getting following error while loading Views from sql server to power BI
I am getting following error while loading a View from sql server to power BI. I have premium license so storage should not be a problem. would be great if someone can help me to understand this er...
v-yueyunzh-msft
3 years agoCommunity Support
Hi , dd96
According to the error message you provide: "Invalid length parameter passed to the LEFT or SUBSTRING function.", It can be seen that the sql statement syntax error is reported when querying the data.
For this kind of problem, you can download the .pbix file and go to the Power Query Editor to see if there is an error message for a step, or see if the SUBSTRING, LEFT and RIGHT functions are causing the error in Power BI Desktop.
For more information , you can refer to :
SQL Server Helper (sql-server-helper.com)
Best Regards,
Aniya Zhang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly