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

which targets were rejected on import? #73

Open
digininja opened this issue Jun 19, 2018 · 2 comments
Open

which targets were rejected on import? #73

digininja opened this issue Jun 19, 2018 · 2 comments

Comments

@digininja
Copy link

I had 3 targets in the system, I imported a CSV containing 562, I now have 563 targets in the system. The import failed for 2 of the entries but I don't know which ones. You need some way to show which lines failed.

@Raikia
Copy link
Owner

Raikia commented Jun 19, 2018

Yeah, thats true. The import job is a background job so I didn't make any type of error notification system for it, which was shortsighted. I'll make sure I address this in the next iteration! Good call

@digininja
Copy link
Author

For anyone interested, the way I worked it out was doing this:

select target_users.first_name, target_users.last_name, target_users.email from target_users into outfile "/var/lib/mysql-files/imported.csv" FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\n';

and then sorting and diffing the file with my input file.

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

2 participants