2025-08-16 09:58:39 | Log4Net | An ERROR occured while fetching DX Recent User/Job Reports 
 Metadata : { DeploymentKey = THX, OrganizationId = 192690, UserId = 22744195 } 
 Error Message : Error converting value "@LoggedInUserId is not a parameter for procedure Statistics.GetRecentReports." to type 'System.Collections.Generic.List`1[VitalStatsWebAPIServicesBL.VitalStatsDTO.RecentReportDetails]'. Path '', line 1, position 79. 
 StackTrace :    at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
   at VitalStatsWebAPIServicesBL.VitalStatsDBRepository.VitalStatsServiceDAO.LoadRecentReports(RecentReports recentReports) in D:\VitalAxis\Jenkins_Build\VITALSTATS\QC\buildspace\VITALSTATS\079_110820251504\processing\src\Application\VitalStatsWebAPIServicesBL\VitalStatsDBRepository\VitalStatsServiceDAO.cs:line 3779
   at VitalStatsWebAPIServices.Controllers.VitalStatsServiceController.LoadRecentReports(RecentReports recentReports) in D:\VitalAxis\Jenkins_Build\VITALSTATS\QC\buildspace\VITALSTATS\079_110820251504\processing\src\Application\VitalStatsWebAPIServices\Controllers\VitalStatsServiceController.cs:line 346 
 Inner Exception : System.ArgumentException: Could not cast or convert from System.String to System.Collections.Generic.List`1[VitalStatsWebAPIServicesBL.VitalStatsDTO.RecentReportDetails].
   at Newtonsoft.Json.Utilities.ConvertUtils.EnsureTypeAssignable(Object value, Type initialType, Type targetType)
   at Newtonsoft.Json.Utilities.ConvertUtils.ConvertOrCast(Object initialValue, CultureInfo culture, Type targetType)
   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType(JsonReader reader, Object value, CultureInfo culture, JsonContract contract, Type targetType) 

 2025-08-16 18:44:21 | Log4Net | An ERROR occured while fetching GenerateCSVFile 
 Metadata : { DeploymentKey = VC, ReportId = 864 } 
 Error Message : The process cannot access the file '\\vitaleaststorage.file.core.windows.net\websites\VitalAxis-IIS\VALive-VitalStats\Files\Patient Payment Collected Summary20250816184421.csv' because it is being used by another process. 
 StackTrace :    at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
   at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
   at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
   at VitalStatsWebAPIServicesBL.VitalStatsDBRepository.VitalStatsServiceDAO.GenerateCSVFile(DataTable tblData, OrganizationReportsDefinition OrgRepDefReports, VSReportResult vSReportResult, SavedReportsDTO& savedReportsDTO, Int64 ReportId, String csvName, Int64 reportIdToBeSaved, String RequestIdentifier) in D:\VitalAxis\Jenkins_Build\VITALSTATS\QC\buildspace\VITALSTATS\079_110820251504\processing\src\Application\VitalStatsWebAPIServicesBL\VitalStatsDBRepository\VitalStatsServiceDAO.cs:line 4949 

 2025-08-16 18:44:21 | Log4Net | An ERROR occured while fetching VC Download Raw Report 
 Metadata : { DeploymentKey = VC, OrganizationId = 8, ReportId = 864 } 
 Error Message : Value cannot be null.
Parameter name: fileContents 
 StackTrace :    at Microsoft.AspNetCore.Mvc.FileContentResult..ctor(Byte[] fileContents, MediaTypeHeaderValue contentType)
   at Microsoft.AspNetCore.Mvc.FileContentResult..ctor(Byte[] fileContents, String contentType)
   at Microsoft.AspNetCore.Mvc.ControllerBase.File(Byte[] fileContents, String contentType, String fileDownloadName)
   at VitalStatsWebAPIServices.Controllers.VitalStatsServiceController.DownloadRawData(OrganizationReportsDefinition OrgRepDef) in D:\VitalAxis\Jenkins_Build\VITALSTATS\QC\buildspace\VITALSTATS\079_110820251504\processing\src\Application\VitalStatsWebAPIServices\Controllers\VitalStatsServiceController.cs:line 699 

 