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:12031a20-a580-4e0d-b3fe-fcb1dae4c6ec
Error Number:207,State:1,Class:16If not Exists (Select ApiId From api_Data WHERE Id = 119602 AND DataTypeId = 6) BEGIN INSERT INTO api_Data (Id, DataTypeId, Json, Modified, StatusId, ErrorLog) VALUES (119602,6,'{"status":"ok","response":{"player":{"pid":119602,"title":"Cameron Melly","short_name":"C Melly","first_name":"Cameron Melly","last_name":"","middle_name":"","birthdate":"2002-09-20","birthplace":"","country":"ie","primary_team":[],"logo_url":"","playing_role":"bat","batting_style":"Right Hand Bat","bowling_style":"Right Arm Fast","fielding_position":"","recent_match":0,"recent_appearance":0,"fantasy_player_rating":8.5,"facebook_profile":"","twitter_profile":"","instagram_profile":"","debut_data":"","thumb_url":"","nationality":"Ireland"},"batting":{"t20":{"match_id":0,"inning_id":0,"matches":11,"innings":9,"notout":3,"runs":144,"balls":93,"highest":40,"run100":0,"run50":0,"run4":15,"run6":6,"average":"24.00","strike":"154.83","catches":5,"stumpings":0,"fastest50balls":0,"fastest100balls":0},"lista":{"match_id":0,"inning_id":0,"matches":14,"innings":14,"notout":2,"runs":237,"balls":303,"highest":44,"run100":0,"run50":0,"run4":28,"run6":3,"average":"19.75","strike":"78.21","catches":6,"stumpings":0,"fastest50balls":0,"fastest100balls":0},"t10":{"match_id":"0","inning_id":"0","matches":"27","innings":"18","notout":"7","runs":"473","balls":"238","highest":"69","run100":"0","run50":"5","run4":"35","run6":"40","average":"43.00","strike":"198.74","catches":"6","stumpings":"0"}},"bowling":{"t20":{"match_id":0,"inning_id":0,"matches":11,"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":14,"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},"t10":{"match_id":"0","inning_id":"0","matches":"27","innings":"0","balls":"0","overs":"0","runs":"0","wickets":"0","bestinning":"","bestmatch":"","econ":"","average":"","strike":"","wicket4i":"0","wicket5i":"0","wicket10m":"0"}}},"etag":"9dc2a98d23997fa5b4de0b7b8c79bd46","modified":"2025-06-05 13:03:34","datetime":"2025-06-05 13:03:34","api_version":"3.0"}', GetDate() , 0,'') END ELSE BEGIN Update api_Data Set Json = '{"status":"ok","response":{"player":{"pid":119602,"title":"Cameron Melly","short_name":"C Melly","first_name":"Cameron Melly","last_name":"","middle_name":"","birthdate":"2002-09-20","birthplace":"","country":"ie","primary_team":[],"logo_url":"","playing_role":"bat","batting_style":"Right Hand Bat","bowling_style":"Right Arm Fast","fielding_position":"","recent_match":0,"recent_appearance":0,"fantasy_player_rating":8.5,"facebook_profile":"","twitter_profile":"","instagram_profile":"","debut_data":"","thumb_url":"","nationality":"Ireland"},"batting":{"t20":{"match_id":0,"inning_id":0,"matches":11,"innings":9,"notout":3,"runs":144,"balls":93,"highest":40,"run100":0,"run50":0,"run4":15,"run6":6,"average":"24.00","strike":"154.83","catches":5,"stumpings":0,"fastest50balls":0,"fastest100balls":0},"lista":{"match_id":0,"inning_id":0,"matches":14,"innings":14,"notout":2,"runs":237,"balls":303,"highest":44,"run100":0,"run50":0,"run4":28,"run6":3,"average":"19.75","strike":"78.21","catches":6,"stumpings":0,"fastest50balls":0,"fastest100balls":0},"t10":{"match_id":"0","inning_id":"0","matches":"27","innings":"18","notout":"7","runs":"473","balls":"238","highest":"69","run100":"0","run50":"5","run4":"35","run6":"40","average":"43.00","strike":"198.74","catches":"6","stumpings":"0"}},"bowling":{"t20":{"match_id":0,"inning_id":0,"matches":11,"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":14,"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},"t10":{"match_id":"0","inning_id":"0","matches":"27","innings":"0","balls":"0","overs":"0","runs":"0","wickets":"0","bestinning":"","bestmatch":"","econ":"","average":"","strike":"","wicket4i":"0","wicket5i":"0","wicket10m":"0"}}},"etag":"9dc2a98d23997fa5b4de0b7b8c79bd46","modified":"2025-06-05 13:03:34","datetime":"2025-06-05 13:03:34","api_version":"3.0"}', Modified = GetDate() WHERE Id = 119602 AND DataTypeId = 6 END Player profile of Cameron Melly, Ireland