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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Miguel_Rojo
Advocate I
Advocate I

Dataflow - SharePoint Connection Problem

Hi Community,

 

I've been expierience a anomal behivor when a SharePoint folder connection is executed in my Dataflow.

Here the scenario:

 

  1. Dataflow connects to a Sharepoint folder using the .Contents() method
  2. Connection is stablished successfully, and further tansformations are executed
    • In the next screenshot, you can see the 4 subfolders navegation executed to arrive to destination
    • SubFolders_Navegation.png
  3. But when I "Close and Save" my tables, the dataflow execute one extra automatic step that breks the connection: it converts my "Folders column" into a "Text Data Type":

Transformation_Error.png

 

No matter how many times I delete this annoying steps, the dataflow add them again.

I've never expierenced this problems connecting to a Sharepoint folder in the past.

 

Do you know why this happens and what be done to solve it?

1 ACCEPTED SOLUTION

@Miguel_Rojo, Hope your doing well.

 

could you please let us know if issue resolved or is still blocking you? If still issue persist, I suggest raising a support ticket.

How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

View solution in original post

7 REPLIES 7
Miguel_Rojo
Advocate I
Advocate I

Hi @Akash_Varuna@v-prasare 

 

Thanks for the approach solutions; I really appreciate them.

I treid to apply your approach:

  1. Desable the "Column Types" detection in the "Project" section of the Dataflow
  2. Select the option of "Never detect column types fro unstructored process" on the "Global" section 

Desable_ColumnTypes_Detection.png

Never detect column types and headers.png

 

However, when I click "Save and Close", the Dataflow continues adding the extra step that converts my column with the SharePoint folders to "Text Data Type", and when I look the "Data Load" option, I see that Power Query doesn't repesct my past unselection and selects againg the option of "Detect Column Types":

Error_Descritpion.png

Power Query selects again the Data Type detection.png

 

Have you expierenced a similar issue?

Hi @Miguel_Rojo , Could you try to remove it manually and then saving the Dataflow and look for any Tyoe Changes in Advanced editor and if there is any delete it and save the dataflow 

Hi @Akash_Varuna,

 

That's the couriose thing:

  1. I delete the "undesired transfomrations steps"
  2. I confirm in the "Advance Query Editor" that they have been removed
  3. I confrm that my project has disable the "Automatically Identified Column Types..."
  4. I proceed to "Close and Save" and "Refresh" my dataflow 
  5. During the refresh process, autoamtically it keeps "Converting my table folder into a Text data type" (which breaks everything)

Process Descritpion.png

 

Is there a way to indicate that "This column representa SharePoint folder"?, so that Power Query doesn't insist in convert it to "Text"?

 

 

@Miguel_Rojo, Hope your doing well.

 

could you please let us know if issue resolved or is still blocking you? If still issue persist, I suggest raising a support ticket.

How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn

 

 

 

Thanks,

Prashanth Are

MS Fabric community support

Hi @v-prasare,

Thanks for your attention on this topic.

 

The issue was not solved.

The Dataflow keeps executing those undesired transformation steps (converting my sharepoint folders tables in "Text" data type) no matter how many times I disable the "Automatically Identified Column Types..."

 

The workaround that I'm using is:

  • Instead of having one query that makes reference to "different SharePoint folders" and then referencing that "Parent query" by other "Child queries"
  • I create one direct query to each "Sharepoint folder" and complete the rest of transfomations in that query (without making references)

 

Thanks, 

Miguel

 

 

 

v-prasare
Community Support
Community Support

Hi @Miguel_Rojo,

Thanks for reaching out MS Fabric community support.

 

@Akash_Varuna, thanks for your promt response.

 

When you save and refresh the Dataflow, Power BI might be trying to automatically detect column types, causing it to incorrectly convert the Content column to text or if the schema of the SharePoint folder changes (e.g., new files or folders are added), Power BI might reinterpret the column types.

Did you tried below step:

go to Dataflow settings in Power BI Service: Disable "Auto-detect column types and headers for unstructured sources."  This prevents Power BI from forcing incorrect data types.

 

 

 

 

Thanks,

Prashanth Are

Akash_Varuna
Solution Sage
Solution Sage

Hi @Miguel_Rojo , You could disable the Automatic detection type and see if it solves the issue please follow these steps

  • In the Power Query Editor, go to File → Options and settings → Query Options → Global → Data Load.
  • Uncheck Detect data type and relationships for unstructured sources.
    Also try to keep the folder columns in its original data type
    If this post helped please do give a kudos and accept this as a solution
    Thanks In Advance

 

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

March2025 Carousel

Fabric Community Update - March 2025

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