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:dad979d0-e78b-45a1-aa85-b42aa28e152a
Error Number:207,State:1,Class:16If not Exists (Select ApiId From api_Data WHERE Id = 60937 AND DataTypeId = 6) BEGIN INSERT INTO api_Data (Id, DataTypeId, Json, Modified, StatusId, ErrorLog) VALUES (60937,6,'{"status":"ok","response":{"player":{"pid":60937,"title":"Sachin Tharuka","short_name":"S Tharuka","first_name":"Sachin Tharuka","last_name":"","middle_name":"","birthdate":"1997-07-12","birthplace":"","country":"lk","primary_team":[],"logo_url":"","playing_role":"wk","batting_style":"Right Hand Bat","bowling_style":"Right Arm Off Break","fielding_position":"","recent_match":0,"recent_appearance":0,"fantasy_player_rating":8.5,"facebook_profile":"","twitter_profile":"","instagram_profile":"","debut_data":"","thumb_url":"","nationality":"Sri Lanka"},"batting":{"t10":{"match_id":"0","inning_id":"0","matches":"8","innings":"8","notout":"0","runs":"131","balls":"83","highest":"45","run100":"0","run50":"0","run4":"6","run6":"12","average":"16.38","strike":"157.83","catches":"5","stumpings":"0"}},"bowling":{"t10":{"match_id":"0","inning_id":"0","matches":"8","innings":"7","balls":"84","overs":"14","runs":"114","wickets":"10","bestinning":"3\/31","bestmatch":"3\/31","econ":"8.14","average":"11.40","strike":"8.40","wicket4i":"0","wicket5i":"0","wicket10m":"0"}}},"etag":"042a72c1275964876e5c767b9e534406","modified":"2025-06-01 09:37:29","datetime":"2025-06-01 09:37:29","api_version":"3.0"}', GetDate() , 0,'') END ELSE BEGIN Update api_Data Set Json = '{"status":"ok","response":{"player":{"pid":60937,"title":"Sachin Tharuka","short_name":"S Tharuka","first_name":"Sachin Tharuka","last_name":"","middle_name":"","birthdate":"1997-07-12","birthplace":"","country":"lk","primary_team":[],"logo_url":"","playing_role":"wk","batting_style":"Right Hand Bat","bowling_style":"Right Arm Off Break","fielding_position":"","recent_match":0,"recent_appearance":0,"fantasy_player_rating":8.5,"facebook_profile":"","twitter_profile":"","instagram_profile":"","debut_data":"","thumb_url":"","nationality":"Sri Lanka"},"batting":{"t10":{"match_id":"0","inning_id":"0","matches":"8","innings":"8","notout":"0","runs":"131","balls":"83","highest":"45","run100":"0","run50":"0","run4":"6","run6":"12","average":"16.38","strike":"157.83","catches":"5","stumpings":"0"}},"bowling":{"t10":{"match_id":"0","inning_id":"0","matches":"8","innings":"7","balls":"84","overs":"14","runs":"114","wickets":"10","bestinning":"3\/31","bestmatch":"3\/31","econ":"8.14","average":"11.40","strike":"8.40","wicket4i":"0","wicket5i":"0","wicket10m":"0"}}},"etag":"042a72c1275964876e5c767b9e534406","modified":"2025-06-01 09:37:29","datetime":"2025-06-01 09:37:29","api_version":"3.0"}', Modified = GetDate() WHERE Id = 60937 AND DataTypeId = 6 END Player profile of Sachin Tharuka, Sri Lanka