{"action":"opened","issue":{"url":"https://api.github.com/repos/dotnet/orleans/issues/1726","repository_url":"https://api.github.com/repos/dotnet/orleans","labels_url":"https://api.github.com/repos/dotnet/orleans/issues/1726/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/orleans/issues/1726/comments","events_url":"https://api.github.com/repos/dotnet/orleans/issues/1726/events","html_url":"https://github.com/dotnet/orleans/issues/1726","id":152681399,"number":1726,"title":"Extra records in OrleansQuery of SQLMembership causes startup failure","user":{"login":"amccool","id":191144,"avatar_url":"https://avatars.githubusercontent.com/u/191144?v=3","gravatar_id":"","url":"https://api.github.com/users/amccool","html_url":"https://github.com/amccool","followers_url":"https://api.github.com/users/amccool/followers","following_url":"https://api.github.com/users/amccool/following{/other_user}","gists_url":"https://api.github.com/users/amccool/gists{/gist_id}","starred_url":"https://api.github.com/users/amccool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amccool/subscriptions","organizations_url":"https://api.github.com/users/amccool/orgs","repos_url":"https://api.github.com/users/amccool/repos","events_url":"https://api.github.com/users/amccool/events{/privacy}","received_events_url":"https://api.github.com/users/amccool/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-03T01:29:43Z","updated_at":"2016-05-03T01:29:43Z","closed_at":null,"body":"working against 1.2.0 stable I found that if the OrleansQuery table has an `extra` records in it initialization will fail.\r\n\r\nfor example I added two junk records to OrleansQuery\r\n\r\n- dddd\r\n- sdggsg\r\n\r\nwhich gives me this startup error\r\n`Exc level 1: System.ArgumentException: Not all required queries found. Missing are: dddd,sdggsg`\r\n\r\nI noticed that `ActiveGatewaysQueryKey` was a removed key from pre 1.2.0.   I had updated my schema and data to include the new schema changes, but I added the new data rather than purging.\r\n\r\nwhich gave me\r\n`Exc level 1: System.ArgumentException: Not all required queries found. Missing are: ActiveGatewaysQueryKey`\r\n\r\nthis was really confusing.  After purging OrleansQuery and re-populating all was well.   However the Exception really threw me off, as `dddd is not a required query`"}}