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:bd95e892-d882-4744-b038-300855a3b9be
Error Number:207,State:1,Class:16If not Exists (Select ApiId From api_Data WHERE Id = 53693 AND DataTypeId = 6) BEGIN INSERT INTO api_Data (Id, DataTypeId, Json, Modified, StatusId, ErrorLog) VALUES (53693,6,'{"status":"ok","response":{"player":{"pid":53693,"title":"Tyrone Theophile","short_name":"T Theophile","first_name":"Tyrone Theophile","last_name":"","middle_name":"","birthdate":"1989-08-12","birthplace":"","country":"wi","primary_team":[],"logo_url":"","playing_role":"bat","batting_style":"Right Hand Bat","bowling_style":"","fielding_position":"","recent_match":0,"recent_appearance":0,"fantasy_player_rating":7.5,"facebook_profile":"","twitter_profile":"","instagram_profile":"","debut_data":"","thumb_url":"","nationality":"West Indies"},"batting":{"lista":{"match_id":0,"inning_id":0,"matches":34,"innings":34,"notout":2,"runs":605,"balls":0,"highest":107,"run100":1,"run50":0,"run4":0,"run6":0,"average":"18.90","strike":"","catches":11,"stumpings":0,"fastest50balls":0,"fastest100balls":0},"firstclass":{"match_id":0,"inning_id":0,"matches":68,"innings":127,"notout":9,"runs":3055,"balls":0,"highest":160,"run100":3,"run50":13,"run4":0,"run6":0,"average":"25.88","strike":"","catches":82,"stumpings":0,"fastest50balls":0,"fastest100balls":0},"t10":{"match_id":"0","inning_id":"0","matches":"48","innings":"45","notout":"9","runs":"627","balls":"441","highest":"61","run100":"0","run50":"2","run4":"33","run6":"47","average":"17.42","strike":"142.18","catches":"10","stumpings":"0"}},"bowling":{"lista":{"match_id":0,"inning_id":0,"matches":34,"innings":7,"balls":156,"overs":26,"runs":147,"wickets":4,"bestinning":"3\/33","bestmatch":"3\/33","econ":"5.65","average":"36.75","strike":"39.0","wicket4i":0,"wicket5i":0,"wicket10m":0,"hattrick":0,"expensive_over_runs":0},"firstclass":{"match_id":0,"inning_id":0,"matches":68,"innings":35,"balls":1251,"overs":208.3,"runs":612,"wickets":18,"bestinning":"5\/56","bestmatch":"5\/60","econ":"2.93","average":"34.00","strike":"69.5","wicket4i":1,"wicket5i":1,"wicket10m":0,"hattrick":0,"expensive_over_runs":0},"t10":{"match_id":"0","inning_id":"0","matches":"48","innings":"21","balls":"169","overs":"28.1","runs":"305","wickets":"17","bestinning":"1\/7","bestmatch":"1\/7","econ":"10.83","average":"17.94","strike":"9.94","wicket4i":"1","wicket5i":"0","wicket10m":"0"}}},"etag":"1e97123e1f37f8d7e46c53bfd44c9904","modified":"2025-06-24 12:52:00","datetime":"2025-06-24 12:52:00","api_version":"3.0"}', GetDate() , 0,'') END ELSE BEGIN Update api_Data Set Json = '{"status":"ok","response":{"player":{"pid":53693,"title":"Tyrone Theophile","short_name":"T Theophile","first_name":"Tyrone Theophile","last_name":"","middle_name":"","birthdate":"1989-08-12","birthplace":"","country":"wi","primary_team":[],"logo_url":"","playing_role":"bat","batting_style":"Right Hand Bat","bowling_style":"","fielding_position":"","recent_match":0,"recent_appearance":0,"fantasy_player_rating":7.5,"facebook_profile":"","twitter_profile":"","instagram_profile":"","debut_data":"","thumb_url":"","nationality":"West Indies"},"batting":{"lista":{"match_id":0,"inning_id":0,"matches":34,"innings":34,"notout":2,"runs":605,"balls":0,"highest":107,"run100":1,"run50":0,"run4":0,"run6":0,"average":"18.90","strike":"","catches":11,"stumpings":0,"fastest50balls":0,"fastest100balls":0},"firstclass":{"match_id":0,"inning_id":0,"matches":68,"innings":127,"notout":9,"runs":3055,"balls":0,"highest":160,"run100":3,"run50":13,"run4":0,"run6":0,"average":"25.88","strike":"","catches":82,"stumpings":0,"fastest50balls":0,"fastest100balls":0},"t10":{"match_id":"0","inning_id":"0","matches":"48","innings":"45","notout":"9","runs":"627","balls":"441","highest":"61","run100":"0","run50":"2","run4":"33","run6":"47","average":"17.42","strike":"142.18","catches":"10","stumpings":"0"}},"bowling":{"lista":{"match_id":0,"inning_id":0,"matches":34,"innings":7,"balls":156,"overs":26,"runs":147,"wickets":4,"bestinning":"3\/33","bestmatch":"3\/33","econ":"5.65","average":"36.75","strike":"39.0","wicket4i":0,"wicket5i":0,"wicket10m":0,"hattrick":0,"expensive_over_runs":0},"firstclass":{"match_id":0,"inning_id":0,"matches":68,"innings":35,"balls":1251,"overs":208.3,"runs":612,"wickets":18,"bestinning":"5\/56","bestmatch":"5\/60","econ":"2.93","average":"34.00","strike":"69.5","wicket4i":1,"wicket5i":1,"wicket10m":0,"hattrick":0,"expensive_over_runs":0},"t10":{"match_id":"0","inning_id":"0","matches":"48","innings":"21","balls":"169","overs":"28.1","runs":"305","wickets":"17","bestinning":"1\/7","bestmatch":"1\/7","econ":"10.83","average":"17.94","strike":"9.94","wicket4i":"1","wicket5i":"0","wicket10m":"0"}}},"etag":"1e97123e1f37f8d7e46c53bfd44c9904","modified":"2025-06-24 12:52:00","datetime":"2025-06-24 12:52:00","api_version":"3.0"}', Modified = GetDate() WHERE Id = 53693 AND DataTypeId = 6 END
Player profile of Tyrone Theophile, West Indies