Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attempting to import a .json file with duplicate data throws wrong error #9

Open
bakano98 opened this issue Apr 1, 2022 · 0 comments

Comments

@bakano98
Copy link
Owner

bakano98 commented Apr 1, 2022

JSON since I cannot attach file:

{ "persons" : [ { "name" : "Alex Lee", "phone" : "87438807", "email" : "alexlee@gmail.com", "address" : "30 Defu Lane 10 #04-104", "job" : "Software Engineer", "stage" : "INPROGRESS" },{ "name" : "Alex Lee", "phone" : "87438807", "email" : "alexlee@gmail.com", "address" : "30 Defu Lane 10 #04-104", "job" : "Software Engineer", "stage" : "INPROGRESS" }, { "name" : "Alex Tan", "phone" : "94825832", "email" : "alext@gmail.com", "address" : "1 Finlayson Green #13-00", "job" : "Data Scientist", "stage" : "ACCEPTED" }, { "name" : "Alex Chan", "phone" : "82619180", "email" : "alex1996@yahoo.com", "address" : "6 Ang Mo Kio Industrial Park 2", "job" : "Data Scientist", "stage" : "REJECTED" }, { "name" : "Alex Lee Kai Jie", "phone" : "92462946", "email" : "alexlkj@gmail.com", "address" : "76 Lorong 19 Geylang #03-01", "job" : "Data Scientist", "stage" : "INPROGRESS" }, { "name" : "Steven Tan Kai Ming", "phone" : "84303712", "email" : "stevent@yahoo.com", "address" : "10 Admiralty Street #01-78 North Link Building", "job" : "Mobile Engineer", "stage" : "INPROGRESS" }, { "name" : "Lee Kai Jie", "phone" : "92821318", "email" : "lkj1994@gmail.com", "address" : "252 Jurong East Street 24 #01-139", "job" : "Software Engineer", "stage" : "ACCEPTED" }, { "name" : "Janet Tan", "phone" : "94303312", "email" : "janettan@yahoo.com", "address" : "10 Admiralty Street #01-78 North Link Building", "job" : "Software Developer", "stage" : "REJECTED" }, { "name" : "Lew Jia Xin", "phone" : "92573826", "email" : "lewjx@hotmail.com", "address" : "261 Yishun St 22 #01-137", "job" : "Software Developer", "stage" : "ACCEPTED" }, { "name" : "Tan Jia Ling", "phone" : "93375454", "email" : "tjialing@outlook.com", "address" : "12 New Industrial Road #05-05 Morningstar Centre", "job" : "Data Analyst", "stage" : "ACCEPTED" }, { "name" : "Zhou Jia Ling", "phone" : "92462146", "email" : "jialingz@hotmail.com", "address" : "80 Marine Parade Rd #21-08", "job" : "Software Engineer", "stage" : "INPROGRESS" } ], "interviews" : [ { "person" : { "name" : "Steven Tan Kai Ming", "phone" : "84303712", "email" : "stevent@yahoo.com", "address" : "10 Admiralty Street #01-78 North Link Building", "job" : "Mobile Engineer", "stage" : "INPROGRESS" }, "date" : "2022-01-17", "time" : "13:05" }, { "person" : { "name" : "Alex Lee", "phone" : "87438807", "email" : "alexlee@gmail.com", "address" : "30 Defu Lane 10 #04-104", "job" : "Software Engineer", "stage" : "INPROGRESS" }, "date" : "2022-01-20", "time" : "17:01" }, { "person" : { "name" : "Alex Tan", "phone" : "94825832", "email" : "alext@gmail.com", "address" : "1 Finlayson Green #13-00", "job" : "Data Scientist", "stage" : "ACCEPTED" }, "date" : "2022-01-22", "time" : "16:02" }, { "person" : { "name" : "Alex Chan", "phone" : "82619180", "email" : "alex1996@yahoo.com", "address" : "6 Ang Mo Kio Industrial Park 2", "job" : "Data Scientist", "stage" : "REJECTED" }, "date" : "2022-01-24", "time" : "15:03" }, { "person" : { "name" : "Alex Lee Kai Jie", "phone" : "92462946", "email" : "alexlkj@gmail.com", "address" : "76 Lorong 19 Geylang #03-01", "job" : "Data Scientist", "stage" : "INPROGRESS" }, "date" : "2022-01-28", "time" : "14:04" } ], "tasks" : [ { "header" : "Contact Jerry", "date" : "2022-01-09", "time" : "09:10", "information" : "Ask Jerry for John number" }, { "header" : "Call Thomas", "date" : "2022-01-19", "time" : "19:10", "information" : "Ask when he is free for interview" }, { "header" : "Write report", "date" : "2022-02-01", "time" : "18:20", "information" : "Finish up writing annual report" } ] }

Note that persons 1 and 2 in the JSON file are an exact duplicate of each other. I get this error:
image.png

despite all fields being valid, except for the fact that there is duplicate content. Maybe just add "make sure there is no duplicate name"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant