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
#8
(Aug-30-2018, 06:07 PM)simms7400 Wrote: So essentially, the argument is a report I run from a HelpDesk system which consists of three columns:

Quote:
workorderid,emailid,last_tech_update
well, that is strange....
you claim the file consists of three columns, which suggests csv file based on the header you show.
at the same time you try to load it as json file in the read_file function. I would expect you will get JSONDecoderError long before getting to KeyError.
What is the file actual file format? That is why I ask to see sample of the file. Help us to help you, don't make us ask same thing over and over again
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: KeyError issue - unable to find root cause - by buran - Aug-30-2018, 07:22 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