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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

SharePoint source error

I have a SharePoint Online source and a SQL Server source.  The SharePoint source is a list of files containing dates.  The SQL Server is a tall table containing dates.  My goal is to filter the SQL Server table to all dates that are on or after the minimum date in the SharePoint list of files.  I determine my minimum date by first loading all SharePoint files (with helper queries), sorting the dates in ascending order, applying an index column, and then filtering to the lowest index value.

 

To fetch the minimum date, I am using a cross-apply technique on the SQL Server query.  That is, I first create a dummy column whose value is the query name of the minimum date, expand columns on this query to fetch the actual minimum date column, create a custom column with a >= test, and lastly filter to all rows that pass the test.

 

My problem is that the expand column step is taking a really long time to evaluate, and it's raising "An unexpected error occurred" message in the data preview window (just below the column header).  When I click on the supposedly erroneous record (in particular, the value under the "min date" column), it raises the error message:

An error occurred in the 'min date' query.  Data Source.Error: SharePoint: Request failed: ...

 

How can I resolve this?

 

I have verified that my SharePoint source is configured properly as a data source.

 

I cannot post a sample pbix file.

1 ACCEPTED SOLUTION
PhilipTreacy
Super User
Super User

Hi @Anonymous 

Maybe the technique I use in this post tomerge queries can help you 

https://community.powerbi.com/t5/Desktop/Merge-tables-based-end-date-of-another-table/m-p/1558904#M636276

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


View solution in original post

1 REPLY 1
PhilipTreacy
Super User
Super User

Hi @Anonymous 

Maybe the technique I use in this post tomerge queries can help you 

https://community.powerbi.com/t5/Desktop/Merge-tables-based-end-date-of-another-table/m-p/1558904#M636276

Regards

Phil



Did I answer your question? Then please mark my post as the solution.
If I helped you, click on the Thumbs Up to give Kudos.


Blog :: YouTube Channel :: Connect on Linkedin


Proud to be a Super User!


Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors