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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
shatha
Frequent Visitor

How to increase number of columns imported from Salesforce object or select the columns to load

I had a problem loading SF object cases because it has over 660 columns and got the error msg "414): Request-URI Too Long"

 

I need to either increase the number of columns i am allowed to improt or pre-select the columns i need to load prior loading

 

please help

1 ACCEPTED SOLUTION

@v-haibl-msft

 

Thank you so much for the recommendation , but as my object contains over 660 columns I found it easier to use Table.SelectColumns and now it;s working fine.

 

Best  Regards,

Shatha

View solution in original post

4 REPLIES 4
v-haibl-msft
Microsoft Employee
Microsoft Employee

@shatha

 

How about the result if using RemoveColumns to delete the unnecessary columns in Advanced Editor?

 

Best Regards,

Herbert

@v-haibl-msft

 

Thank you so much for the recommendation , but as my object contains over 660 columns I found it easier to use Table.SelectColumns and now it;s working fine.

 

Best  Regards,

Shatha

Anonymous
Not applicable

@shatha and @v-haibl-msft, even I am facing the same problem. The solutions looks great but I am still confused. How and where do I write the function if the object is not even getting into power bi? I  mean power bi won't recognise the table and the column name until and unless the table is loaded in power bi.

 

I had the same issue and I finally found the solution, so for those that may have the same issue, here is the code to make it work:

let
Source = Salesforce.Data("https://xxxxxxxx.salesforce.com/", [ApiVersion=48, CreateNavigationProperties=true]),
Account = Source{[Name="Account"]}[Data],
#"Removed Other Columns" = Table.SelectColumns(Account,{"Id", "Name"})
in
#"Removed Other Columns"

 

The workaround is working for me, but then it means that I have to select all fields 1 by 1 from Salesforce then copy paste the names in the query. But at least it's working, which is better than before 🙂

I hope this can help others 🙂

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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