Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi All,
I am trying to move files from one a workspace in one subscription to another workspace in another subscription using mssparkutils.fs.mv. mssparkutils.fs.cp is working file. I am able to copy files but move is giving error.
We have created trusted workspace between the subscription. Also created shortcut for second workspace. Below is the code that I am using -
Let me know if you need more infromation.
Thanks,
Deepmala
Solved! Go to Solution.
Hi @rautd have you tried adding the parameters that create the destinations directory?
Hi @rautd
I used your code to move files from one workspace to another workspace without experiencing any error. I tried mssparkutils.fs.mv and mssparkutils.fs.cp, both worked. What error did you get when moving files? Is there any error message?
In addition, if you move files to a workspace which locates in the same Fabric Capacity as the source Workspace does, will it succeed?
More information: in my testing, I was using ABFS paths and moving files across workspaces within the same Fabric Trial Capacity.
Best Regards,
Jing
Hi,
For me as well, cp worked but mv was giving IOException error as mentioned in my post. Also I have created shortcuts and by using that shortcuts I was trying to move files from workspace to another in two different subcriptions.
Hi @rautd have you tried adding the parameters that create the destinations directory?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
5 | |
4 | |
2 | |
2 | |
2 |