System.Data.SqlClient.SqlException (0x80131904): Invalid column name 'StatusId'.
Invalid column name 'ErrorLog'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at Etoz.ConnectData.DataAccess.ExecuteQuery(String query) in c:\inetpub\wwwroot\cricdirect.com\api\v6\App_Code\db\data_access.cs:line 117
ClientConnectionId:109fd13b-23c9-400c-be8e-73a4c3d9737e
Error Number:207,State:1,Class:16If not Exists (Select ApiId From api_Data WHERE Id = 108404 AND DataTypeId = 6) BEGIN INSERT INTO api_Data (Id, DataTypeId, Json, Modified, StatusId, ErrorLog) VALUES (108404,6,'{"status":"ok","response":{"player":{"pid":108404,"title":"George Bell","short_name":"G Bell","first_name":"George Bell","last_name":"","middle_name":"","birthdate":"2002-09-25","birthplace":" Manchester, Lancashire","country":"en","primary_team":[],"logo_url":"","playing_role":"wk","batting_style":"Right Hand Bat","bowling_style":"Right Arm Off Break","fielding_position":"Wicketkeeper","recent_match":0,"recent_appearance":0,"fantasy_player_rating":6,"facebook_profile":"","twitter_profile":"https:\/\/twitter.com\/GeorgeB_77","instagram_profile":"https:\/\/www.instagram.com\/georgebell78\/?hl=en","debut_data":"","thumb_url":"","nationality":"England"},"batting":{"t20":{"match_id":0,"inning_id":0,"matches":9,"innings":6,"notout":2,"runs":87,"balls":75,"highest":31,"run100":0,"run50":0,"run4":7,"run6":1,"average":"21.75","strike":"115.99","catches":4,"stumpings":0,"fastest50balls":0,"fastest100balls":0},"lista":{"match_id":0,"inning_id":0,"matches":17,"innings":17,"notout":1,"runs":414,"balls":559,"highest":78,"run100":0,"run50":3,"run4":46,"run6":1,"average":"25.87","strike":"74.06","catches":9,"stumpings":3,"fastest50balls":0,"fastest100balls":0},"firstclass":{"match_id":0,"inning_id":0,"matches":30,"innings":47,"notout":0,"runs":1056,"balls":2162,"highest":99,"run100":0,"run50":6,"run4":139,"run6":3,"average":"22.46","strike":"48.84","catches":45,"stumpings":2,"fastest50balls":0,"fastest100balls":0},"t10":{"match_id":"0","inning_id":"0","matches":"","innings":"","notout":"","runs":"","balls":"","highest":"","run100":"","run50":"","run4":"","run6":"","average":"","strike":"","catches":"","stumpings":""}},"bowling":{"t20":{"match_id":0,"inning_id":0,"matches":9,"innings":0,"balls":0,"overs":0,"runs":0,"wickets":0,"bestinning":"","bestmatch":"","econ":"","average":"","strike":"","wicket4i":0,"wicket5i":0,"wicket10m":0,"hattrick":0,"expensive_over_runs":0},"lista":{"match_id":0,"inning_id":0,"matches":17,"innings":1,"balls":18,"overs":3,"runs":20,"wickets":1,"bestinning":"1\/20","bestmatch":"1\/20","econ":"6.66","average":"20.00","strike":"18.0","wicket4i":0,"wicket5i":0,"wicket10m":0,"hattrick":0,"expensive_over_runs":0},"firstclass":{"match_id":0,"inning_id":0,"matches":30,"innings":4,"balls":132,"overs":22,"runs":85,"wickets":1,"bestinning":"1\/28","bestmatch":"1\/28","econ":"3.86","average":"85.00","strike":"132.0","wicket4i":0,"wicket5i":0,"wicket10m":0,"hattrick":0,"expensive_over_runs":0},"t10":{"match_id":"0","inning_id":"0","matches":"0","innings":"","balls":"","overs":"0","runs":"","wickets":"","bestinning":"","bestmatch":"","econ":"","average":"","strike":"","wicket4i":"","wicket5i":"","wicket10m":""}}},"etag":"ab7f4d455cdf19afc2a382af211b1358","modified":"2025-06-23 11:10:42","datetime":"2025-06-23 11:10:42","api_version":"3.0"}', GetDate() , 0,'') END ELSE BEGIN Update api_Data Set Json = '{"status":"ok","response":{"player":{"pid":108404,"title":"George Bell","short_name":"G Bell","first_name":"George Bell","last_name":"","middle_name":"","birthdate":"2002-09-25","birthplace":" Manchester, Lancashire","country":"en","primary_team":[],"logo_url":"","playing_role":"wk","batting_style":"Right Hand Bat","bowling_style":"Right Arm Off Break","fielding_position":"Wicketkeeper","recent_match":0,"recent_appearance":0,"fantasy_player_rating":6,"facebook_profile":"","twitter_profile":"https:\/\/twitter.com\/GeorgeB_77","instagram_profile":"https:\/\/www.instagram.com\/georgebell78\/?hl=en","debut_data":"","thumb_url":"","nationality":"England"},"batting":{"t20":{"match_id":0,"inning_id":0,"matches":9,"innings":6,"notout":2,"runs":87,"balls":75,"highest":31,"run100":0,"run50":0,"run4":7,"run6":1,"average":"21.75","strike":"115.99","catches":4,"stumpings":0,"fastest50balls":0,"fastest100balls":0},"lista":{"match_id":0,"inning_id":0,"matches":17,"innings":17,"notout":1,"runs":414,"balls":559,"highest":78,"run100":0,"run50":3,"run4":46,"run6":1,"average":"25.87","strike":"74.06","catches":9,"stumpings":3,"fastest50balls":0,"fastest100balls":0},"firstclass":{"match_id":0,"inning_id":0,"matches":30,"innings":47,"notout":0,"runs":1056,"balls":2162,"highest":99,"run100":0,"run50":6,"run4":139,"run6":3,"average":"22.46","strike":"48.84","catches":45,"stumpings":2,"fastest50balls":0,"fastest100balls":0},"t10":{"match_id":"0","inning_id":"0","matches":"","innings":"","notout":"","runs":"","balls":"","highest":"","run100":"","run50":"","run4":"","run6":"","average":"","strike":"","catches":"","stumpings":""}},"bowling":{"t20":{"match_id":0,"inning_id":0,"matches":9,"innings":0,"balls":0,"overs":0,"runs":0,"wickets":0,"bestinning":"","bestmatch":"","econ":"","average":"","strike":"","wicket4i":0,"wicket5i":0,"wicket10m":0,"hattrick":0,"expensive_over_runs":0},"lista":{"match_id":0,"inning_id":0,"matches":17,"innings":1,"balls":18,"overs":3,"runs":20,"wickets":1,"bestinning":"1\/20","bestmatch":"1\/20","econ":"6.66","average":"20.00","strike":"18.0","wicket4i":0,"wicket5i":0,"wicket10m":0,"hattrick":0,"expensive_over_runs":0},"firstclass":{"match_id":0,"inning_id":0,"matches":30,"innings":4,"balls":132,"overs":22,"runs":85,"wickets":1,"bestinning":"1\/28","bestmatch":"1\/28","econ":"3.86","average":"85.00","strike":"132.0","wicket4i":0,"wicket5i":0,"wicket10m":0,"hattrick":0,"expensive_over_runs":0},"t10":{"match_id":"0","inning_id":"0","matches":"0","innings":"","balls":"","overs":"0","runs":"","wickets":"","bestinning":"","bestmatch":"","econ":"","average":"","strike":"","wicket4i":"","wicket5i":"","wicket10m":""}}},"etag":"ab7f4d455cdf19afc2a382af211b1358","modified":"2025-06-23 11:10:42","datetime":"2025-06-23 11:10:42","api_version":"3.0"}', Modified = GetDate() WHERE Id = 108404 AND DataTypeId = 6 END Player profile of George Bell, England