{"action":"closed","issue":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/542","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/542/labels{/name}","comments_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/542/comments","events_url":"https://api.github.com/repos/AutoMapper/AutoMapper/issues/542/events","html_url":"https://github.com/AutoMapper/AutoMapper/issues/542","id":36503511,"number":542,"title":"Related to issue #91, Source has no property named Type, Target does have property name Type","user":{"login":"greyalien007","id":1984858,"avatar_url":"https://avatars.githubusercontent.com/u/1984858?v=3","gravatar_id":"","url":"https://api.github.com/users/greyalien007","html_url":"https://github.com/greyalien007","followers_url":"https://api.github.com/users/greyalien007/followers","following_url":"https://api.github.com/users/greyalien007/following{/other_user}","gists_url":"https://api.github.com/users/greyalien007/gists{/gist_id}","starred_url":"https://api.github.com/users/greyalien007/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/greyalien007/subscriptions","organizations_url":"https://api.github.com/users/greyalien007/orgs","repos_url":"https://api.github.com/users/greyalien007/repos","events_url":"https://api.github.com/users/greyalien007/events{/privacy}","received_events_url":"https://api.github.com/users/greyalien007/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/labels/Improvement","name":"Improvement","color":"207de5"}],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/AutoMapper/AutoMapper/milestones/11","html_url":"https://github.com/AutoMapper/AutoMapper/milestones/4.0.0","labels_url":"https://api.github.com/repos/AutoMapper/AutoMapper/milestones/11/labels","id":900207,"number":11,"title":"4.0.0","description":"New config model\r\nDeleting the Formatters completely\r\netc","creator":{"login":"jbogard","id":104498,"avatar_url":"https://avatars.githubusercontent.com/u/104498?v=3","gravatar_id":"","url":"https://api.github.com/users/jbogard","html_url":"https://github.com/jbogard","followers_url":"https://api.github.com/users/jbogard/followers","following_url":"https://api.github.com/users/jbogard/following{/other_user}","gists_url":"https://api.github.com/users/jbogard/gists{/gist_id}","starred_url":"https://api.github.com/users/jbogard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbogard/subscriptions","organizations_url":"https://api.github.com/users/jbogard/orgs","repos_url":"https://api.github.com/users/jbogard/repos","events_url":"https://api.github.com/users/jbogard/events{/privacy}","received_events_url":"https://api.github.com/users/jbogard/received_events","type":"User","site_admin":false},"open_issues":38,"closed_issues":45,"state":"open","created_at":"2014-12-11T09:25:43Z","updated_at":"2015-07-17T21:25:26Z","due_on":null,"closed_at":null},"comments":2,"created_at":"2014-06-25T17:25:30Z","updated_at":"2015-07-17T21:25:26Z","closed_at":"2015-07-17T21:25:26Z","body":"If your source object does not have a property named \"Type\" but your target does have a property named \"Type\" TypeMap.GetUnmappedPropertyNames does not return this as unmapped which can cause weirdness.  If your target Type property happens to be of string type you end up with the Type.ToString() (guess) filling the property during mapping.  If it's not a string and there's no valid conversion, it blows up.  I added the following code to my project to avoid the issue, it may add clarity if this paragraph doesn't make sense.\r\n\r\n            if (sourceType.GetProperty(\"Type\") == null && destinationType.GetProperty(\"Type\") != null)\r\n            {\r\n                expression.ForMember(\"Type\", opt => opt.Ignore());\r\n            }\r\n\r\nThis is not blocking me, no rush."}}