Community Conundrum 25: Feature Visualization is now live! Read More

Tutorial - Use your custom recipe in the flow issue

Level 1
Tutorial - Use your custom recipe in the flow issue

Hi,



I am completing the "How to create a custom recipe" tutorial and am having issues using the custom recipe in flow. When I click run I get the error: "Error in Python process: At line 41: <type 'exceptions.KeyError'>: parameter_name"




[2019/05/28-15:54:58.300] [null-err-46] [INFO] [dku.utils] - *************** Recipe code failed **************
[2019/05/28-15:54:58.301] [null-err-46] [INFO] [dku.utils] - Begin Python stack
[2019/05/28-15:54:58.301] [null-err-46] [INFO] [dku.utils] - Traceback (most recent call last):
[2019/05/28-15:54:58.302] [null-err-46] [INFO] [dku.utils] - File "/Users/Jacqueline/Library/DataScienceStudio/dss_home/jobs/DKU_TUTORIAL_FIRSTPLUGIN/Build_output_2019-05-28T19-54-54.569/compute_output_NP/custom-python-recipe/pyout4mu5Z3gPUZcs/python-exec-wrapper.py", line 194, in <module>
[2019/05/28-15:54:58.302] [null-err-46] [INFO] [dku.utils] - exec(f.read())
[2019/05/28-15:54:58.302] [null-err-46] [INFO] [dku.utils] - File "<string>", line 41, in <module>
[2019/05/28-15:54:58.303] [null-err-46] [INFO] [dku.utils] - KeyError: 'parameter_name'


Thanks!

0 Kudos
3 Replies
Level 1

Same to me!

0 Kudos
Level 6

@itsjacqui 

I have not seen this error in any of my python recipes at the moment.

Can you clarify the link to the tutorial?

What version of DSS are you using v7.x or v8.x or some other version? Have you changed versions recently?

What version of Python?

Is it in a specific code environments? 

--Tom
Dataiker
Dataiker

I'm pretty sure @itsjacqui  is  talking about this tutorial: https://academy.dataiku.com/plugin-development/513342.

Typically there is some small transcription error between the code shown in the course and the code a person has in their instance.  Since @nhanngo  is getting the same error, that makes me a little worried there's something wrong in the code shown in the course.  I'll try to replicate and debug it later today, but other users interested in plugins are welcome to try to solve it before I do.  🙂

Labels (1)