Forum Discussion
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:
- Dataflow connects to a Sharepoint folder using the .Contents() method
- 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
- 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":
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?
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
7 Replies
- Akash_VarunaSuper User
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
- v-prasareCommunity 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
- Miguel_RojoHelper II
Thanks for the approach solutions; I really appreciate them.
I treid to apply your approach:
- Desable the "Column Types" detection in the "Project" section of the Dataflow
- Select the option of "Never detect column types fro unstructored process" on the "Global" section
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":
Have you expierenced a similar issue?
- Akash_VarunaSuper User
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
- Miguel_RojoHelper II
Hi Akash_Varuna,
That's the couriose thing:
- I delete the "undesired transfomrations steps"
- I confirm in the "Advance Query Editor" that they have been removed
- I confrm that my project has disable the "Automatically Identified Column Types..."
- I proceed to "Close and Save" and "Refresh" my dataflow
- During the refresh process, autoamtically it keeps "Converting my table folder into a Text data type" (which breaks everything)
Is there a way to indicate that "This column representa SharePoint folder"?, so that Power Query doesn't insist in convert it to "Text"?