Best answer

Keyerror in code step but it works when testing data

  • 21 July 2023
  • 1 reply
  • 127 views

Userlevel 1
Badge

Dear community,

I have set up the following workflow where I get an error in step 5:

Traceback (most recent call last):

File "<string>", line 8, in the_function KeyError: 'input'

id = input_data['input']

output = [{'Output': "https://s101.recruiting.eu.greenhouse.io/people/"+id}]

 

I don’t understand why it throws the error as the Key input should exist and also when testing it, it seems to work:

 

Do you have any ideas and would it be possible to use a “try and catch” logic for Zapier so that if this node fails, it still continues?

icon

Best answer by Troy Tessalone 21 July 2023, 17:29

View original

1 reply

Userlevel 7
Badge +14

Hi @greenhouseautomation 

Good question.

Try using a different variable name than “input” as some keywords are reserved and can cause issues.

Reply