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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

How to change load from one drive to folder ?

Hi All

 

I am not going to transform my data loading from one drive to sharepoint , i like to know what i need to modify my code from which line ? so that dont set of data will be loading from sharepoint ?

 

this is the script for loading data from one drive folder :-

Paulyeo11_0-1605265225894.png

Below script is sample data file but load from sharepoint :-

Paulyeo11_1-1605265407564.png

 

1 ACCEPTED SOLUTION
tex628
Community Champion
Community Champion

This can't really be done in a simple way. When you create a Folder/Sharepoint query you also create functions automatically. You will need to go into the file with the folder query, create a new sharepoint query, targeting the same sourcefile and then swap the first 6 rows in the folder query with the first 7 rows in the sharepoint query. This will mean that the old folder query will now use the sample file, parameter and fuction generated by your sharepoint query so you can not delete these. 

Br,
J


Connect on LinkedIn

View solution in original post

4 REPLIES 4
tex628
Community Champion
Community Champion

This can't really be done in a simple way. When you create a Folder/Sharepoint query you also create functions automatically. You will need to go into the file with the folder query, create a new sharepoint query, targeting the same sourcefile and then swap the first 6 rows in the folder query with the first 7 rows in the sharepoint query. This will mean that the old folder query will now use the sample file, parameter and fuction generated by your sharepoint query so you can not delete these. 

Br,
J


Connect on LinkedIn
Anonymous
Not applicable

Hi Sir

Thank you for your sharing. Okay it save me some more time for trying.

Paul Yeo

Anonymous
Not applicable

@Anonymous The first line where the path is provided, change that to the desired location.

Anonymous
Not applicable

Hi Sir

I have check line by line , and found that need to change all the first 7 line of code , till # " change type "

But then when i click okay , i get error msg , may i know those sample file 8 , 7 can i delete ?

 

Paulyeo11_0-1605266332205.png

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.