Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
I am trying to read a csv file from a managed folder in dash webapp using the following code:
models = dataiku.Folder("LFHBynG2")
folder_path = models.get_path()
df_clearstate = pd.read_excel((os.path.join(folder_path,'Clearstate Data firstname.lastname@example.org')), sheet_name='Sheet2')
But getting the following error:
But if I'm trying to do the same thing in notebook, it is working. I'm sure that the file path is correct. I'm not able to understand why this is not working in webapp?
I want to read file from managed folder only since later I have to read some json files and text files for my application.
Welcome to the Dataiku Community.
In briefly reading your post here. I find it unusual to use an "at symbol" @ in a filename. Can you try your setup again with a different file name to see if things will work for you.
Just a thought. Others do you have a thought for @nakul_aggarwal?
Thanks Tom for your response. I have tried the same with a simple file name as well like demo.txt but getting the same error response:
Got it! So I'm now wondering three things about your situation.
Just a couple of thoughts. Hope they are helpful.