# File does not exist error message when import\_plink command is used in a hail environment spark cluster within terra workspace

**URL:** <https://discuss.hail.is/t/file-does-not-exist-error-message-when-import-plink-command-is-used-in-a-hail-environment-spark-cluster-within-terra-workspace/4033>\
**Category:** Hail Query & hailctl\
**Created:** [January 21, 2025, 10:46pm UTC](https://discuss.hail.is/t/file-does-not-exist-error-message-when-import-plink-command-is-used-in-a-hail-environment-spark-cluster-within-terra-workspace/4033 "2025-01-21T22:46:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oypeters](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/oypeters/32/1230_2.png) [@Oypeters](https://discuss.hail.is/u/Oypeters)\
**Post date:** [January 21, 2025, 10:46pm UTC](https://discuss.hail.is/t/file-does-not-exist-error-message-when-import-plink-command-is-used-in-a-hail-environment-spark-cluster-within-terra-workspace/4033/1 "2025-01-21T22:46:22Z")

</div>

Hello,  
I am trying to use hail.import\_plink on a bed, fam, and bim file set for my study cohort. I am working in terra workspace, using a preset (i.e., preconfigured) hail environment and spark clusters. I can confirm that my files are physically present in my workspace storage, and following a similar question in this forum, I was able to resolve the initial error:  
Hail version: 0.2.130.post1-c69cd67afb8b  
Error summary: RemoteException: File does not exist:  
[As recommended here](https://discuss.hail.is/t/remoteexception-file-doesnt-exist/1865), I modified my path to the files by adding `file:///` in front of the path and it seemed to work.  
However, when I run a function like hl.count or hl.filter\_intervals on the resulting hail matrix table, I then get the following error:  
FileNotFoundException: File file:/home/jupyter/xxx.bed does not exist.

Note that I previously created a valid hail matrix table in a standard virtual machine within terra workspace, but the hl.db\_experimental function failed in that environment, which is why I moved to a configured hail environment with spark clusters. But it just doesn’t recognize the input files even though they are physically present.  
Please kindly assist me with troubleshooting.  
Thank you.
