Tutorial - Use your custom recipe in the flow issue

itsjacqui
itsjacqui Registered Posts: 1 ✭✭✭✭

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!

Tagged:

Answers

  • nhanngo
    nhanngo Registered Posts: 1 ✭✭✭✭
  • tgb417
    tgb417 Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS ML Practitioner, Dataiku DSS Core Concepts, Neuron 2020, Neuron, Registered, Dataiku Frontrunner Awards 2021 Finalist, Neuron 2021, Neuron 2022, Frontrunner 2022 Finalist, Frontrunner 2022 Winner, Dataiku Frontrunner Awards 2021 Participant, Frontrunner 2022 Participant, Neuron 2023 Posts: 1,598 Neuron

    @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?

  • Alex_Reutter
    Alex_Reutter Alpha Tester, Dataiker Alumni, Dataiku DSS Core Designer Posts: 105 ✭✭✭✭✭✭✭

    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.

  • Shashank
    Shashank Dataiker, Dataiku DSS Core Designer, Dataiku DSS ML Practitioner, Dataiku DSS Adv Designer, Registered Posts: 28 Dataiker

    I got the exact issue while building the plugin. I created versions of the same plugin, so it points to the older one, which doesn't have the parameter defined. Just deleting the copies of the Plugin will resolve this issue.

Setup Info
    Tags
      Help me…