cancel
Showing results for 
Search instead for 
Did you mean: 
Community Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
cancel
Showing results for 
Search instead for 
Did you mean: 

UnsupportedOperationException: com.databricks.backend.daemon.data.client.DBFSV1.resolvePathOnPhysica

v_sravan_sai
New Contributor
dbutils.fs.mv('dbfs:/FileStore/tables/Employee-2.csv','dbfs:/FileStore/backup/Employee-5.csv',recurse=True)
--
is giving error
UnsupportedOperationException: com.databricks.backend.daemon.data.client.DBFSV1.resolvePathOnPhysicalStorage(path: Path)
File <command-1602907873796444>, line 1 ----> 1 dbutils.fs.mv('dbfs:/FileStore/tables/Employee-2.csv','dbfs:/FileStore/backup/Employee-5.csv',recurse=True)

File /databricks/spark/python/pyspark/errors/exceptions/captured.py:254, in capture_sql_exception.<locals>.deco(*a, **kw) 250 converted = convert_exception(e.java_exception) 251 if not isinstance(converted, UnknownException): 252 # Hide where the exception came from that shows a non-Pythonic 253 # JVM exception message. --> 254 raise converted from None 255 else: 256 raise
--
I appreciate any help
2 REPLIES 2

Kaniz_Fatma
Community Manager
Community Manager

Hi @v_sravan_sai, Looks like it's a file path/file existence issue.

Before moving the file, ensure that both the source ('dbfs:/FileStore/tables/Employee-2.csv') and destination ('dbfs:/FileStore/backup/Employee-5.csv') files exist. You can use dbutils.fs.ls('dbfs:/FileStore/tables/') to list the files in the source directory and verify their existence.

Let me know how it goes.

Rishabh_Tiwari
Community Manager
Community Manager

Hi @v_sravan_sai ,

Thank you for reaching out to our community! We're here to help you. 

To ensure we provide you with the best support, could you please take a moment to review the response and choose the one that best answers your question? Your feedback not only helps us assist you better but also benefits other community members who may have similar questions in the future.

If you found the answer helpful, consider giving it a kudo. If the response fully addresses your question, please mark it as the accepted solution. This will help us close the thread and ensure your question is resolved.

We appreciate your participation and are here to assist you further if you need it!

Thanks,

Rishabh

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!