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:a8f1bee4-5ff2-40a0-add4-6e467aac2551
Error Number:207,State:1,Class:16If not Exists (Select ApiId From api_Data WHERE Id = 147733 AND DataTypeId = 6) BEGIN INSERT INTO api_Data (Id, DataTypeId, Json, Modified, StatusId, ErrorLog) VALUES (147733,6,'{"status":"ok","response":{"player":{"pid":147733,"title":"Rehan Khalid","short_name":"R Khalid","first_name":"Rehan Khalid","last_name":"","middle_name":"","birthdate":"","birthplace":"","country":"es","primary_team":[],"logo_url":"","playing_role":"all","batting_style":"","bowling_style":"","fielding_position":"","recent_match":0,"recent_appearance":0,"fantasy_player_rating":6,"facebook_profile":"","twitter_profile":"","instagram_profile":"","debut_data":"","thumb_url":"","nationality":"Spain"},"batting":{"t10":{"match_id":"0","inning_id":"0","matches":"6","innings":"6","notout":"1","runs":"51","balls":"27","highest":"36","run100":"0","run50":"0","run4":"3","run6":"5","average":"10.20","strike":"188.89","catches":"0","stumpings":"0"},"tb10":{"match_id":"0","inning_id":"0","matches":"","innings":"","notout":"","runs":"","balls":"","highest":"","run100":"","run50":"","run4":"","run6":"","average":"","strike":"","catches":"","stumpings":""}},"bowling":{"t10":{"match_id":"0","inning_id":"0","matches":"6","innings":"4","balls":"36","overs":"6","runs":"81","wickets":"0","bestinning":"0\/28","bestmatch":"","econ":"13.50","average":"","strike":"","wicket4i":"0","wicket5i":"0","wicket10m":"0"},"tb10":{"match_id":"0","inning_id":"0","matches":"0","innings":"","balls":"","overs":"0","runs":"","wickets":"","bestinning":"","bestmatch":"","econ":"","average":"","strike":"","wicket4i":"","wicket5i":"","wicket10m":""}}},"etag":"632779154ee6d0d646d37ae4ac24241e","modified":"2025-06-15 13:37:16","datetime":"2025-06-15 13:37:16","api_version":"3.0"}', GetDate() , 0,'') END ELSE BEGIN Update api_Data Set Json = '{"status":"ok","response":{"player":{"pid":147733,"title":"Rehan Khalid","short_name":"R Khalid","first_name":"Rehan Khalid","last_name":"","middle_name":"","birthdate":"","birthplace":"","country":"es","primary_team":[],"logo_url":"","playing_role":"all","batting_style":"","bowling_style":"","fielding_position":"","recent_match":0,"recent_appearance":0,"fantasy_player_rating":6,"facebook_profile":"","twitter_profile":"","instagram_profile":"","debut_data":"","thumb_url":"","nationality":"Spain"},"batting":{"t10":{"match_id":"0","inning_id":"0","matches":"6","innings":"6","notout":"1","runs":"51","balls":"27","highest":"36","run100":"0","run50":"0","run4":"3","run6":"5","average":"10.20","strike":"188.89","catches":"0","stumpings":"0"},"tb10":{"match_id":"0","inning_id":"0","matches":"","innings":"","notout":"","runs":"","balls":"","highest":"","run100":"","run50":"","run4":"","run6":"","average":"","strike":"","catches":"","stumpings":""}},"bowling":{"t10":{"match_id":"0","inning_id":"0","matches":"6","innings":"4","balls":"36","overs":"6","runs":"81","wickets":"0","bestinning":"0\/28","bestmatch":"","econ":"13.50","average":"","strike":"","wicket4i":"0","wicket5i":"0","wicket10m":"0"},"tb10":{"match_id":"0","inning_id":"0","matches":"0","innings":"","balls":"","overs":"0","runs":"","wickets":"","bestinning":"","bestmatch":"","econ":"","average":"","strike":"","wicket4i":"","wicket5i":"","wicket10m":""}}},"etag":"632779154ee6d0d646d37ae4ac24241e","modified":"2025-06-15 13:37:16","datetime":"2025-06-15 13:37:16","api_version":"3.0"}', Modified = GetDate() WHERE Id = 147733 AND DataTypeId = 6 END
Player profile of Rehan Khalid, Spain