Submit your inspiring success story or innovative use case to the 2022 Dataiku Frontrunner Awards! ENTER YOUR SUBMISSION

Managed folder name not found: "folder_name' in "Project_key"

Solved!
Carl
Level 3
Managed folder name not found: "folder_name' in "Project_key"

Hi, 

When I try to create a folder from a python recipe I get following error message :

and a lot more messages with same content "Managed Folder not found"

Context :

I've created a python recipe and I want to save the result "an image" into a specific folder.

When we create a python Recipe, we specified, Input/Output dataset, which means Output Dataset will be file system managed and type CSV

We can change this settings after create Recipe but the issue remain the same.

Let me give an example, if you load Variables for Coders Tutorial, you will have this flow :

Screenshot 2022-04-15 at 12.09.19.png

Opening the python recipe you can see in this line, the folder is already filled with value "dy9hOjP1"

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE
folder_for_plot = dataiku.Folder("dy9hOjP1")

Now, try to create a new Recipe as image below :

Screenshot 2022-04-15 at 12.11.29.png

A output Filesystem will be requested

Copy the code from previous recipe and replace with "your_folder_name

# -------------------------------------------------------------------------------- NOTEBOOK-CELL: CODE

folder_for_plot = dataiku.Folder("your_folder_name") 

 

Validate, Save an Run and we get error message "Managed folder not found"

Below 2 more screenshots comparing settings between 2 managed Folder (dy9hOjP1 vs images)

dy9hOjP1

Screenshot 2022-04-15 at 12.16.12.png

Images 

Screenshot 2022-04-15 at 12.16.49.png

Questions:

How can we solve this issue considering working in a "real" production environment  I need to store graphics in a file system ? 

0 Kudos
1 Solution
AlexT
Dataiker
Dataiker

Hi @Carl ,

"Images" is a dataset and not a folder.

When you create your python Recipe you should select to create a folder.

As you already the recipe go to the input/outputs tab + Add + Create Folder at the bottom,  of t

Screenshot 2022-04-15 at 12.00.05.png

Screenshot 2022-04-15 at 11.55.38.pngScreenshot 2022-04-15 at 11.56.15.png

Then you will see the output folder ID in the recipe:Screenshot 2022-04-15 at 11.58.26.png

Within a folder, you can store images and interact with the folder using read/write APIs 

https://knowledge.dataiku.com/latest/courses/folders/managed-folders.html

Let me know if that helps.

View solution in original post

0 Kudos
1 Reply
AlexT
Dataiker
Dataiker

Hi @Carl ,

"Images" is a dataset and not a folder.

When you create your python Recipe you should select to create a folder.

As you already the recipe go to the input/outputs tab + Add + Create Folder at the bottom,  of t

Screenshot 2022-04-15 at 12.00.05.png

Screenshot 2022-04-15 at 11.55.38.pngScreenshot 2022-04-15 at 11.56.15.png

Then you will see the output folder ID in the recipe:Screenshot 2022-04-15 at 11.58.26.png

Within a folder, you can store images and interact with the folder using read/write APIs 

https://knowledge.dataiku.com/latest/courses/folders/managed-folders.html

Let me know if that helps.

0 Kudos