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:3e4cb425-cbbb-4748-8115-b8d1ba52a41a
Error Number:207,State:1,Class:16If not Exists (Select ApiId From api_Data WHERE Id = 120400 AND DataTypeId = 6) BEGIN INSERT INTO api_Data (Id, DataTypeId, Json, Modified, StatusId, ErrorLog) VALUES (120400,6,'{"status":"ok","response":{"player":{"pid":120400,"title":"Jafer Chohan","short_name":"JA Chohan","first_name":"Jafer Chohan","last_name":"","middle_name":"","birthdate":"2002-07-11","birthplace":"Camden, Middlesex, England","country":"en","primary_team":[],"logo_url":"","playing_role":"bowl","batting_style":"Right Hand Bat","bowling_style":"Right Arm Leg Spin","fielding_position":"","recent_match":0,"recent_appearance":0,"fantasy_player_rating":7.5,"facebook_profile":"","twitter_profile":"","instagram_profile":"https:\/\/www.instagram.com\/chohanjafar\/","debut_data":"","bowling_type":"Spin","thumb_url":"","nationality":"England"},"batting":{"t20":{"match_id":0,"inning_id":0,"matches":37,"innings":16,"notout":6,"runs":98,"balls":94,"highest":37,"run100":0,"run50":0,"run4":6,"run6":4,"average":"9.80","strike":"104.25","catches":6,"stumpings":0,"fastest50balls":0,"fastest100balls":0},"t10":{"match_id":"0","inning_id":"0","matches":"8","innings":"4","notout":"1","runs":"11","balls":"15","highest":"6","run100":"0","run50":"0","run4":"1","run6":"0","average":"3.67","strike":"73.33","catches":"1","stumpings":"0"}},"bowling":{"t20":{"match_id":0,"inning_id":0,"matches":37,"innings":34,"balls":658,"overs":109.4,"runs":898,"wickets":35,"bestinning":"5\/14","bestmatch":"5\/14","econ":"8.18","average":"25.65","strike":"18.8","wicket4i":2,"wicket5i":1,"wicket10m":0,"hattrick":0,"expensive_over_runs":0},"t10":{"match_id":"0","inning_id":"0","matches":"8","innings":"8","balls":"61","overs":"10.1","runs":"149","wickets":"7","bestinning":"3\/25","bestmatch":"3\/25","econ":"14.66","average":"21.29","strike":"8.71","wicket4i":"0","wicket5i":"0","wicket10m":"0"}}},"etag":"09dcf2f11c9d08fd1f02e86f08f19215","modified":"2025-07-11 04:31:36","datetime":"2025-07-11 04:31:36","api_version":"3.0"}', GetDate() , 0,'') END ELSE BEGIN Update api_Data Set Json = '{"status":"ok","response":{"player":{"pid":120400,"title":"Jafer Chohan","short_name":"JA Chohan","first_name":"Jafer Chohan","last_name":"","middle_name":"","birthdate":"2002-07-11","birthplace":"Camden, Middlesex, England","country":"en","primary_team":[],"logo_url":"","playing_role":"bowl","batting_style":"Right Hand Bat","bowling_style":"Right Arm Leg Spin","fielding_position":"","recent_match":0,"recent_appearance":0,"fantasy_player_rating":7.5,"facebook_profile":"","twitter_profile":"","instagram_profile":"https:\/\/www.instagram.com\/chohanjafar\/","debut_data":"","bowling_type":"Spin","thumb_url":"","nationality":"England"},"batting":{"t20":{"match_id":0,"inning_id":0,"matches":37,"innings":16,"notout":6,"runs":98,"balls":94,"highest":37,"run100":0,"run50":0,"run4":6,"run6":4,"average":"9.80","strike":"104.25","catches":6,"stumpings":0,"fastest50balls":0,"fastest100balls":0},"t10":{"match_id":"0","inning_id":"0","matches":"8","innings":"4","notout":"1","runs":"11","balls":"15","highest":"6","run100":"0","run50":"0","run4":"1","run6":"0","average":"3.67","strike":"73.33","catches":"1","stumpings":"0"}},"bowling":{"t20":{"match_id":0,"inning_id":0,"matches":37,"innings":34,"balls":658,"overs":109.4,"runs":898,"wickets":35,"bestinning":"5\/14","bestmatch":"5\/14","econ":"8.18","average":"25.65","strike":"18.8","wicket4i":2,"wicket5i":1,"wicket10m":0,"hattrick":0,"expensive_over_runs":0},"t10":{"match_id":"0","inning_id":"0","matches":"8","innings":"8","balls":"61","overs":"10.1","runs":"149","wickets":"7","bestinning":"3\/25","bestmatch":"3\/25","econ":"14.66","average":"21.29","strike":"8.71","wicket4i":"0","wicket5i":"0","wicket10m":"0"}}},"etag":"09dcf2f11c9d08fd1f02e86f08f19215","modified":"2025-07-11 04:31:36","datetime":"2025-07-11 04:31:36","api_version":"3.0"}', Modified = GetDate() WHERE Id = 120400 AND DataTypeId = 6 END Player profile of Jafer Chohan, England