{"action":"created","issue":{"url":"https://api.github.com/repos/zdennis/activerecord-import/issues/147","labels_url":"https://api.github.com/repos/zdennis/activerecord-import/issues/147/labels{/name}","comments_url":"https://api.github.com/repos/zdennis/activerecord-import/issues/147/comments","events_url":"https://api.github.com/repos/zdennis/activerecord-import/issues/147/events","html_url":"https://github.com/zdennis/activerecord-import/issues/147","id":35917473,"number":147,"title":"Validation Required if there are Uniqueness Constraints?","user":{"login":"homerlex","id":296630,"avatar_url":"https://avatars.githubusercontent.com/u/296630?v=3","gravatar_id":"","url":"https://api.github.com/users/homerlex","html_url":"https://github.com/homerlex","followers_url":"https://api.github.com/users/homerlex/followers","following_url":"https://api.github.com/users/homerlex/following{/other_user}","gists_url":"https://api.github.com/users/homerlex/gists{/gist_id}","starred_url":"https://api.github.com/users/homerlex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/homerlex/subscriptions","organizations_url":"https://api.github.com/users/homerlex/orgs","repos_url":"https://api.github.com/users/homerlex/repos","events_url":"https://api.github.com/users/homerlex/events{/privacy}","received_events_url":"https://api.github.com/users/homerlex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-06-17T18:26:44Z","updated_at":"2015-04-28T05:16:23Z","closed_at":null,"body":"I understand that imports are faster when skipping validation.  However, if I skip validation and there is a uniqueness constraint violation it blows up with a PG::UniqueViolation exception.\r\n\r\nIt would be nice if that were handled gracefully and report as a failure in the import results object.  So, for now I am going to be required to force validation?"},"comment":{"url":"https://api.github.com/repos/zdennis/activerecord-import/issues/comments/96912439","html_url":"https://github.com/zdennis/activerecord-import/issues/147#issuecomment-96912439","issue_url":"https://api.github.com/repos/zdennis/activerecord-import/issues/147","id":96912439,"user":{"login":"smikkelsen","id":1482560,"avatar_url":"https://avatars.githubusercontent.com/u/1482560?v=3","gravatar_id":"","url":"https://api.github.com/users/smikkelsen","html_url":"https://github.com/smikkelsen","followers_url":"https://api.github.com/users/smikkelsen/followers","following_url":"https://api.github.com/users/smikkelsen/following{/other_user}","gists_url":"https://api.github.com/users/smikkelsen/gists{/gist_id}","starred_url":"https://api.github.com/users/smikkelsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smikkelsen/subscriptions","organizations_url":"https://api.github.com/users/smikkelsen/orgs","repos_url":"https://api.github.com/users/smikkelsen/repos","events_url":"https://api.github.com/users/smikkelsen/events{/privacy}","received_events_url":"https://api.github.com/users/smikkelsen/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T05:16:23Z","updated_at":"2015-04-28T05:16:23Z","body":"I am having the same issue with mysql. When importing, I get the duplicate key violation. There is an option to update duplicate keys, but it is not working for me. No matter what I try, it still fails."}}