Python Forum
KeyError issue - unable to find root cause
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
KeyError issue - unable to find root cause
#3
(Aug-30-2018, 05:51 PM)j.crater Wrote: Hello, it's hard to tell what's wrong without knowing how your file looks like, or what read_file() does exactly.
Nonetheless, you can try to put a print in your for loop (print(req)) and maybe you will quickly find why (wrong format? not correctly read data?) you get the error.
Error suggest there is no 'emailid' key in the req dictionary.

Thank you for the reply!

So essentially, the argument is a report I run from a HelpDesk system which consists of three columns:
Quote:workorderid,emailid,last_tech_update

which the list is then passed to the python script.
Reply


Messages In This Thread
RE: KeyError issue - unable to find root cause - by simms7400 - Aug-30-2018, 06:07 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  unable to find module in su mode? korenron 2 2,049 Jan-10-2021, 07:41 PM
Last Post: Gribouillis
  Cant find root cause of thread.lock error burlyboys 0 1,619 May-18-2020, 12:51 PM
Last Post: burlyboys
  Unable to find an existing module arbiel 2 5,129 Apr-11-2020, 07:12 PM
Last Post: arbiel
  unable to pass a input after changing the user from root to non root using python avinash 3 3,318 Apr-08-2019, 10:05 AM
Last Post: avinash
  How to ignore - ERROR: The system was unable to find the specified registry key or va asheru93 9 6,910 Feb-04-2019, 06:35 AM
Last Post: asheru93
  unable to find vcvarsall.bat nithya 1 4,105 Jan-03-2018, 08:25 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020