{"action":"created","issue":{"url":"https://api.github.com/repos/andune/HomeSpawnPlus/issues/39","labels_url":"https://api.github.com/repos/andune/HomeSpawnPlus/issues/39/labels{/name}","comments_url":"https://api.github.com/repos/andune/HomeSpawnPlus/issues/39/comments","events_url":"https://api.github.com/repos/andune/HomeSpawnPlus/issues/39/events","html_url":"https://github.com/andune/HomeSpawnPlus/issues/39","id":57671283,"number":39,"title":"[Bug] Converting Essentials data to HSP doesn't work","user":{"login":"D3v3l0per","id":4995842,"avatar_url":"https://avatars.githubusercontent.com/u/4995842?v=3","gravatar_id":"","url":"https://api.github.com/users/D3v3l0per","html_url":"https://github.com/D3v3l0per","followers_url":"https://api.github.com/users/D3v3l0per/followers","following_url":"https://api.github.com/users/D3v3l0per/following{/other_user}","gists_url":"https://api.github.com/users/D3v3l0per/gists{/gist_id}","starred_url":"https://api.github.com/users/D3v3l0per/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/D3v3l0per/subscriptions","organizations_url":"https://api.github.com/users/D3v3l0per/orgs","repos_url":"https://api.github.com/users/D3v3l0per/repos","events_url":"https://api.github.com/users/D3v3l0per/events{/privacy}","received_events_url":"https://api.github.com/users/D3v3l0per/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-02-14T00:13:38Z","updated_at":"2015-02-15T01:30:03Z","closed_at":null,"body":"Good evening,\r\n\r\nI've been using HSP for some months on my local server.\r\nOn a different server, I tried to convert Essentials homes to HSP. Unfortunately, converting the data didn't work.\r\nThe following error occurred: http://pastebin.com/ec7ZP7yt\r\nI'm using HSP Build #613.\r\n\r\nThanks for reading this ticket, I'm looking forward to using HSP on the server!"},"comment":{"url":"https://api.github.com/repos/andune/HomeSpawnPlus/issues/comments/74399912","html_url":"https://github.com/andune/HomeSpawnPlus/issues/39#issuecomment-74399912","issue_url":"https://api.github.com/repos/andune/HomeSpawnPlus/issues/39","id":74399912,"user":{"login":"andune","id":512499,"avatar_url":"https://avatars.githubusercontent.com/u/512499?v=3","gravatar_id":"","url":"https://api.github.com/users/andune","html_url":"https://github.com/andune","followers_url":"https://api.github.com/users/andune/followers","following_url":"https://api.github.com/users/andune/following{/other_user}","gists_url":"https://api.github.com/users/andune/gists{/gist_id}","starred_url":"https://api.github.com/users/andune/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andune/subscriptions","organizations_url":"https://api.github.com/users/andune/orgs","repos_url":"https://api.github.com/users/andune/repos","events_url":"https://api.github.com/users/andune/events{/privacy}","received_events_url":"https://api.github.com/users/andune/received_events","type":"User","site_admin":false},"created_at":"2015-02-15T01:30:03Z","updated_at":"2015-02-15T01:30:03Z","body":"More progress. The particular error I get when doing a fresh import is specific to user 'tommyb265'. The reason is this user has two Essentials data files:\r\n\r\n```\r\n01cadca2-0b18-3965-a66a-d1df850d83c8.yml:lastAccountName: tommyb265\r\n45d3b1fe-89da-4b6e-9014-3017a8fe9f5b.yml:lastAccountName: tommyb265\r\n```\r\n\r\nSo HSP imports the first one of these fine and then it's getting the exception because when it hits the second one, it is trying to create a duplicate home for the same user. I'm out of time for debugging now, but I suspect what I'll do is detect this situation and print a warning to the log, then keep going with the import. This way the import will succeed for the entire data set and you'll have a short list of warnings for any situations like this in your Essentials data."}}