Issue powerbi getting data from SharePoint Search

%3CLINGO-SUB%20id%3D%22lingo-sub-6710%22%20slang%3D%22en-US%22%3EIssue%20powerbi%20getting%20data%20from%20SharePoint%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6710%22%20slang%3D%22en-US%22%3E%3CP%3EFor%20a%20Client%20of%20mine%20i%20am%20trying%20to%20create%20a%20dashboard%20of%20all%20documents%20in%20a%20sitecollection.%3C%2FP%3E%3CP%3Eit%20was%20no%20problem%20with%20odata.feed.%20but%20problem%20with%20that%20was%20that%20i%20can%20not%20schedule%20it%20to%20refresh.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20finally%20used%20web.contents.%20to%20refresh%20the%20data%20this%20works%20but%20now%20i%20have%20the%20XML%20data%20as%20it%20does%20not%20want%20to%20read%20the%20Json%20of%20SharePoint%20i%20am%20in%20a%20nested%20table%20issue.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20worked%20a%20lot%20out%20and%20came%20down%20to%20this%20and%20here%20is%20my%20problem%3A%3C%2FP%3E%3CP%3ETable.FromRows(List.Transform(element1%2C%20each%20List.Transform(_%2C%20each%20Record.FieldValues(_%7B1%7D)%7B0%7D%20)))%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethe%20problem%20is%20that%20record.field%20values%20only%20returns%201%20column%20instead%20of%20all%20my%20columns.%20does%20anybody%20have%20a%20solution%20so%20it%20shows%20all%20columns%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20new%20to%20the%20Powerbi%20stuff%20so%20have%20tried%20a%20lot%20but%20syntax%20incorrect%20or%20did%20not%20work%20%3A(%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ehope%20for%20some%20answers.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKr%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPaul%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-6710%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EPower%20BI%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-74315%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Issue%20powerbi%20getting%20data%20from%20SharePoint%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-74315%22%20slang%3D%22en-US%22%3E%3CP%3ESeems%20you%20found%20the%20solution%20for%20the%20refresh%20issue%20in%20PowerBI%20online%20yourself%20%3A)%3C%2Fimg%3E%20Thanks%20for%20the%20good%20blog%20post%3A%20%3CA%20href%3D%22https%3A%2F%2Fsharepoint-specialist.nu%2Fconnect-power-bi-online-to-sharepoint-search-using-rest-ca6e681233b8%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsharepoint-specialist.nu%2Fconnect-power-bi-online-to-sharepoint-search-using-rest-ca6e681233b8%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-9893%22%20slang%3D%22en-US%22%3ERe%3A%20RE%3A%20Issue%20powerbi%20getting%20data%20from%20SharePoint%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-9893%22%20slang%3D%22en-US%22%3E%3CP%3EThat%20could%20be%20due%20to%20this%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20style%3D%22width%3A%20328px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Fgxcuf89792.i.lithium.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F3161i2B48E6FEC261E4D3%2Fimage-size%2Flarge%3Fv%3D1.0%26amp%3Bpx%3D999%22%20alt%3D%22MSissues.JPG%22%20title%3D%22MSissues.JPG%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3EThis%20morning%20i%20also%20have%20an%20issue%20with%20OData%20refresh%20as%20well%20as%20with%20some%20other%20cloud%20services.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-9832%22%20slang%3D%22en-US%22%3ERE%3A%20Issue%20powerbi%20getting%20data%20from%20SharePoint%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-9832%22%20slang%3D%22en-US%22%3ESorry%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F1463%22%20target%3D%22_blank%22%3E%40Treb%20Gatte%3C%2FA%3E%20it%20is%20still%20not%20working%20just%20tested%20it%20a%20moment%20a%20go..%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-9782%22%20slang%3D%22en-US%22%3ERE%3A%20Issue%20powerbi%20getting%20data%20from%20SharePoint%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-9782%22%20slang%3D%22en-US%22%3Esorry%20for%20my%20late%20reply%20i%20am%20going%20to%20check%20it!%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-7135%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20powerbi%20getting%20data%20from%20SharePoint%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7135%22%20slang%3D%22en-US%22%3E%3CP%3EIn%20Power%20BI%20Desktop%2C%20it's%20the%20Organizational%20Account%20credentials.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ETo%20update%20credentials%20in%20Powerbi.com%20for%20the%20refresh%3A%3C%2FP%3E%3CUL%3E%3CLI%3EOnce%20published%20to%20PowerBI.com%2C%20expand%20the%20left%20menu%20to%20see%20the%20dashboards%2C%20etc.%3C%2FLI%3E%3CLI%3EClick%20the%20...%20next%20to%20the%20Dataset%20you%20published.%3C%2FLI%3E%3CLI%3ESelect%20Scheduled%20Refresh.%3C%2FLI%3E%3CLI%3EExpand%20the%20credentials%20section.%20This%20is%20where%20I%20see%20Odata.%3C%2FLI%3E%3CLI%3EWhen%20I%20click%20it%2C%20you%20change%20the%20dropdown%20from%20anonymous%20to%20OAuth2%3C%2FLI%3E%3CLI%3EEnter%20the%20credentials%20to%20access%20the%20data.%3C%2FLI%3E%3CLI%3EOData%20will%20refresh%20afterward%20without%20issue.%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20this%20helps!%3C%2FP%3E%3CP%3E%3CSTRONG%3ETreb%20Gatte%3C%2FSTRONG%3E%20%7C%20Business%20Solutions%20MVP%20%7C%20%3CA%20href%3D%22https%3A%2F%2Ftumbleroad.com%2Fblog%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EBlog%3C%2FA%3E%20%7C%20%3CA%20href%3D%22http%3A%2F%2Facademy.tumbleroad.com%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ELearn%20Power%20BI%3C%2FA%3E%26nbsp%3B%7C%20%3CA%20href%3D%22https%3A%2F%2Ftwitter.com%2Ftgatte%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3ETwitter%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-7132%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20powerbi%20getting%20data%20from%20SharePoint%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7132%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Serge.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ei%20cannot%20set%20Oauth2%20in%20my%20powerbi%20Desktop%20or%20am%20i%20missing%20something%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKr%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPaul%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-7102%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20powerbi%20getting%20data%20from%20SharePoint%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-7102%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Sergei%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ewill%20give%20that%20a%20try.%20thanks.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EKr%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPaul%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-6972%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20powerbi%20getting%20data%20from%20SharePoint%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6972%22%20slang%3D%22en-US%22%3EHi%20Paul%2C%3CBR%20%2F%3EMy%20experience%20with%20OData%20-%20in%20PBI%20Desktop%20you%20use%20Windows%20authorization%3B%20in%20PBI%20Online%20have%20to%20change%20it%20on%20OAuth2%20(and%20do%20it%20each%20time%20when%20you%20update%20the%20model).%20But%20that%20was%20very%20limited%20experience.%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-6936%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20powerbi%20getting%20data%20from%20SharePoint%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6936%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Treb%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ein%20PowerBi%20Desktop%20the%20refresh%20works%20but%20in%20PowerBi%20Pro%20Online%20it%20does%20not%20%3A(%3C%2Fimg%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ekr%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPaul%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-6855%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20powerbi%20getting%20data%20from%20SharePoint%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6855%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20not%20sure%20why%20you%20can't%20refresh%20Odata%20as%20I%20use%20OData%26nbsp%3Ball%20of%20the%20time%20with%20Project%20Online%20OData%20feeds.%20with%20no%20issues%20refreshing.%20You%20have%20to%20reset%20the%20credentials%20in%20Powerbi.com%20after%20publishing%20as%20they%20get%20wiped%20on%20first%20publish.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-6796%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20powerbi%20getting%20data%20from%20SharePoint%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6796%22%20slang%3D%22en-US%22%3E%3CP%3EYes%20did%20use%20this%20post%20as%20well%20but%20problem%20in%20this%20solution%20is%20that%20it%20uses%26nbsp%3B%3CSPAN%3E%20Source%20%3D%20OData.Feed(%3C%2FSPAN%3E%3C%2FP%3E%3CP%3Ewhich%20you%20can%20not%20refresh%20in%20powerBi%20Pro%20or%20schedule.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESo%20needed%20to%20use%20web.contents%20to%20schedule%20refresh.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHope%20there%20is%20a%20different%20solution.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ethanks%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3Ekr%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EPaul%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-6790%22%20slang%3D%22en-US%22%3ERe%3A%20Issue%20powerbi%20getting%20data%20from%20SharePoint%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-6790%22%20slang%3D%22en-US%22%3E%3CP%3EHave%20you%20worked%20through%20this%20blog%20post's%20code%3F%20This%20might%20provide%20some%20hints.%26nbsp%3B%3CA%20href%3D%22http%3A%2F%2Fmakingthings.work%2Fconnect-power-bi-to-sp-search%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttp%3A%2F%2Fmakingthings.work%2Fconnect-power-bi-to-sp-search%2F%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E
Deleted
Not applicable

For a Client of mine i am trying to create a dashboard of all documents in a sitecollection.

it was no problem with odata.feed. but problem with that was that i can not schedule it to refresh.

 

i finally used web.contents. to refresh the data this works but now i have the XML data as it does not want to read the Json of SharePoint i am in a nested table issue.

 

I worked a lot out and came down to this and here is my problem:

Table.FromRows(List.Transform(element1, each List.Transform(_, each Record.FieldValues(_{1}){0} ))),

 

the problem is that record.field values only returns 1 column instead of all my columns. does anybody have a solution so it shows all columns?

 

I am new to the Powerbi stuff so have tried a lot but syntax incorrect or did not work :(

 

hope for some answers.

 

Kr,

 

Paul

12 Replies

Have you worked through this blog post's code? This might provide some hints. http://makingthings.work/connect-power-bi-to-sp-search/

Yes did use this post as well but problem in this solution is that it uses  Source = OData.Feed(

which you can not refresh in powerBi Pro or schedule.

 

So needed to use web.contents to schedule refresh.

 

Hope there is a different solution.

 

thanks 

 

kr,

 

Paul

I'm not sure why you can't refresh Odata as I use OData all of the time with Project Online OData feeds. with no issues refreshing. You have to reset the credentials in Powerbi.com after publishing as they get wiped on first publish.

Hi Treb,

 

in PowerBi Desktop the refresh works but in PowerBi Pro Online it does not :(

 

kr,

 

Paul

Hi Paul,
My experience with OData - in PBI Desktop you use Windows authorization; in PBI Online have to change it on OAuth2 (and do it each time when you update the model). But that was very limited experience.

Hi Sergei,

 

will give that a try. thanks.

 

Kr,

 

Paul

Hi Serge.

 

i cannot set Oauth2 in my powerbi Desktop or am i missing something?

 

Kr,

 

Paul

In Power BI Desktop, it's the Organizational Account credentials.

 

To update credentials in Powerbi.com for the refresh:

  • Once published to PowerBI.com, expand the left menu to see the dashboards, etc.
  • Click the ... next to the Dataset you published.
  • Select Scheduled Refresh.
  • Expand the credentials section. This is where I see Odata.
  • When I click it, you change the dropdown from anonymous to OAuth2
  • Enter the credentials to access the data.
  • OData will refresh afterward without issue.

 

Hope this helps!

Treb Gatte | Business Solutions MVP | Blog | Learn Power BI | Twitter

sorry for my late reply i am going to check it!
Sorry @Treb Gatte it is still not working just tested it a moment a go..

That could be due to this

MSissues.JPG

This morning i also have an issue with OData refresh as well as with some other cloud services.

 

 

Seems you found the solution for the refresh issue in PowerBI online yourself :) Thanks for the good blog post: https://sharepoint-specialist.nu/connect-power-bi-online-to-sharepoint-search-using-rest-ca6e681233b...

www.000webhost.com