Time: 17/11/2025 07:14:07 PM PageName: DataTableResult String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: ExecuteReader: CommandText property has not been initialized Source: System.Data StackTrace: at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void ValidateCommand(System.String, Boolean) Time: 17/11/2025 07:14:07 PM PageName: IndividualLoan_IndvLoanApplicationVerification String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_cr1qg4dq StackTrace: at IndividualLoan_IndvLoanApplicationVerification.ddlLoanNo_SelectedIndexChanged(Object sender, EventArgs e) TargetSite: Void ddlLoanNo_SelectedIndexChanged(System.Object, System.EventArgs) Time: 17/11/2025 07:14:24 PM PageName: DataTableResult String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: ExecuteReader: CommandText property has not been initialized Source: System.Data StackTrace: at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void ValidateCommand(System.String, Boolean) Time: 17/11/2025 07:14:24 PM PageName: IndividualLoan_IndvLoanApplicationVerification String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_cr1qg4dq StackTrace: at IndividualLoan_IndvLoanApplicationVerification.ddlLoanNo_SelectedIndexChanged(Object sender, EventArgs e) TargetSite: Void ddlLoanNo_SelectedIndexChanged(System.Object, System.EventArgs) Time: 17/11/2025 07:14:47 PM PageName: DataTableResult String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: ExecuteReader: CommandText property has not been initialized Source: System.Data StackTrace: at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void ValidateCommand(System.String, Boolean) Time: 17/11/2025 07:14:47 PM PageName: IndividualLoan_IndvLoanApplicationVerification String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_cr1qg4dq StackTrace: at IndividualLoan_IndvLoanApplicationVerification.ddlLoanNo_SelectedIndexChanged(Object sender, EventArgs e) TargetSite: Void ddlLoanNo_SelectedIndexChanged(System.Object, System.EventArgs) Time: 17/11/2025 07:17:02 PM PageName: DataTableResult String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: ExecuteReader: CommandText property has not been initialized Source: System.Data StackTrace: at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void ValidateCommand(System.String, Boolean) Time: 17/11/2025 07:17:02 PM PageName: IndividualLoan_IndvLoanApplicationVerification String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_cr1qg4dq StackTrace: at IndividualLoan_IndvLoanApplicationVerification.ddlLoanNo_SelectedIndexChanged(Object sender, EventArgs e) TargetSite: Void ddlLoanNo_SelectedIndexChanged(System.Object, System.EventArgs) Time: 17/11/2025 07:17:35 PM PageName: DataTableResult String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: ExecuteReader: CommandText property has not been initialized Source: System.Data StackTrace: at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void ValidateCommand(System.String, Boolean) Time: 17/11/2025 07:17:35 PM PageName: IndividualLoan_IndvLoanApplicationVerification String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_cr1qg4dq StackTrace: at IndividualLoan_IndvLoanApplicationVerification.ddlLoanNo_SelectedIndexChanged(Object sender, EventArgs e) TargetSite: Void ddlLoanNo_SelectedIndexChanged(System.Object, System.EventArgs) Time: 17/11/2025 07:23:14 PM PageName: DataTableResult String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: ExecuteReader: CommandText property has not been initialized Source: System.Data StackTrace: at System.Data.SqlClient.SqlCommand.ValidateCommand(String method, Boolean async) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void ValidateCommand(System.String, Boolean) Time: 17/11/2025 07:23:14 PM PageName: IndividualLoan_IndvLoanApplicationVerification String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_cr1qg4dq StackTrace: at IndividualLoan_IndvLoanApplicationVerification.ddlLoanNo_SelectedIndexChanged(Object sender, EventArgs e) TargetSite: Void ddlLoanNo_SelectedIndexChanged(System.Object, System.EventArgs) Time: 18/11/2025 10:47:40 AM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 18/11/2025 11:47:54 AM PageName: Employee_PrintRDLCPage String str: SELECT (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')+'ResponsiveCSS/images/EmployeeIDCardHeader.jpg' AS C1, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')+'ResponsiveCSS/images/EmployeeIDCardSignature.jpg' AS C2, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')+'ResponsiveCSS/images/EmployeeIDCardFooter.jpg' AS C3,(SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')AS CompanyURL, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL') +(SELECT replace(ReportValue, '~/', '')AS EmployeeKYCFolder FROM ProjectReportSetting WITH(nolock) WHERE ReportName = 'EmployeeKYCFolder')+a.EmployeeId + '/' + a.EmployeePhoto AS C10, a.EmployeeName AS C11, a.EmployeeId AS C12, convert(CHAR,a.EmpJoinDate,106)AS C13, 'N/A'AS C14, convert(CHAR,a.DesignationName,106)AS C15, (SELECT replace(ReportValue, '~/', '')AS EmployeeIDCardFrontRDLC FROM ProjectReportSetting WITH(nolock) WHERE ReportName = 'EmployeeIDCardFrontRDLC')AS C95 FROM EmployeeRegistrationDetail a WITH(nolock) WHERE a.EmployeeId='EMP00146' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at Employee_PrintRDLCPage.EmployeeIDCardFront() TargetSite: Void AbortInternal() Time: 18/11/2025 11:47:54 AM PageName: Employee_PrintRDLCPage String str: SELECT (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')+'ResponsiveCSS/images/EmployeeIDCardHeader.jpg' AS C1, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')+'ResponsiveCSS/images/EmployeeIDCardSignature.jpg' AS C2, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')+'ResponsiveCSS/images/EmployeeIDCardFooter.jpg' AS C3,(SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')AS CompanyURL, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL') +(SELECT replace(ReportValue, '~/', '')AS EmployeeKYCFolder FROM ProjectReportSetting WITH(nolock) WHERE ReportName = 'EmployeeKYCFolder')+a.EmployeeId + '/' + a.EmployeePhoto AS C10, a.EmployeeName AS C11, a.EmployeeId AS C12, convert(CHAR,a.EmpJoinDate,106)AS C13, 'N/A'AS C14, convert(CHAR,a.DesignationName,106)AS C15, (SELECT replace(ReportValue, '~/', '')AS EmployeeIDCardFrontRDLC FROM ProjectReportSetting WITH(nolock) WHERE ReportName = 'EmployeeIDCardFrontRDLC')AS C95 FROM EmployeeRegistrationDetail a WITH(nolock) WHERE a.EmployeeId='EMP00146' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_3qkf2zc4 StackTrace: at Employee_PrintRDLCPage.EmployeeIDCardFront() at Employee_PrintRDLCPage.Page_Load(Object sender, EventArgs e) TargetSite: Void EmployeeIDCardFront() Time: 18/11/2025 11:47:59 AM PageName: Employee_PrintRDLCPage String str: SELECT (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')+'ResponsiveCSS/images/EmployeeIDCardBackImage.jpg' AS C1, (SELECT ReportValue AS EmployeeIDCardBackRDLC FROM ProjectReportSetting WITH(nolock) WHERE ReportName='EmployeeIDCardBackRDLC')AS C95 FROM EmployeeRegistrationDetail a WITH(nolock) WHERE a.EmployeeId='EMP00146' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at Employee_PrintRDLCPage.EmployeeIDCardBack() TargetSite: Void AbortInternal() Time: 18/11/2025 11:47:59 AM PageName: Employee_PrintRDLCPage String str: SELECT (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')+'ResponsiveCSS/images/EmployeeIDCardBackImage.jpg' AS C1, (SELECT ReportValue AS EmployeeIDCardBackRDLC FROM ProjectReportSetting WITH(nolock) WHERE ReportName='EmployeeIDCardBackRDLC')AS C95 FROM EmployeeRegistrationDetail a WITH(nolock) WHERE a.EmployeeId='EMP00146' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_3qkf2zc4 StackTrace: at Employee_PrintRDLCPage.EmployeeIDCardBack() at Employee_PrintRDLCPage.Page_Load(Object sender, EventArgs e) TargetSite: Void EmployeeIDCardBack() Time: 18/11/2025 03:13:40 PM PageName: GroupLoan_GroupMemberUpdateVerification String str: SELECT RelationId, RelationName FROM RelationNameMaster WITH(nolock) WHERE RelationStatus='Active' ORDER BY RelationName ; SELECT BankId, BankName FROM BankNameMaster WITH(nolock) WHERE BankStatus='Active' ORDER BY BankName ; SELECT StateId, StateName FROM StateNameMaster WITH(nolock) WHERE StateStatus='Active' ORDER BY StateName ; SELECT ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserName')AS APIUserName, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserStatus')AS APIUserStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='AadharNoVerificationAPI')AS AadharNoVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='PANNoVerificationAPI')AS PANNoVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='VoterIdVerificationAPI')AS VoterIdVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='BankAccountAdvanceVerificationAPI')AS BankAccountAdvanceVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberProfileStatus')AS GroupMemberProfileStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberCGTStatus')AS GroupMemberCGTStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='IndividualMemberCGT')AS IndividualMemberCGT, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberAadharNo')AS GroupMemberAadharNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberAadharVerify')AS GroupMemberAadharVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberPANNo')AS GroupMemberPANNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberPANVerify')AS GroupMemberPANVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberVoterId')AS GroupMemberVoterId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberVoterVerify')AS GroupMemberVoterVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberMobileNo')AS GroupMemberMobileNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberMobileVerify')AS GroupMemberMobileVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberSelfEdit')AS GroupMemberSelfEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberGuardianEdit')AS GroupMemberGuardianEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberLowerAge')AS GroupMemberLowerAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberUpperAge')AS GroupMemberUpperAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeAadharNo')AS GroupNomineeAadharNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeAadharVerify')AS GroupNomineeAadharVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineePANNo')AS GroupNomineePANNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineePANVerify')AS GroupNomineePANVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeVoterId')AS GroupNomineeVoterId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeVoterVerify')AS GroupNomineeVoterVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeMobileNo')AS GroupNomineeMobileNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeMobileVerify')AS GroupNomineeMobileVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeSelfEdit')AS GroupNomineeSelfEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeGuardianEdit')AS GroupNomineeGuardianEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeLowerAge')AS GroupNomineeLowerAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeUpperAge')AS GroupNomineeUpperAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberId')AS GroupMemberId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberRegSMS')AS GroupMemberRegSMS, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupLoanStatus')AS GroupLoanStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='IndividualLoanStatus')AS IndividualLoanStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupLoanBankAccount')AS GroupLoanBankAccount, ( SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')AS CompanyURL, ( SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupMemberKYCFolder')AS GroupMemberKYCFolder, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNoOfMemberKYC')AS GroupNoOfMemberKYC, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNoOfNomineeKYC')AS GroupNoOfNomineeKYC, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberKYCVerify')AS GroupMemberKYCVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeKYCVerify')AS GroupNomineeKYCVerify ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Column 'MemberProfileStatus' does not belong to table DSResult3. Source: System.Data StackTrace: at System.Data.DataRow.GetDataColumn(String columnName) at System.Data.DataRow.get_Item(String columnName) at GroupLoan_GroupMemberUpdateVerification.FillDDLData() TargetSite: System.Data.DataColumn GetDataColumn(System.String) Time: 18/11/2025 11:52:48 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 19/11/2025 03:45:48 PM PageName: GroupLoan_PrintGroupMemberCibilEquifaxHTML String str: SELECT a.SrNo, a.MemberId, a.MemberName, a.MemberType, a.CibilPersonName, a.ReqFileName, a.ResFileName, rtrim(Convert(CHAR,a.EntryTime,106))+' '+rtrim(Convert(CHAR,a.EntryTime,108))AS EntryTime, a.EntryUser, a.EquifaxScoreName, a.EquifaxScoreValue, a.ScoreDetailName, a.ScoreDetailType, a.ScoreDetailValue, a.ScoreDetail1Code, a.ScoreDetail1Description, a.ScoreDetail2Code, a.ScoreDetail2Description, a.ONoOfOpenAccount, a.ONoOfPastDueAccount, a.OTotalOutstanding, a.OTotalInstallment, a.RNoOfOpenAccount, a.RNoOfPastDueAccount, a.RTotalOutstanding, a.RTotalInstallment, a.RTotalSanctionAmount, a.RTotalAccount, a.RTotalPastDueAmount, a.RMaxDaysPastDue, a.RNoOfLoanWithReportedEMI, a.RTotalWriteOffAmount, a.RTotalHighCredit, a.ROldestAccount, a.RRecentAccount, a.MNoOfOpenAccount, a.MNoOfPastDueAccount, a.MTotalOutstanding, a.MTotalInstallment, a.MTotalSanctionAmount, a.MTotalAccount, a.MTotalPastDueAmount, a.MMaxDaysPastDue, a.MNoOfLoanWithReportedEMI, a.MTotalWriteOffAmount, a.MTotalHighCredit, a.MOldestAccount, a.MRecentAccount, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyPhysical')+(SELECT replace(replace(ReportValue,'~',''),'/','\') FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupMemberKYCFolder')AS MemberCibilFolder FROM GroupMemberCibilEquifax a WITH(nolock) WHERE a.SrNo='31' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Could not find file 'C:\inetpub\vhosts\valourinfotech.in\grouploan.valourinfotech.in\UploadedDocs\GroupMemberKYC\M101000006\M101000006MemEquiRes638871509425202391.txt'. Source: mscorlib StackTrace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) at System.IO.StreamReader..ctor(String path, Encoding encoding) at System.IO.File.InternalReadAllLines(String path, Encoding encoding) at GroupLoan_PrintGroupMemberCibilEquifaxHTML.ViewCBDetail(String SrNo) TargetSite: Void WinIOError(Int32, System.String) Time: 19/11/2025 03:45:53 PM PageName: GroupLoan_PrintGroupMemberCibilEquifaxHTML String str: SELECT a.SrNo, a.MemberId, a.MemberName, a.MemberType, a.CibilPersonName, a.ReqFileName, a.ResFileName, rtrim(Convert(CHAR,a.EntryTime,106))+' '+rtrim(Convert(CHAR,a.EntryTime,108))AS EntryTime, a.EntryUser, a.EquifaxScoreName, a.EquifaxScoreValue, a.ScoreDetailName, a.ScoreDetailType, a.ScoreDetailValue, a.ScoreDetail1Code, a.ScoreDetail1Description, a.ScoreDetail2Code, a.ScoreDetail2Description, a.ONoOfOpenAccount, a.ONoOfPastDueAccount, a.OTotalOutstanding, a.OTotalInstallment, a.RNoOfOpenAccount, a.RNoOfPastDueAccount, a.RTotalOutstanding, a.RTotalInstallment, a.RTotalSanctionAmount, a.RTotalAccount, a.RTotalPastDueAmount, a.RMaxDaysPastDue, a.RNoOfLoanWithReportedEMI, a.RTotalWriteOffAmount, a.RTotalHighCredit, a.ROldestAccount, a.RRecentAccount, a.MNoOfOpenAccount, a.MNoOfPastDueAccount, a.MTotalOutstanding, a.MTotalInstallment, a.MTotalSanctionAmount, a.MTotalAccount, a.MTotalPastDueAmount, a.MMaxDaysPastDue, a.MNoOfLoanWithReportedEMI, a.MTotalWriteOffAmount, a.MTotalHighCredit, a.MOldestAccount, a.MRecentAccount, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyPhysical')+(SELECT replace(replace(ReportValue,'~',''),'/','\') FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupMemberKYCFolder')AS MemberCibilFolder FROM GroupMemberCibilEquifax a WITH(nolock) WHERE a.SrNo='32' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Could not find file 'C:\inetpub\vhosts\valourinfotech.in\grouploan.valourinfotech.in\UploadedDocs\GroupMemberKYC\M101000006\M101000006NomEquiRes638871509555991346.txt'. Source: mscorlib StackTrace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) at System.IO.StreamReader..ctor(String path, Encoding encoding) at System.IO.File.InternalReadAllLines(String path, Encoding encoding) at GroupLoan_PrintGroupMemberCibilEquifaxHTML.ViewCBDetail(String SrNo) TargetSite: Void WinIOError(Int32, System.String) Time: 19/11/2025 06:34:14 PM PageName: GroupLoan_GroupLoanFeePaymentReverse String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_nccoyx1u StackTrace: at GroupLoan_GroupLoanFeePaymentReverse.btnSubmit_Click(Object sender, EventArgs e) TargetSite: Void btnSubmit_Click(System.Object, System.EventArgs) Time: 19/11/2025 06:34:21 PM PageName: GroupLoan_GroupLoanFeePaymentReverse String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_nccoyx1u StackTrace: at GroupLoan_GroupLoanFeePaymentReverse.btnSubmit_Click(Object sender, EventArgs e) TargetSite: Void btnSubmit_Click(System.Object, System.EventArgs) Time: 19/11/2025 06:35:37 PM PageName: GroupLoan_GroupLoanFeePaymentReverse String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_nccoyx1u StackTrace: at GroupLoan_GroupLoanFeePaymentReverse.btnSubmit_Click(Object sender, EventArgs e) TargetSite: Void btnSubmit_Click(System.Object, System.EventArgs) Time: 22/11/2025 10:45:14 AM PageName: UserMasterSetting_DashBoardEmployee String str: SELECT MonthYear, isnull(Disbursed,0)AS Disbursed FROM DashBoardGroupLoanMonthGraphicalReport WHERE 1=1 ORDER BY SrNo DESC String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_3dkmabqs StackTrace: at UserMasterSetting_DashBoardEmployee.FillDisbursementGraph() TargetSite: Void FillDisbursementGraph() Time: 22/11/2025 10:45:14 AM PageName: UserMasterSetting_DashBoardEmployee String str: SELECT a.ESId, a.BranchName, a.DepartmentName, a.DesignationName, a.EmployeeType, rtrim(Convert(CHAR,a.FromDate,106))+' - '+rtrim(Convert(CHAR,a.ToDate,106))AS SalaryPeriod, a.EmployeeId, a.EmployeeName, a.FinalNetPayable, a.NetPayable, a.Arrear, a.Incentive, a.Advance, a.LoanEMI, a.LeaveDeduction, a.LossOfPay, a.NoOfLeave, a.Holiday, a.Present, a.Absent, a.Worked, a.SalaryStatus, a.SalaryRemark, a.VoucherId, a.SalarySlipNo, a.SalaryOf1Day, a.TotalPayment, a.TotalPayable, a.TotalDeduction, a.CTCSalary, a.BasicPay, a.HouseRent, a.Dearness, a.Convence, a.Special, a.Medical, a.Communication, a.MealCoupen, a.Washing, a.Education, a.Professional, a.NightShift, a.BonusPay, a.NoticePay, a.LeaveTravel, a.Superannuation, a.OtherPay, a.Gratuity, a.SavingScheme, a.EmployerPF, a.EmployerESI, a.EmployerNPS, a.EmployeePF, a.EmployeeESI, a.EmployeeNPS, a.GroupInsurance, a.CanteenBill, a.TransportBill, a.MobileBill, a.ProfessionalTax, a.IncomeTax, a.OtherDeduction, a.SalaryMonth, a.SalaryYear FROM EmployeeSalaryDetail a WITH(nolock) WHERE 1=1 String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: A field or property with the name 'AttDay' was not found on the selected data source. Source: System.Web StackTrace: at System.Web.UI.WebControls.BoundField.TryGetSimplePropertyValue(Object dataItem, Object& data) at System.Web.UI.WebControls.BoundField.GetValue(Control controlContainer) at System.Web.UI.WebControls.BoundField.OnDataBindField(Object sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at UserMasterSetting_DashBoardEmployee.FillAttendence() TargetSite: Boolean TryGetSimplePropertyValue(System.Object, System.Object ByRef) Time: 22/11/2025 10:51:17 AM PageName: UserMasterSetting_DashBoardEmployee String str: SELECT MonthYear, isnull(Disbursed,0)AS Disbursed FROM DashBoardGroupLoanMonthGraphicalReport WHERE 1=1 ORDER BY SrNo DESC String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_3dkmabqs StackTrace: at UserMasterSetting_DashBoardEmployee.FillDisbursementGraph() TargetSite: Void FillDisbursementGraph() Time: 22/11/2025 10:51:17 AM PageName: UserMasterSetting_DashBoardEmployee String str: SELECT a.ESId, a.BranchName, a.DepartmentName, a.DesignationName, a.EmployeeType, rtrim(Convert(CHAR,a.FromDate,106))+' - '+rtrim(Convert(CHAR,a.ToDate,106))AS SalaryPeriod, a.EmployeeId, a.EmployeeName, a.FinalNetPayable, a.NetPayable, a.Arrear, a.Incentive, a.Advance, a.LoanEMI, a.LeaveDeduction, a.LossOfPay, a.NoOfLeave, a.Holiday, a.Present, a.Absent, a.Worked, a.SalaryStatus, a.SalaryRemark, a.VoucherId, a.SalarySlipNo, a.SalaryOf1Day, a.TotalPayment, a.TotalPayable, a.TotalDeduction, a.CTCSalary, a.BasicPay, a.HouseRent, a.Dearness, a.Convence, a.Special, a.Medical, a.Communication, a.MealCoupen, a.Washing, a.Education, a.Professional, a.NightShift, a.BonusPay, a.NoticePay, a.LeaveTravel, a.Superannuation, a.OtherPay, a.Gratuity, a.SavingScheme, a.EmployerPF, a.EmployerESI, a.EmployerNPS, a.EmployeePF, a.EmployeeESI, a.EmployeeNPS, a.GroupInsurance, a.CanteenBill, a.TransportBill, a.MobileBill, a.ProfessionalTax, a.IncomeTax, a.OtherDeduction, a.SalaryMonth, a.SalaryYear FROM EmployeeSalaryDetail a WITH(nolock) WHERE 1=1 String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: A field or property with the name 'AttDay' was not found on the selected data source. Source: System.Web StackTrace: at System.Web.UI.WebControls.BoundField.TryGetSimplePropertyValue(Object dataItem, Object& data) at System.Web.UI.WebControls.BoundField.GetValue(Control controlContainer) at System.Web.UI.WebControls.BoundField.OnDataBindField(Object sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at UserMasterSetting_DashBoardEmployee.FillAttendence() TargetSite: Boolean TryGetSimplePropertyValue(System.Object, System.Object ByRef) Time: 22/11/2025 11:04:35 AM PageName: UserMasterSetting_LoanAndEMICalculator String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at UserMasterSetting_LoanAndEMICalculator.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 22/11/2025 11:04:35 AM PageName: UserMasterSetting_LoanAndEMICalculator String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_vetf4doh StackTrace: at UserMasterSetting_LoanAndEMICalculator.ExportToExcel(DataTable DT, String fileName) at UserMasterSetting_LoanAndEMICalculator.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 22/11/2025 11:19:56 AM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 22/11/2025 11:36:54 AM PageName: DataTableResult String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND TermMode='BiWeekly' AND InterestType='Variable' AND EMIAmountType='Integer' AND FirstInstallmentType='EMIAmount' AND LoanGroup='GroupLoan' AND LoanTypeStatus='InActive' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanReportStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 11:36:54 AM PageName: GroupLoan_GroupLoanNoMasterList String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND TermMode='BiWeekly' AND InterestType='Variable' AND EMIAmountType='Integer' AND FirstInstallmentType='EMIAmount' AND LoanGroup='GroupLoan' AND LoanTypeStatus='InActive' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xj0cvuz1 StackTrace: at GroupLoan_GroupLoanNoMasterList.FillData() TargetSite: Void FillData() Time: 22/11/2025 11:37:49 AM PageName: DataTableResult String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND TermMode='BiWeekly' AND InterestType='Variable' AND EMIAmountType='Integer' AND FirstInstallmentType='EMIAmount' AND LoanGroup='GroupLoan' AND LoanTypeStatus='InActive' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanReportStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 11:37:49 AM PageName: GroupLoan_GroupLoanNoMasterList String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND TermMode='BiWeekly' AND InterestType='Variable' AND EMIAmountType='Integer' AND FirstInstallmentType='EMIAmount' AND LoanGroup='GroupLoan' AND LoanTypeStatus='InActive' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xj0cvuz1 StackTrace: at GroupLoan_GroupLoanNoMasterList.FillData() TargetSite: Void FillData() Time: 22/11/2025 11:37:56 AM PageName: DataTableResult String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND TermMode='BiWeekly' AND InterestType='Variable' AND EMIAmountType='Integer' AND FirstInstallmentType='EMIAmount' AND LoanGroup='GroupLoan' AND LoanTypeStatus='InActive' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanReportStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 11:37:56 AM PageName: GroupLoan_GroupLoanNoMasterList String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND TermMode='BiWeekly' AND InterestType='Variable' AND EMIAmountType='Integer' AND FirstInstallmentType='EMIAmount' AND LoanGroup='GroupLoan' AND LoanTypeStatus='InActive' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xj0cvuz1 StackTrace: at GroupLoan_GroupLoanNoMasterList.FillData() TargetSite: Void FillData() Time: 22/11/2025 11:38:41 AM PageName: DataTableResult String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, TermMode, NoPayingTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmountType, EMIAmount, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, InterestMethod, InterestType, FirstInstallmentType, PenaltyRateAnnual, GracePeriod, FirstEMIPayment, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, LoanTypeStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime FROM GroupLoanNoMaster WITH(nolock) WHERE GLoanTypeNo='M101000182' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'GracePeriod'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 11:38:41 AM PageName: GroupLoan_GroupLoanNoMasterDetail String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, TermMode, NoPayingTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmountType, EMIAmount, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, InterestMethod, InterestType, FirstInstallmentType, PenaltyRateAnnual, GracePeriod, FirstEMIPayment, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, LoanTypeStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime FROM GroupLoanNoMaster WITH(nolock) WHERE GLoanTypeNo='M101000182' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_0e3qb2yy StackTrace: at GroupLoan_GroupLoanNoMasterDetail.FillLoanDetail() TargetSite: Void FillLoanDetail() Time: 22/11/2025 11:41:13 AM PageName: DataTableResult String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, TermMode, MinimumTerm, MultipleTerm, MaximumTerm, NoPayingTerm, MinimumAmount, MultipleAmount, MaximumAmount, InterestMethod, InterestType, InterestRateMinimum, InterestRateAnnual, InterestRateMaximum, GracePeriod, PenaltyRateAnnual, FirstEMIPayment, EMIAmount, EMIAmountType, FirstInstallmentType, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanTypeStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND LoanTypeStatus='Active' AND GLoanTypeName LIKE '%27122000297%' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'GracePeriod'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 11:41:13 AM PageName: GroupLoan_GroupLoanNoMasterUpdation String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, TermMode, MinimumTerm, MultipleTerm, MaximumTerm, NoPayingTerm, MinimumAmount, MultipleAmount, MaximumAmount, InterestMethod, InterestType, InterestRateMinimum, InterestRateAnnual, InterestRateMaximum, GracePeriod, PenaltyRateAnnual, FirstEMIPayment, EMIAmount, EMIAmountType, FirstInstallmentType, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanTypeStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND LoanTypeStatus='Active' AND GLoanTypeName LIKE '%27122000297%' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_muaguz4k StackTrace: at GroupLoan_GroupLoanNoMasterUpdation.FillData() TargetSite: Void FillData() Time: 22/11/2025 11:41:18 AM PageName: DataTableResult String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, TermMode, MinimumTerm, MultipleTerm, MaximumTerm, NoPayingTerm, MinimumAmount, MultipleAmount, MaximumAmount, InterestMethod, InterestType, InterestRateMinimum, InterestRateAnnual, InterestRateMaximum, GracePeriod, PenaltyRateAnnual, FirstEMIPayment, EMIAmount, EMIAmountType, FirstInstallmentType, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanTypeStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND LoanTypeStatus='Active' AND GLoanTypeName LIKE '%27122000297%' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'GracePeriod'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 11:41:18 AM PageName: GroupLoan_GroupLoanNoMasterUpdation String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, TermMode, MinimumTerm, MultipleTerm, MaximumTerm, NoPayingTerm, MinimumAmount, MultipleAmount, MaximumAmount, InterestMethod, InterestType, InterestRateMinimum, InterestRateAnnual, InterestRateMaximum, GracePeriod, PenaltyRateAnnual, FirstEMIPayment, EMIAmount, EMIAmountType, FirstInstallmentType, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanTypeStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND LoanTypeStatus='Active' AND GLoanTypeName LIKE '%27122000297%' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_muaguz4k StackTrace: at GroupLoan_GroupLoanNoMasterUpdation.FillData() TargetSite: Void FillData() Time: 22/11/2025 11:41:24 AM PageName: DataTableResult String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, TermMode, MinimumTerm, MultipleTerm, MaximumTerm, NoPayingTerm, MinimumAmount, MultipleAmount, MaximumAmount, InterestMethod, InterestType, InterestRateMinimum, InterestRateAnnual, InterestRateMaximum, GracePeriod, PenaltyRateAnnual, FirstEMIPayment, EMIAmount, EMIAmountType, FirstInstallmentType, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanTypeStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND LoanTypeStatus='Active' AND GLoanTypeName LIKE '%27122000297%' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'GracePeriod'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 11:41:24 AM PageName: GroupLoan_GroupLoanNoMasterUpdation String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, TermMode, MinimumTerm, MultipleTerm, MaximumTerm, NoPayingTerm, MinimumAmount, MultipleAmount, MaximumAmount, InterestMethod, InterestType, InterestRateMinimum, InterestRateAnnual, InterestRateMaximum, GracePeriod, PenaltyRateAnnual, FirstEMIPayment, EMIAmount, EMIAmountType, FirstInstallmentType, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanTypeStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND LoanTypeStatus='Active' AND GLoanTypeName LIKE '%27122000297%' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_muaguz4k StackTrace: at GroupLoan_GroupLoanNoMasterUpdation.FillData() TargetSite: Void FillData() Time: 22/11/2025 11:48:33 AM PageName: GroupLoan_GroupLoanNoMasterUpdation String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_muaguz4k StackTrace: at GroupLoan_GroupLoanNoMasterUpdation.ExportToExcel(DataTable DT, String fileName) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 22/11/2025 11:48:56 AM PageName: DataTableResult String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, TermMode, MinimumTerm, MultipleTerm, MaximumTerm, NoPayingTerm, MinimumAmount, MultipleAmount, MaximumAmount, InterestMethod, InterestType, InterestRateMinimum, InterestRateAnnual, InterestRateMaximum, GracePeriod, PenaltyRateAnnual, FirstEMIPayment, EMIAmount, EMIAmountType, FirstInstallmentType, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanTypeStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND LoanTypeStatus='Active' AND GLoanTypeName LIKE '%27122000297%' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'GracePeriod'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 11:48:56 AM PageName: GroupLoan_GroupLoanNoMasterUpdation String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, TermMode, MinimumTerm, MultipleTerm, MaximumTerm, NoPayingTerm, MinimumAmount, MultipleAmount, MaximumAmount, InterestMethod, InterestType, InterestRateMinimum, InterestRateAnnual, InterestRateMaximum, GracePeriod, PenaltyRateAnnual, FirstEMIPayment, EMIAmount, EMIAmountType, FirstInstallmentType, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanTypeStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND LoanTypeStatus='Active' AND GLoanTypeName LIKE '%27122000297%' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_muaguz4k StackTrace: at GroupLoan_GroupLoanNoMasterUpdation.FillData() TargetSite: Void FillData() Time: 22/11/2025 11:49:24 AM PageName: GroupLoan_GroupLoanNoMasterUpdation String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_muaguz4k StackTrace: at GroupLoan_GroupLoanNoMasterUpdation.btnExport_Click(Object sender, EventArgs e) TargetSite: Void btnExport_Click(System.Object, System.EventArgs) Time: 22/11/2025 11:55:34 AM PageName: DataTableResult String str: SELECT PurposeTypeId, PurposeTypeName, PurposeGroupId,PurposeGroupName,PurposeId,PurposeName,PurposeStatus FROM PurposeNameMaster WITH(nolock) WHERE 1=1 AND PurposeTypeId='1' AND PurposeGroupId='5' AND PurposeStatus='Active' AND PurposeId='27122000297' ORDER BY PurposeStatus, PurposeName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: The conversion of the varchar value '27122000297' overflowed an INT1 column. Use a larger integer column. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.Read() at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 11:55:34 AM PageName: UserMasterSetting_LoanPurposeNameMaster String str: SELECT PurposeTypeId, PurposeTypeName, PurposeGroupId,PurposeGroupName,PurposeId,PurposeName,PurposeStatus FROM PurposeNameMaster WITH(nolock) WHERE 1=1 AND PurposeTypeId='1' AND PurposeGroupId='5' AND PurposeStatus='Active' AND PurposeId='27122000297' ORDER BY PurposeStatus, PurposeName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_rh5ug0ah StackTrace: at UserMasterSetting_LoanPurposeNameMaster.FillData() TargetSite: Void FillData() Time: 22/11/2025 12:01:35 PM PageName: DataTableResult String str: SELECT a.BranchId, a.BranchName, convert(char,a.EmpJoinDate,103)AS EmpJoinDate, a.EmployeeId, a.EmployeeName, b.CenterId, b.CenterName FROM EmployeeRegistrationDetail a WITH(nolock) LEFT JOIN GroupCenterMaster b WITH(nolock) ON a.EmployeeId=b.CenterOfficerId AND a.GroupLoanTeam='Yes' AND b.CenterType='Individual' AND a.BranchId='101' AND a.EmployeeId='EMP00147' AND a.CenterStatus='Active' ORDER BY a.BranchName, a.EmployeeName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 12:01:35 PM PageName: IndividualLoan_IndvOfficerFormation String str: SELECT a.BranchId, a.BranchName, convert(char,a.EmpJoinDate,103)AS EmpJoinDate, a.EmployeeId, a.EmployeeName, b.CenterId, b.CenterName FROM EmployeeRegistrationDetail a WITH(nolock) LEFT JOIN GroupCenterMaster b WITH(nolock) ON a.EmployeeId=b.CenterOfficerId AND a.GroupLoanTeam='Yes' AND b.CenterType='Individual' AND a.BranchId='101' AND a.EmployeeId='EMP00147' AND a.CenterStatus='Active' ORDER BY a.BranchName, a.EmployeeName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_muaguz4k StackTrace: at IndividualLoan_IndvOfficerFormation.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 22/11/2025 12:27:44 PM PageName: DataTableResult String str: SELECT a.SrNo, a.AccountHeadType, a.AccountHeadId, a.AccountHeadName, a.AccountHeadStatus, a.AccountHeadDetail FROM AccountHeadIdMaster a WITH(nolock) WHERE 1=1 AND ( a.AccountHeadType LIKE '%27122000297%' OR a.AccountHeadId LIKE '%27122000297%' OR a.AccountHeadName LIKE '%27122000297%' OR ) ORDER BY a.AccountHeadStatus, a.AccountHeadType String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near ')'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 12:27:44 PM PageName: Account_AccountLedgerHeadMaster String str: SELECT a.SrNo, a.AccountHeadType, a.AccountHeadId, a.AccountHeadName, a.AccountHeadStatus, a.AccountHeadDetail FROM AccountHeadIdMaster a WITH(nolock) WHERE 1=1 AND ( a.AccountHeadType LIKE '%27122000297%' OR a.AccountHeadId LIKE '%27122000297%' OR a.AccountHeadName LIKE '%27122000297%' OR ) ORDER BY a.AccountHeadStatus, a.AccountHeadType String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_AccountLedgerHeadMaster.FillData() TargetSite: Void FillData() Time: 22/11/2025 12:50:24 PM PageName: DataTableResult String str: SELECT a.VoucherType, a.VoucherId, convert(CHAR,a.TransDate,106)AS TransDate, a.Amount, a.ReverseStatus, a.ReverseRemark, a.ReverseUser, rtrim(convert(CHAR,a.ReverseTime,106))+'-'+rtrim(convert(CHAR,a.ReverseTime,108))AS ReverseTime, a.ApproveRemark, a.ApproveUser, rtrim(convert(CHAR,a.ApproveTime,106))+'-'+rtrim(convert(CHAR,a.ApproveTime,108))AS ApproveTime FROM VoucherMasterReverse a WITH(nolock) WHERE 1=1 AND a.TransDate>='11/22/2025 12:00:00 AM' AND a.TransDate<'11/23/2025 12:00:00 AM' AND a.ReverseStatus='Pending' AND a.EntryType='Journal' ORDER BY a.VoucherId, a.TransDate ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'EntryType'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 12:50:24 PM PageName: Account_VoucherReverseRequestList String str: SELECT a.VoucherType, a.VoucherId, convert(CHAR,a.TransDate,106)AS TransDate, a.Amount, a.ReverseStatus, a.ReverseRemark, a.ReverseUser, rtrim(convert(CHAR,a.ReverseTime,106))+'-'+rtrim(convert(CHAR,a.ReverseTime,108))AS ReverseTime, a.ApproveRemark, a.ApproveUser, rtrim(convert(CHAR,a.ApproveTime,106))+'-'+rtrim(convert(CHAR,a.ApproveTime,108))AS ApproveTime FROM VoucherMasterReverse a WITH(nolock) WHERE 1=1 AND a.TransDate>='11/22/2025 12:00:00 AM' AND a.TransDate<'11/23/2025 12:00:00 AM' AND a.ReverseStatus='Pending' AND a.EntryType='Journal' ORDER BY a.VoucherId, a.TransDate ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_VoucherReverseRequestList.FillData() TargetSite: Void FillData() Time: 22/11/2025 01:05:09 PM PageName: Account_AccountTrialBalanceReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at Account_AccountTrialBalanceReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 22/11/2025 01:05:09 PM PageName: Account_AccountTrialBalanceReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_h235glsw StackTrace: at Account_AccountTrialBalanceReport.ExportToExcel(DataTable DT, String fileName) at Account_AccountTrialBalanceReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 22/11/2025 01:05:14 PM PageName: Account_AccountTrialBalanceReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at Account_AccountTrialBalanceReport.btnExport_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 22/11/2025 01:11:28 PM PageName: DataTableResult String str: DECLARE @FDate DATE, @TDate DATE; SET @FDate='4/1/2025 12:00:00 AM'; SET @TDate='3/31/2026 12:00:00 AM'; DECLARE @TTable TABLE( LedgerType VARCHAR(10), MainId VARCHAR(10), MainTitle VARCHAR(100), ParentId VARCHAR(10), ParentTitle VARCHAR(100), HeadId VARCHAR(10), HeadName VARCHAR(100), OpenCredit DECIMAL(18,2), OpenDebit DECIMAL(18,2), OpeningBalance DECIMAL(18,2), CreditAmount DECIMAL(18,2), DebitAmount DECIMAL(18,2), ClosingBalance DECIMAL(18,2) ); INSERT INTO @TTable ( LedgerType, MainId, ParentId, HeadId, HeadName, OpenCredit, OpenDebit, CreditAmount, DebitAmount ) SELECT 'Ledger'AS LedgerType, lm.LedgerMain AS MainId, lm.LedgerHead AS ParentId, lm.LedgerId AS HeadId, lm.LedgerName +' - '+rtrim(Convert(CHAR,lm.LedgerId)) AS HeadName, isnull(co.oCredit,0)AS OpenCredit, isnull(co.oDebit,0)AS OpenDebit, isnull(ct.tCredit,0)AS CreditAmount, isnull(ct.tDebit,0)AS DebitAmount FROM AccountLedgerMaster lm WITH(nolock) LEFT JOIN ( SELECT HeadId, SUM(Credit) AS oCredit, SUM(Debit)AS oDebit FROM F2425VoucherDetail WITH(nolock) WHERE TransDate<@FDate AND BranchId='101' GROUP BY HeadId )co ON lm.LedgerId=co.HeadId LEFT JOIN ( SELECT HeadId, SUM(Credit) AS tCredit, SUM(Debit)AS tDebit FROM F2425VoucherDetail WITH(nolock) WHERE TransDate>=@FDate AND TransDate=@FDate AND TransDate=@FDate AND TransDate<=@TDate AND isnull(@BranchId,BranchId)=BranchId GROUP BY HeadId )tcd ON lm.LedgerId=tcd.HeadId LEFT JOIN ( SELECT HeadId, sum(Credit)AS OCredit, SUM(Debit)AS ODebit FROM F2526VoucherDetail WITH(nolock) WHERE TransDate<@FDate AND isnull(@BranchId,BranchId)=BranchId GROUP BY HeadId )tob ON lm.LedgerId=tob.HeadId LEFT JOIN ( SELECT HeadId, sum(Credit)AS CCredit, SUM(Debit)AS CDebit FROM F2526VoucherDetail WITH(nolock) WHERE TransDate<=@TDate AND isnull(@BranchId,BranchId)=BranchId GROUP BY HeadId )tcb ON lm.LedgerId=tcb.HeadId ORDER BY lm.LedgerMain, lm.LedgerHead, lm.LedgerName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'F2526LedgerMaster'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 01:16:35 PM PageName: Account_AccountRPStatement String str: DECLARE @FDate DATE, @TDate DATE, @BranchId varchar(10); SET @FDate='11/22/2025 12:00:00 AM'; SET @TDate='11/22/2025 12:00:00 AM'; SET @BranchId=null; SET @BranchId='101' SELECT lm.LedgerMain, lm.LedgerHead, lm.LedgerId, lm.LedgerName, CASE WHEN lm.LedgerMain IN (100000,700000) THEN isnull(tob.ODebit,0)-isnull(tob.OCredit,0) WHEN lm.LedgerMain IN (300000,500000) THEN isnull(tob.OCredit,0)-isnull(tob.ODebit,0) ELSE 0 END AS OpeningBalance, isnull(tcd.TCredit,0)AS CreditAmount, isnull(tcd.TDebit,0)AS DebitAmount, CASE WHEN lm.LedgerMain IN (100000,700000) THEN isnull(tcb.CDebit,0)-isnull(tcb.CCredit,0) WHEN lm.LedgerMain IN (300000,500000) THEN isnull(tcb.CCredit,0)-isnull(tcb.CDebit,0) ELSE 0 END AS ClosingBalance FROM F2526LedgerMaster lm WITH(nolock) INNER JOIN ( SELECT HeadId, sum(Credit)AS TCredit, SUM(Debit)AS TDebit FROM F2526VoucherDetail WITH(nolock) WHERE TransDate>=@FDate AND TransDate<=@TDate AND isnull(@BranchId,BranchId)=BranchId GROUP BY HeadId )tcd ON lm.LedgerId=tcd.HeadId LEFT JOIN ( SELECT HeadId, sum(Credit)AS OCredit, SUM(Debit)AS ODebit FROM F2526VoucherDetail WITH(nolock) WHERE TransDate<@FDate AND isnull(@BranchId,BranchId)=BranchId GROUP BY HeadId )tob ON lm.LedgerId=tob.HeadId LEFT JOIN ( SELECT HeadId, sum(Credit)AS CCredit, SUM(Debit)AS CDebit FROM F2526VoucherDetail WITH(nolock) WHERE TransDate<=@TDate AND isnull(@BranchId,BranchId)=BranchId GROUP BY HeadId )tcb ON lm.LedgerId=tcb.HeadId ORDER BY lm.LedgerMain, lm.LedgerHead, lm.LedgerName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountRPStatement.FillData() TargetSite: Void FillData() Time: 22/11/2025 01:16:42 PM PageName: DataTableResult String str: DECLARE @FDate DATE, @TDate DATE, @BranchId varchar(10); SET @FDate='11/22/2025 12:00:00 AM'; SET @TDate='11/22/2025 12:00:00 AM'; SET @BranchId=null; SET @BranchId='101' SELECT lm.LedgerMain, lm.LedgerHead, lm.LedgerId, lm.LedgerName, CASE WHEN lm.LedgerMain IN (100000,700000) THEN isnull(tob.ODebit,0)-isnull(tob.OCredit,0) WHEN lm.LedgerMain IN (300000,500000) THEN isnull(tob.OCredit,0)-isnull(tob.ODebit,0) ELSE 0 END AS OpeningBalance, isnull(tcd.TCredit,0)AS CreditAmount, isnull(tcd.TDebit,0)AS DebitAmount, CASE WHEN lm.LedgerMain IN (100000,700000) THEN isnull(tcb.CDebit,0)-isnull(tcb.CCredit,0) WHEN lm.LedgerMain IN (300000,500000) THEN isnull(tcb.CCredit,0)-isnull(tcb.CDebit,0) ELSE 0 END AS ClosingBalance FROM F2526LedgerMaster lm WITH(nolock) INNER JOIN ( SELECT HeadId, sum(Credit)AS TCredit, SUM(Debit)AS TDebit FROM F2526VoucherDetail WITH(nolock) WHERE TransDate>=@FDate AND TransDate<=@TDate AND isnull(@BranchId,BranchId)=BranchId GROUP BY HeadId )tcd ON lm.LedgerId=tcd.HeadId LEFT JOIN ( SELECT HeadId, sum(Credit)AS OCredit, SUM(Debit)AS ODebit FROM F2526VoucherDetail WITH(nolock) WHERE TransDate<@FDate AND isnull(@BranchId,BranchId)=BranchId GROUP BY HeadId )tob ON lm.LedgerId=tob.HeadId LEFT JOIN ( SELECT HeadId, sum(Credit)AS CCredit, SUM(Debit)AS CDebit FROM F2526VoucherDetail WITH(nolock) WHERE TransDate<=@TDate AND isnull(@BranchId,BranchId)=BranchId GROUP BY HeadId )tcb ON lm.LedgerId=tcb.HeadId ORDER BY lm.LedgerMain, lm.LedgerHead, lm.LedgerName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'F2526LedgerMaster'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 01:16:42 PM PageName: Account_AccountRPStatement String str: DECLARE @FDate DATE, @TDate DATE, @BranchId varchar(10); SET @FDate='11/22/2025 12:00:00 AM'; SET @TDate='11/22/2025 12:00:00 AM'; SET @BranchId=null; SET @BranchId='101' SELECT lm.LedgerMain, lm.LedgerHead, lm.LedgerId, lm.LedgerName, CASE WHEN lm.LedgerMain IN (100000,700000) THEN isnull(tob.ODebit,0)-isnull(tob.OCredit,0) WHEN lm.LedgerMain IN (300000,500000) THEN isnull(tob.OCredit,0)-isnull(tob.ODebit,0) ELSE 0 END AS OpeningBalance, isnull(tcd.TCredit,0)AS CreditAmount, isnull(tcd.TDebit,0)AS DebitAmount, CASE WHEN lm.LedgerMain IN (100000,700000) THEN isnull(tcb.CDebit,0)-isnull(tcb.CCredit,0) WHEN lm.LedgerMain IN (300000,500000) THEN isnull(tcb.CCredit,0)-isnull(tcb.CDebit,0) ELSE 0 END AS ClosingBalance FROM F2526LedgerMaster lm WITH(nolock) INNER JOIN ( SELECT HeadId, sum(Credit)AS TCredit, SUM(Debit)AS TDebit FROM F2526VoucherDetail WITH(nolock) WHERE TransDate>=@FDate AND TransDate<=@TDate AND isnull(@BranchId,BranchId)=BranchId GROUP BY HeadId )tcd ON lm.LedgerId=tcd.HeadId LEFT JOIN ( SELECT HeadId, sum(Credit)AS OCredit, SUM(Debit)AS ODebit FROM F2526VoucherDetail WITH(nolock) WHERE TransDate<@FDate AND isnull(@BranchId,BranchId)=BranchId GROUP BY HeadId )tob ON lm.LedgerId=tob.HeadId LEFT JOIN ( SELECT HeadId, sum(Credit)AS CCredit, SUM(Debit)AS CDebit FROM F2526VoucherDetail WITH(nolock) WHERE TransDate<=@TDate AND isnull(@BranchId,BranchId)=BranchId GROUP BY HeadId )tcb ON lm.LedgerId=tcb.HeadId ORDER BY lm.LedgerMain, lm.LedgerHead, lm.LedgerName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountRPStatement.FillData() TargetSite: Void FillData() Time: 22/11/2025 01:21:42 PM PageName: DataTableResult String str: SELECT a.TransNo, a.ReceiptNo, a.FinYear, a.BranchId, a.BranchName, a.VoucherType, convert(CHAR,a.TransDate,103)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE a.ClearStatus='Approved' AND TransDate>='11/22/2025 12:00:00 AM' AND TransDate<'11/23/2025 12:00:00 AM' AND a.BranchId='100' AND a.VoucherType='Contra' AND a.VoucherId='46546' ORDER BY a.ApproveDate String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'ReceiptNo'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 01:21:42 PM PageName: Account_ContraVoucherPrinting String str: SELECT a.TransNo, a.ReceiptNo, a.FinYear, a.BranchId, a.BranchName, a.VoucherType, convert(CHAR,a.TransDate,103)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE a.ClearStatus='Approved' AND TransDate>='11/22/2025 12:00:00 AM' AND TransDate<'11/23/2025 12:00:00 AM' AND a.BranchId='100' AND a.VoucherType='Contra' AND a.VoucherId='46546' ORDER BY a.ApproveDate String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_ContraVoucherPrinting.FillData() TargetSite: Void FillData() Time: 22/11/2025 01:21:49 PM PageName: DataTableResult String str: SELECT a.TransNo, a.ReceiptNo, a.FinYear, a.BranchId, a.BranchName, a.VoucherType, convert(CHAR,a.TransDate,103)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE a.ClearStatus='Approved' AND TransDate>='11/22/2025 12:00:00 AM' AND TransDate<'11/23/2025 12:00:00 AM' AND a.BranchId='100' AND a.VoucherType='Payment' AND a.VoucherId='46546' ORDER BY a.ApproveDate String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'ReceiptNo'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 01:21:49 PM PageName: Account_ContraVoucherPrinting String str: SELECT a.TransNo, a.ReceiptNo, a.FinYear, a.BranchId, a.BranchName, a.VoucherType, convert(CHAR,a.TransDate,103)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE a.ClearStatus='Approved' AND TransDate>='11/22/2025 12:00:00 AM' AND TransDate<'11/23/2025 12:00:00 AM' AND a.BranchId='100' AND a.VoucherType='Payment' AND a.VoucherId='46546' ORDER BY a.ApproveDate String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_ContraVoucherPrinting.FillData() TargetSite: Void FillData() Time: 22/11/2025 01:22:07 PM PageName: DataTableResult String str: SELECT a.TransNo, a.ReceiptNo, a.FinYear, a.BranchId, a.BranchName, a.VoucherType, convert(CHAR,a.TransDate,103)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE a.ClearStatus='Approved' AND TransDate>='11/22/2025 12:00:00 AM' AND TransDate<'11/23/2025 12:00:00 AM' AND a.BranchId='100' AND a.VoucherId='46546' ORDER BY a.ApproveDate String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'ReceiptNo'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 01:22:07 PM PageName: Account_ContraVoucherPrinting String str: SELECT a.TransNo, a.ReceiptNo, a.FinYear, a.BranchId, a.BranchName, a.VoucherType, convert(CHAR,a.TransDate,103)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE a.ClearStatus='Approved' AND TransDate>='11/22/2025 12:00:00 AM' AND TransDate<'11/23/2025 12:00:00 AM' AND a.BranchId='100' AND a.VoucherId='46546' ORDER BY a.ApproveDate String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_ContraVoucherPrinting.FillData() TargetSite: Void FillData() Time: 22/11/2025 01:22:17 PM PageName: DataTableResult String str: SELECT a.TransNo, a.ReceiptNo, a.FinYear, a.BranchId, a.BranchName, a.VoucherType, convert(CHAR,a.TransDate,103)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE a.ClearStatus='Approved' AND TransDate>='11/22/2025 12:00:00 AM' AND TransDate<'11/23/2025 12:00:00 AM' AND a.BranchId='100' AND a.VoucherId='46546' ORDER BY a.ApproveDate String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'ReceiptNo'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 01:22:17 PM PageName: Account_ContraVoucherPrinting String str: SELECT a.TransNo, a.ReceiptNo, a.FinYear, a.BranchId, a.BranchName, a.VoucherType, convert(CHAR,a.TransDate,103)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE a.ClearStatus='Approved' AND TransDate>='11/22/2025 12:00:00 AM' AND TransDate<'11/23/2025 12:00:00 AM' AND a.BranchId='100' AND a.VoucherId='46546' ORDER BY a.ApproveDate String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_ContraVoucherPrinting.FillData() TargetSite: Void FillData() Time: 22/11/2025 01:23:07 PM PageName: DataTableResult String str: SELECT a.TransNo, a.ReceiptNo, a.FinYear, a.BranchId, a.BranchName, a.VoucherType, convert(CHAR,a.TransDate,103)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE a.ClearStatus='Approved' AND TransDate>='11/22/2025 12:00:00 AM' AND TransDate<'11/23/2025 12:00:00 AM' AND a.BranchId='100' AND a.VoucherId='46546' ORDER BY a.ApproveDate String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'ReceiptNo'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 01:23:07 PM PageName: Account_ContraVoucherPrinting String str: SELECT a.TransNo, a.ReceiptNo, a.FinYear, a.BranchId, a.BranchName, a.VoucherType, convert(CHAR,a.TransDate,103)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE a.ClearStatus='Approved' AND TransDate>='11/22/2025 12:00:00 AM' AND TransDate<'11/23/2025 12:00:00 AM' AND a.BranchId='100' AND a.VoucherId='46546' ORDER BY a.ApproveDate String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_ContraVoucherPrinting.FillData() TargetSite: Void FillData() Time: 22/11/2025 01:38:39 PM PageName: DataTableResult String str: SELECT a.BIId, a.BranchId, a.BranchName, a.ImperestName, a.ImperestAmount, a.MinimumAmount, a.MaximumAmount, a.ImperestStatus FROM BranchImprestMaster a WITH(nolock) WHERE 1=1 AND a.BranchId='100' AND a.ImperestName='Imperest 1' a.MinimumAmount='20000' a.MaximumAmount='333333' a.ImperestAmount='11111' AND a.ImperestStatus='Active' ORDER BY a.BranchName, a.ImperestName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near 'a'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 01:38:39 PM PageName: Account_BranchImperestAmountMaster String str: SELECT a.BIId, a.BranchId, a.BranchName, a.ImperestName, a.ImperestAmount, a.MinimumAmount, a.MaximumAmount, a.ImperestStatus FROM BranchImprestMaster a WITH(nolock) WHERE 1=1 AND a.BranchId='100' AND a.ImperestName='Imperest 1' a.MinimumAmount='20000' a.MaximumAmount='333333' a.ImperestAmount='11111' AND a.ImperestStatus='Active' ORDER BY a.BranchName, a.ImperestName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_BranchImperestAmountMaster.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 22/11/2025 01:43:23 PM PageName: Account_BranchImperestAmountMaster String str: SELECT Count(1)AS Nos FROM BranchImprestMaster WHERE BranchId='100' AND ImperestName='Imperest 1' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: The connection was not closed. The connection's current state is open. Source: System.Data StackTrace: at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) at System.Data.SqlClient.SqlConnection.Open() at ClassMaster.DataTableResult(String query) at Account_BranchImperestAmountMaster.btnSubmit_Click(Object sender, EventArgs e) TargetSite: Boolean TryOpenConnection(System.Data.Common.DbConnection, System.Data.ProviderBase.DbConnectionFactory, System.Threading.Tasks.TaskCompletionSource`1[System.Data.ProviderBase.DbConnectionInternal], System.Data.Common.DbConnectionOptions) Time: 22/11/2025 01:43:32 PM PageName: Account_BranchImperestAmountMaster String str: SELECT Count(1)AS Nos FROM BranchImprestMaster WHERE BranchId='100' AND ImperestName='Imperest 1' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: The connection was not closed. The connection's current state is open. Source: System.Data StackTrace: at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) at System.Data.SqlClient.SqlConnection.Open() at ClassMaster.DataTableResult(String query) at Account_BranchImperestAmountMaster.btnSubmit_Click(Object sender, EventArgs e) TargetSite: Boolean TryOpenConnection(System.Data.Common.DbConnection, System.Data.ProviderBase.DbConnectionFactory, System.Threading.Tasks.TaskCompletionSource`1[System.Data.ProviderBase.DbConnectionInternal], System.Data.Common.DbConnectionOptions) Time: 22/11/2025 01:44:41 PM PageName: Account_BranchImperestAmountMaster String str: SELECT Count(1)AS Nos FROM BranchImprestMaster WHERE BranchId='101' AND ImperestName='Imperest 1' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: The connection was not closed. The connection's current state is open. Source: System.Data StackTrace: at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) at System.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource`1 retry) at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource`1 retry) at System.Data.SqlClient.SqlConnection.Open() at ClassMaster.DataTableResult(String query) at Account_BranchImperestAmountMaster.btnSubmit_Click(Object sender, EventArgs e) TargetSite: Boolean TryOpenConnection(System.Data.Common.DbConnection, System.Data.ProviderBase.DbConnectionFactory, System.Threading.Tasks.TaskCompletionSource`1[System.Data.ProviderBase.DbConnectionInternal], System.Data.Common.DbConnectionOptions) Time: 22/11/2025 01:47:56 PM PageName: DataTableResult String str: SELECT a.BIDId, a.BranchName, a.ImperestName, convert(CHAR,a.BillDate,106)AS BillDate, a.BillAmount, a.BillNo, a.BillDetail, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')+(SELECT replace(ReportValue, '~/', '')AS ImageFolderLocation FROM ProjectReportSetting WITH(nolock) WHERE ReportName='BranchImperestFolder')+a.BranchId+replace(a.BranchName,' ','')+'/'+a.BillCopy AS BillCopyURL, a.BillCopy, a.ImperestMonth, a.ImperestYear, a.BranchId, b.HeadId, b.HeadName FROM BranchImprestDetail a WITH(nolock) INNER JOIN BranchImprestType b WITH(nolock) ON a.ImperestName=b.ImperestName WHERE a.BillStatus='Pending' AND a.ImperestMonth='July' AND a.ImperestYear='2025' AND a.BranchId='100' AND a.ImperestName='Imperest 1' AND a.BillAmount='27122000297' ORDER BY a.BranchName, a.ImperestName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Arithmetic overflow error converting varchar to data type numeric. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.Read() at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 01:47:56 PM PageName: Account_BranchImperestAmountApproval String str: SELECT a.BIDId, a.BranchName, a.ImperestName, convert(CHAR,a.BillDate,106)AS BillDate, a.BillAmount, a.BillNo, a.BillDetail, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')+(SELECT replace(ReportValue, '~/', '')AS ImageFolderLocation FROM ProjectReportSetting WITH(nolock) WHERE ReportName='BranchImperestFolder')+a.BranchId+replace(a.BranchName,' ','')+'/'+a.BillCopy AS BillCopyURL, a.BillCopy, a.ImperestMonth, a.ImperestYear, a.BranchId, b.HeadId, b.HeadName FROM BranchImprestDetail a WITH(nolock) INNER JOIN BranchImprestType b WITH(nolock) ON a.ImperestName=b.ImperestName WHERE a.BillStatus='Pending' AND a.ImperestMonth='July' AND a.ImperestYear='2025' AND a.BranchId='100' AND a.ImperestName='Imperest 1' AND a.BillAmount='27122000297' ORDER BY a.BranchName, a.ImperestName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_BranchImperestAmountApproval.FillData() TargetSite: Void FillData() Time: 22/11/2025 01:55:42 PM PageName: DataTableResult String str: SELECT a.ImperestName, a.ImperestMonth, a.ImperestYear, a.BillStatus, SUM(a.BillAmount)AS BillAmount, Convert(CHAR,a.FromDate,103)AS FromDate, Convert(CHAR,a.ToDate,103)AS ToDate FROM BranchImprestDetail a WITH(nolock) WHERE 1=1 AND a.ApproveDate>='11/22/2025 12:00:00 AM' AND a.ApproveDate<'11/23/2025 12:00:00 AM' AND a.ImperestMonth='April' AND a.ImperestYear='2025' AND a.BranchId='101' AND a.ImperestName='Light Bill' AND a.BillStatus='Pending' AND a.BillAmount='27122000297q' GROUP BY a.ImperestName, a.ImperestMonth, a.ImperestYear, a.BillStatus, Convert(CHAR,a.FromDate,103), Convert(CHAR,a.ToDate,103) ORDER BY a.ImperestName, a.ImperestMonth, a.ImperestYear, a.BillStatus String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Error converting data type varchar to numeric. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.Read() at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 01:55:42 PM PageName: Account_BranchImperestAmountReport String str: SELECT a.ImperestName, a.ImperestMonth, a.ImperestYear, a.BillStatus, SUM(a.BillAmount)AS BillAmount, Convert(CHAR,a.FromDate,103)AS FromDate, Convert(CHAR,a.ToDate,103)AS ToDate FROM BranchImprestDetail a WITH(nolock) WHERE 1=1 AND a.ApproveDate>='11/22/2025 12:00:00 AM' AND a.ApproveDate<'11/23/2025 12:00:00 AM' AND a.ImperestMonth='April' AND a.ImperestYear='2025' AND a.BranchId='101' AND a.ImperestName='Light Bill' AND a.BillStatus='Pending' AND a.BillAmount='27122000297q' GROUP BY a.ImperestName, a.ImperestMonth, a.ImperestYear, a.BillStatus, Convert(CHAR,a.FromDate,103), Convert(CHAR,a.ToDate,103) ORDER BY a.ImperestName, a.ImperestMonth, a.ImperestYear, a.BillStatus String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_BranchImperestAmountReport.FillData() TargetSite: Void FillData() Time: 22/11/2025 01:58:14 PM PageName: DataTableResult String str: SELECT a.BranchId, a.BranchName, a.ImperestMonth, a.ImperestYear, SUM(a.Debit)AS PaidAmount FROM BranchImprestLedger a WITH(nolock) WHERE a.Debit>0 AND a.TransDate>='11/22/2025 12:00:00 AM' AND a.TransDate<'11/23/2025 12:00:00 AM' AND a.ImperestMonth='November' AND a.ImperestYear='2025' AND a.BranchId='101' AND a.ImperestName='Imperest 1' AND a.BillNo='27122000297' GROUP BY a.BranchId, a.BranchName, a.ImperestMonth, a.ImperestYear ORDER BY a.BranchName, a.ImperestMonth, a.ImperestYear String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'BillNo'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 01:58:14 PM PageName: Account_BranchImperestPaymentReport String str: SELECT a.BranchId, a.BranchName, a.ImperestMonth, a.ImperestYear, SUM(a.Debit)AS PaidAmount FROM BranchImprestLedger a WITH(nolock) WHERE a.Debit>0 AND a.TransDate>='11/22/2025 12:00:00 AM' AND a.TransDate<'11/23/2025 12:00:00 AM' AND a.ImperestMonth='November' AND a.ImperestYear='2025' AND a.BranchId='101' AND a.ImperestName='Imperest 1' AND a.BillNo='27122000297' GROUP BY a.BranchId, a.BranchName, a.ImperestMonth, a.ImperestYear ORDER BY a.BranchName, a.ImperestMonth, a.ImperestYear String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_BranchImperestPaymentReport.FillData() TargetSite: Void FillData() Time: 22/11/2025 01:58:25 PM PageName: DataTableResult String str: SELECT a.BranchId, a.BranchName, a.ImperestMonth, a.ImperestYear, SUM(a.Debit)AS PaidAmount FROM BranchImprestLedger a WITH(nolock) WHERE a.Debit>0 AND a.TransDate>='11/22/2025 12:00:00 AM' AND a.TransDate<'11/23/2025 12:00:00 AM' AND a.ImperestMonth='November' AND a.ImperestYear='2025' AND a.BranchId='101' AND a.ImperestName='Imperest 1' AND a.BillDetail LIKE '%27122000297%' GROUP BY a.BranchId, a.BranchName, a.ImperestMonth, a.ImperestYear ORDER BY a.BranchName, a.ImperestMonth, a.ImperestYear String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'BillDetail'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 01:58:25 PM PageName: Account_BranchImperestPaymentReport String str: SELECT a.BranchId, a.BranchName, a.ImperestMonth, a.ImperestYear, SUM(a.Debit)AS PaidAmount FROM BranchImprestLedger a WITH(nolock) WHERE a.Debit>0 AND a.TransDate>='11/22/2025 12:00:00 AM' AND a.TransDate<'11/23/2025 12:00:00 AM' AND a.ImperestMonth='November' AND a.ImperestYear='2025' AND a.BranchId='101' AND a.ImperestName='Imperest 1' AND a.BillDetail LIKE '%27122000297%' GROUP BY a.BranchId, a.BranchName, a.ImperestMonth, a.ImperestYear ORDER BY a.BranchName, a.ImperestMonth, a.ImperestYear String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_BranchImperestPaymentReport.FillData() TargetSite: Void FillData() Time: 22/11/2025 01:58:35 PM PageName: DataSetResult String str: SELECT BankId, BankName FROM BankNameMaster WITH(nolock) WHERE BankStatus='Active' ORDER BY BankName ; SELECT LedgerId, LedgerName FROM LedgerMaster WITH(nolock) WHERE LedgerStatus='Active' AND LedgerHead='112000' ORDER BY LedgerName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'LedgerMaster'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.TryNextResult(Boolean& more) at System.Data.SqlClient.SqlDataReader.NextResult() at System.Data.ProviderBase.DataReaderContainer.NextResult() at System.Data.Common.DataAdapter.FillNextResult(DataReaderContainer dataReader) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) at ClassMaster.DataSetResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 01:58:35 PM PageName: Account_BranchImperestAnalysisReport String str: SELECT BankId, BankName FROM BankNameMaster WITH(nolock) WHERE BankStatus='Active' ORDER BY BankName ; SELECT LedgerId, LedgerName FROM LedgerMaster WITH(nolock) WHERE LedgerStatus='Active' AND LedgerHead='112000' ORDER BY LedgerName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_BranchImperestAnalysisReport.FillDDLData() TargetSite: Void FillDDLData() Time: 22/11/2025 02:02:08 PM PageName: Account_BranchImperestAnalysisReport String str: SELECT a.ASId, a.BranchId, a.BranchName, a.VoucherId, Convert(CHAR,a.TransDate,106)AS TransDate, a.Amount, a.PaymentMode, a.ChequeNo, Convert(CHAR,a.ChequeDate,106)AS ChequeDate, a.ChequeAccountNo, a.ChequeBankName, a.ChequeRemark, a.SuspenseType, a.Description, Convert(CHAR,a.DepositDate,106)AS DepositDate, a.DepositBankId, a.DepositBankName, Convert(CHAR,a.ClearDate,106)AS ClearDate, a.ClearStatus, a.Refer1, a.Refer2, a.Refer3 FROM AssetSuspenseDetail a WITH(nolock) WHERE a.ClearStatus='Deposited' AND a.BranchId='101' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_BranchImperestAnalysisReport.FillData() TargetSite: Void FillData() Time: 22/11/2025 02:05:25 PM PageName: Account_BranchImperestAnalysisReport String str: SELECT a.ASId, a.BranchId, a.BranchName, a.VoucherId, Convert(CHAR,a.TransDate,106)AS TransDate, a.Amount, a.PaymentMode, a.ChequeNo, Convert(CHAR,a.ChequeDate,106)AS ChequeDate, a.ChequeAccountNo, a.ChequeBankName, a.ChequeRemark, a.SuspenseType, a.Description, Convert(CHAR,a.DepositDate,106)AS DepositDate, a.DepositBankId, a.DepositBankName, Convert(CHAR,a.ClearDate,106)AS ClearDate, a.ClearStatus, a.Refer1, a.Refer2, a.Refer3 FROM AssetSuspenseDetail a WITH(nolock) WHERE a.ClearStatus='Deposited' AND a.BranchId='101' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_BranchImperestAnalysisReport.FillData() TargetSite: Void FillData() Time: 22/11/2025 02:06:41 PM PageName: Account_BranchImperestAnalysisReport String str: SELECT a.ASId, a.BranchId, a.BranchName, a.VoucherId, Convert(CHAR,a.TransDate,106)AS TransDate, a.Amount, a.PaymentMode, a.ChequeNo, Convert(CHAR,a.ChequeDate,106)AS ChequeDate, a.ChequeAccountNo, a.ChequeBankName, a.ChequeRemark, a.SuspenseType, a.Description, Convert(CHAR,a.DepositDate,106)AS DepositDate, a.DepositBankId, a.DepositBankName, Convert(CHAR,a.ClearDate,106)AS ClearDate, a.ClearStatus, a.Refer1, a.Refer2, a.Refer3 FROM AssetSuspenseDetail a WITH(nolock) WHERE a.ClearStatus='Deposited' AND a.BranchId='101' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_BranchImperestAnalysisReport.FillData() TargetSite: Void FillData() Time: 22/11/2025 02:08:35 PM PageName: DataSetResult String str: SELECT BankId, BankName FROM BankNameMaster WITH(nolock) WHERE BankStatus='Active' ORDER BY BankName ; SELECT LedgerId, LedgerName FROM LedgerMaster WITH(nolock) WHERE LedgerStatus='Active' AND LedgerHead='112000' ORDER BY LedgerName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'LedgerMaster'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.TryNextResult(Boolean& more) at System.Data.SqlClient.SqlDataReader.NextResult() at System.Data.ProviderBase.DataReaderContainer.NextResult() at System.Data.Common.DataAdapter.FillNextResult(DataReaderContainer dataReader) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataSet dataSet, String srcTable, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) at ClassMaster.DataSetResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 02:08:36 PM PageName: Account_BranchImperestAnalysisReport String str: SELECT BankId, BankName FROM BankNameMaster WITH(nolock) WHERE BankStatus='Active' ORDER BY BankName ; SELECT LedgerId, LedgerName FROM LedgerMaster WITH(nolock) WHERE LedgerStatus='Active' AND LedgerHead='112000' ORDER BY LedgerName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_BranchImperestAnalysisReport.FillDDLData() TargetSite: Void FillDDLData() Time: 22/11/2025 02:12:09 PM PageName: DataTableResult String str: SELECT a.TransferNo, a.FromBranchId, a.FromBranchName, a.FromHeadId, a.FromHeadName, a.ToBranchId, a.ToBranchName, a.ToHeadId, a.ToHeadName, a.TransferStatus, a.TransferAmount, convert(CHAR,a.RequestDate,103)AS RequestDate, convert(CHAR,a.RequestDate,106)AS RequestDated, a.RequestVoucherId, a.RequestRemark, a.EntryUser, rtrim(convert(CHAR,a.EntryTime,106))+' - '+rtrim(convert(CHAR,EntryTime,108))AS EntryTime FROM BranchFundTransferDetail a WITH(nolock) WHERE a.TransferStatus='Pending' AND a.RequestDate>='11/22/2025 12:00:00 AM' AND a.RequestDate<'11/23/2025 12:00:00 AM' AND a.FromBranchId='100' AND a.FromHeadId='111999' AND a.ToBranchId='100' AND a.ToHeadId='111999' AND a.TransferStatus='Pending' AND a.Amount='27122000297' ORDER BY a.RequestDate, a.FromBranchName, a.ToBranchName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'Amount'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 02:12:09 PM PageName: Account_BranchFundTransferApproval String str: SELECT a.TransferNo, a.FromBranchId, a.FromBranchName, a.FromHeadId, a.FromHeadName, a.ToBranchId, a.ToBranchName, a.ToHeadId, a.ToHeadName, a.TransferStatus, a.TransferAmount, convert(CHAR,a.RequestDate,103)AS RequestDate, convert(CHAR,a.RequestDate,106)AS RequestDated, a.RequestVoucherId, a.RequestRemark, a.EntryUser, rtrim(convert(CHAR,a.EntryTime,106))+' - '+rtrim(convert(CHAR,EntryTime,108))AS EntryTime FROM BranchFundTransferDetail a WITH(nolock) WHERE a.TransferStatus='Pending' AND a.RequestDate>='11/22/2025 12:00:00 AM' AND a.RequestDate<'11/23/2025 12:00:00 AM' AND a.FromBranchId='100' AND a.FromHeadId='111999' AND a.ToBranchId='100' AND a.ToHeadId='111999' AND a.TransferStatus='Pending' AND a.Amount='27122000297' ORDER BY a.RequestDate, a.FromBranchName, a.ToBranchName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_BranchFundTransferApproval.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 22/11/2025 02:13:07 PM PageName: DataTableResult String str: SELECT a.TransferNo, a.FromBranchId, a.FromBranchName, a.FromHeadId, a.FromHeadName, a.ToBranchId, a.ToBranchName, a.ToHeadId, a.ToHeadName, a.TransferStatus, a.TransferAmount, convert(CHAR,a.RequestDate,103)AS RequestDate, convert(CHAR,a.RequestDate,106)AS RequestDated, a.RequestVoucherId, a.RequestRemark, a.EntryUser, rtrim(convert(CHAR,a.EntryTime,106))+' - '+rtrim(convert(CHAR,EntryTime,108))AS EntryTime FROM BranchFundTransferDetail a WITH(nolock) WHERE a.TransferStatus='Pending' AND a.RequestDate>='11/21/2025 12:00:00 AM' AND a.RequestDate<'11/23/2025 12:00:00 AM' AND a.FromBranchId='100' AND a.FromHeadId='111999' AND a.ToBranchId='100' AND a.ToHeadId='111999' AND a.TransferStatus='Pending' AND a.Amount='27122000297' ORDER BY a.RequestDate, a.FromBranchName, a.ToBranchName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'Amount'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 02:13:07 PM PageName: Account_BranchFundTransferApproval String str: SELECT a.TransferNo, a.FromBranchId, a.FromBranchName, a.FromHeadId, a.FromHeadName, a.ToBranchId, a.ToBranchName, a.ToHeadId, a.ToHeadName, a.TransferStatus, a.TransferAmount, convert(CHAR,a.RequestDate,103)AS RequestDate, convert(CHAR,a.RequestDate,106)AS RequestDated, a.RequestVoucherId, a.RequestRemark, a.EntryUser, rtrim(convert(CHAR,a.EntryTime,106))+' - '+rtrim(convert(CHAR,EntryTime,108))AS EntryTime FROM BranchFundTransferDetail a WITH(nolock) WHERE a.TransferStatus='Pending' AND a.RequestDate>='11/21/2025 12:00:00 AM' AND a.RequestDate<'11/23/2025 12:00:00 AM' AND a.FromBranchId='100' AND a.FromHeadId='111999' AND a.ToBranchId='100' AND a.ToHeadId='111999' AND a.TransferStatus='Pending' AND a.Amount='27122000297' ORDER BY a.RequestDate, a.FromBranchName, a.ToBranchName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_BranchFundTransferApproval.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 22/11/2025 02:17:07 PM PageName: DataTableResult String str: SELECT a.DayNo, Convert(CHAR,a.ClosingDate,106)AS ClosingDate, a.HeadId, a.HeadName, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='AccountLedgerClosingHTML' )+'?DayNo='+rtrim(convert(CHAR,a.DayNo)) AS AccoountLedgerClosingPrint, a.OpeningBalance, a.TotalReceived, a.TotalPayment, a.ClosingBalance, a.ClosingRemark, a.Amount2000, a.Amount500, a.Amount200, a.Amount100, a.Amount50, a.Amount20, a.Amount10, a.Amount5, a.Amount2, a.Amount1, a.AmountOther, a.EntryUser, rtrim(Convert(CHAR,a.EntryTime,106))+' - '+rtrim(Convert(CHAR,a.EntryTime,108))AS EntryTime FROM AccountDaySummaryDetail a WITH(nolock) WHERE 1=1 AND a.ClosingDate>='11/22/2025 12:00:00 AM' AND a.ClosingDate<'11/23/2025 12:00:00 AM' AND a.HeadId='111999' ORDER BY a.ClosingDate, a.HeadId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'AccountDaySummaryDetail'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 02:17:07 PM PageName: Account_AccountLedgerClosingReport String str: SELECT a.DayNo, Convert(CHAR,a.ClosingDate,106)AS ClosingDate, a.HeadId, a.HeadName, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='AccountLedgerClosingHTML' )+'?DayNo='+rtrim(convert(CHAR,a.DayNo)) AS AccoountLedgerClosingPrint, a.OpeningBalance, a.TotalReceived, a.TotalPayment, a.ClosingBalance, a.ClosingRemark, a.Amount2000, a.Amount500, a.Amount200, a.Amount100, a.Amount50, a.Amount20, a.Amount10, a.Amount5, a.Amount2, a.Amount1, a.AmountOther, a.EntryUser, rtrim(Convert(CHAR,a.EntryTime,106))+' - '+rtrim(Convert(CHAR,a.EntryTime,108))AS EntryTime FROM AccountDaySummaryDetail a WITH(nolock) WHERE 1=1 AND a.ClosingDate>='11/22/2025 12:00:00 AM' AND a.ClosingDate<'11/23/2025 12:00:00 AM' AND a.HeadId='111999' ORDER BY a.ClosingDate, a.HeadId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountLedgerClosingReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 22/11/2025 02:18:12 PM PageName: DataTableResult String str: SELECT a.DayNo, Convert(CHAR,a.ClosingDate,106)AS ClosingDate, a.HeadId, a.HeadName, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='AccountLedgerClosingHTML' )+'?DayNo='+rtrim(convert(CHAR,a.DayNo)) AS AccoountLedgerClosingPrint, a.OpeningBalance, a.TotalReceived, a.TotalPayment, a.ClosingBalance, a.ClosingRemark, a.Amount2000, a.Amount500, a.Amount200, a.Amount100, a.Amount50, a.Amount20, a.Amount10, a.Amount5, a.Amount2, a.Amount1, a.AmountOther, a.EntryUser, rtrim(Convert(CHAR,a.EntryTime,106))+' - '+rtrim(Convert(CHAR,a.EntryTime,108))AS EntryTime FROM AccountDaySummaryDetail a WITH(nolock) WHERE 1=1 AND a.ClosingDate>='11/22/2025 12:00:00 AM' AND a.ClosingDate<'11/23/2025 12:00:00 AM' AND a.HeadId='111999' ORDER BY a.ClosingDate, a.HeadId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'AccountDaySummaryDetail'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 02:18:12 PM PageName: Account_AccountLedgerClosingReport String str: SELECT a.DayNo, Convert(CHAR,a.ClosingDate,106)AS ClosingDate, a.HeadId, a.HeadName, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='AccountLedgerClosingHTML' )+'?DayNo='+rtrim(convert(CHAR,a.DayNo)) AS AccoountLedgerClosingPrint, a.OpeningBalance, a.TotalReceived, a.TotalPayment, a.ClosingBalance, a.ClosingRemark, a.Amount2000, a.Amount500, a.Amount200, a.Amount100, a.Amount50, a.Amount20, a.Amount10, a.Amount5, a.Amount2, a.Amount1, a.AmountOther, a.EntryUser, rtrim(Convert(CHAR,a.EntryTime,106))+' - '+rtrim(Convert(CHAR,a.EntryTime,108))AS EntryTime FROM AccountDaySummaryDetail a WITH(nolock) WHERE 1=1 AND a.ClosingDate>='11/22/2025 12:00:00 AM' AND a.ClosingDate<'11/23/2025 12:00:00 AM' AND a.HeadId='111999' ORDER BY a.ClosingDate, a.HeadId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountLedgerClosingReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 22/11/2025 02:19:39 PM PageName: DataTableResult String str: SELECT a.DayNo, Convert(CHAR,a.ClosingDate,103)AS ClosingDate, a.HeadId, a.HeadName, a.OpeningBalance, a.TotalReceived, a.TotalPayment, a.ClosingBalance, a.ClosingRemark, a.Amount2000, a.Amount500, a.Amount200, a.Amount100, a.Amount50, a.Amount20, a.Amount10, a.Amount5, a.Amount2, a.Amount1, a.AmountOther, a.EntryUser, rtrim(Convert(CHAR,a.EntryTime,106))+' - '+rtrim(Convert(CHAR,a.EntryTime,108))AS EntryTime FROM AccountDaySummaryDetail a WITH(nolock) WHERE 1=1 AND a.ClosingDate>='11/22/2025 12:00:00 AM' AND a.ClosingDate<'11/23/2025 12:00:00 AM' AND a.HeadId='111999' ORDER BY a.ClosingDate, a.HeadId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'AccountDaySummaryDetail'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 02:19:39 PM PageName: Account_AccountLedgerClosingReverse String str: SELECT a.DayNo, Convert(CHAR,a.ClosingDate,103)AS ClosingDate, a.HeadId, a.HeadName, a.OpeningBalance, a.TotalReceived, a.TotalPayment, a.ClosingBalance, a.ClosingRemark, a.Amount2000, a.Amount500, a.Amount200, a.Amount100, a.Amount50, a.Amount20, a.Amount10, a.Amount5, a.Amount2, a.Amount1, a.AmountOther, a.EntryUser, rtrim(Convert(CHAR,a.EntryTime,106))+' - '+rtrim(Convert(CHAR,a.EntryTime,108))AS EntryTime FROM AccountDaySummaryDetail a WITH(nolock) WHERE 1=1 AND a.ClosingDate>='11/22/2025 12:00:00 AM' AND a.ClosingDate<'11/23/2025 12:00:00 AM' AND a.HeadId='111999' ORDER BY a.ClosingDate, a.HeadId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_AccountLedgerClosingReverse.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 22/11/2025 02:58:02 PM PageName: DataTableResult String str: SELECT FunderLoanId, FunderName, FunderLoanName, FunderLoanStatus, TermMode, LoanTerm, InterestMethod, InterestRateAnnual, NoPayingTerm, GracePeriod, PenaltyRateAnnual, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, ProcessingFeePercent, ProcessingFeeAmount, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFeePercent, InsuranceFeeAmount, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherChargePercent, OtherChargeAmount, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, FunderRemark, EntryUser, rtrim(convert(CHAR,EntryTime,106))+' - '+rtrim(convert(CHAR,EntryTime,108))AS EntryTime FROM FunderLoanNoMaster WITH(nolock) WHERE 1=1 AND LoanTypeStatus='Active' AND GLoanTypeNo='GL00000003' ORDER BY FunderLoanStatus, FunderLoanName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanTypeStatus'. Invalid column name 'GLoanTypeNo'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 02:58:02 PM PageName: FunderInvestor_FunderLoanNoMasterUpdation String str: SELECT FunderLoanId, FunderName, FunderLoanName, FunderLoanStatus, TermMode, LoanTerm, InterestMethod, InterestRateAnnual, NoPayingTerm, GracePeriod, PenaltyRateAnnual, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, ProcessingFeePercent, ProcessingFeeAmount, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFeePercent, InsuranceFeeAmount, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherChargePercent, OtherChargeAmount, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, FunderRemark, EntryUser, rtrim(convert(CHAR,EntryTime,106))+' - '+rtrim(convert(CHAR,EntryTime,108))AS EntryTime FROM FunderLoanNoMaster WITH(nolock) WHERE 1=1 AND LoanTypeStatus='Active' AND GLoanTypeNo='GL00000003' ORDER BY FunderLoanStatus, FunderLoanName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_z5j0e1zf StackTrace: at FunderInvestor_FunderLoanNoMasterUpdation.FillData() TargetSite: Void FillData() Time: 22/11/2025 02:58:11 PM PageName: DataTableResult String str: SELECT FunderLoanId, FunderName, FunderLoanName, FunderLoanStatus, TermMode, LoanTerm, InterestMethod, InterestRateAnnual, NoPayingTerm, GracePeriod, PenaltyRateAnnual, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, ProcessingFeePercent, ProcessingFeeAmount, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFeePercent, InsuranceFeeAmount, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherChargePercent, OtherChargeAmount, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, FunderRemark, EntryUser, rtrim(convert(CHAR,EntryTime,106))+' - '+rtrim(convert(CHAR,EntryTime,108))AS EntryTime FROM FunderLoanNoMaster WITH(nolock) WHERE 1=1 AND LoanTypeStatus='Active' AND GLoanTypeNo='27122000297' ORDER BY FunderLoanStatus, FunderLoanName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanTypeStatus'. Invalid column name 'GLoanTypeNo'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 02:58:11 PM PageName: FunderInvestor_FunderLoanNoMasterUpdation String str: SELECT FunderLoanId, FunderName, FunderLoanName, FunderLoanStatus, TermMode, LoanTerm, InterestMethod, InterestRateAnnual, NoPayingTerm, GracePeriod, PenaltyRateAnnual, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, ProcessingFeePercent, ProcessingFeeAmount, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFeePercent, InsuranceFeeAmount, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherChargePercent, OtherChargeAmount, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, FunderRemark, EntryUser, rtrim(convert(CHAR,EntryTime,106))+' - '+rtrim(convert(CHAR,EntryTime,108))AS EntryTime FROM FunderLoanNoMaster WITH(nolock) WHERE 1=1 AND LoanTypeStatus='Active' AND GLoanTypeNo='27122000297' ORDER BY FunderLoanStatus, FunderLoanName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_z5j0e1zf StackTrace: at FunderInvestor_FunderLoanNoMasterUpdation.FillData() TargetSite: Void FillData() Time: 22/11/2025 03:29:31 PM PageName: DataTableResult String str: SELECT FunderName, FunderLoanId, FunderLoanName, EMIDueDate, DueNo, PaidNo, PrincipalAmount, InterestAmount, TotalAmount, PaidStatus, PaidDate, VoucherId, PayType, PayMode, PayStatus, PayHeadId, PayTransId, EntryUser, EntryTime FROM FunderLoanLedger WITH(nolock) WHERE 1=1 AND PaidDate>='11/22/2025 12:00:00 AM' AND PaidDate<'11/23/2025 12:00:00 AM' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'FunderLoanLedger'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 03:29:31 PM PageName: FunderInvestor_FunderLoanRepaymentReverse String str: SELECT FunderName, FunderLoanId, FunderLoanName, EMIDueDate, DueNo, PaidNo, PrincipalAmount, InterestAmount, TotalAmount, PaidStatus, PaidDate, VoucherId, PayType, PayMode, PayStatus, PayHeadId, PayTransId, EntryUser, EntryTime FROM FunderLoanLedger WITH(nolock) WHERE 1=1 AND PaidDate>='11/22/2025 12:00:00 AM' AND PaidDate<'11/23/2025 12:00:00 AM' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_45jtvmo3 StackTrace: at FunderInvestor_FunderLoanRepaymentReverse.FillData() TargetSite: Void FillData() Time: 22/11/2025 03:31:02 PM PageName: DataTableResult String str: SELECT FunderName, FunderLoanId, FunderLoanName, EMIDueDate, DueNo, PaidNo, PrincipalAmount, InterestAmount, TotalAmount, PaidStatus, PaidDate, VoucherId, PayType, PayMode, PayStatus, PayHeadId, PayTransId, EntryUser, EntryTime FROM FunderLoanLedger WITH(nolock) WHERE 1=1 AND PaidDate>='11/22/2025 12:00:00 AM' AND PaidDate<'11/23/2025 12:00:00 AM' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'FunderLoanLedger'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 03:31:02 PM PageName: FunderInvestor_FunderLoanRepaymentReverse String str: SELECT FunderName, FunderLoanId, FunderLoanName, EMIDueDate, DueNo, PaidNo, PrincipalAmount, InterestAmount, TotalAmount, PaidStatus, PaidDate, VoucherId, PayType, PayMode, PayStatus, PayHeadId, PayTransId, EntryUser, EntryTime FROM FunderLoanLedger WITH(nolock) WHERE 1=1 AND PaidDate>='11/22/2025 12:00:00 AM' AND PaidDate<'11/23/2025 12:00:00 AM' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_45jtvmo3 StackTrace: at FunderInvestor_FunderLoanRepaymentReverse.FillData() TargetSite: Void FillData() Time: 22/11/2025 03:37:47 PM PageName: FunderInvestor_InvestorNoMaster String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Input string was not in a correct format. Source: mscorlib StackTrace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) at System.Convert.ToDecimal(String value) at FunderInvestor_InvestorNoMaster.CheckValidation() TargetSite: Void StringToNumber(System.String, System.Globalization.NumberStyles, NumberBuffer ByRef, System.Globalization.NumberFormatInfo, Boolean) Time: 22/11/2025 03:40:28 PM PageName: DataTableResult String str: SELECT InvestorLoanId, InvestorName, InvestorLoanName, InvestorLoanStatus, TermMode, LoanTerm, InterestMethod, InterestRateAnnual, NoPayingTerm, GracePeriod, PenaltyRateAnnual, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, ProcessingFeePercent, ProcessingFeeAmount, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFeePercent, InsuranceFeeAmount, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherChargePercent, OtherChargeAmount, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, InvestorRemark, EntryUser, rtrim(convert(CHAR,EntryTime,106))+' - '+rtrim(convert(CHAR,EntryTime,108))AS EntryTime FROM InvestorMaster WITH(nolock) WHERE 1=1 AND InterestMethod='FlatInterest' AND TermMode='Daily' AND InvestorLoanStatus='Active' AND InvestorName='GL00000003' ORDER BY InvestorLoanStatus, InvestorLoanName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'InvestorMaster'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 03:40:28 PM PageName: FunderInvestor_InvestorNoMasterUpdation String str: SELECT InvestorLoanId, InvestorName, InvestorLoanName, InvestorLoanStatus, TermMode, LoanTerm, InterestMethod, InterestRateAnnual, NoPayingTerm, GracePeriod, PenaltyRateAnnual, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, ProcessingFeePercent, ProcessingFeeAmount, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFeePercent, InsuranceFeeAmount, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherChargePercent, OtherChargeAmount, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, InvestorRemark, EntryUser, rtrim(convert(CHAR,EntryTime,106))+' - '+rtrim(convert(CHAR,EntryTime,108))AS EntryTime FROM InvestorMaster WITH(nolock) WHERE 1=1 AND InterestMethod='FlatInterest' AND TermMode='Daily' AND InvestorLoanStatus='Active' AND InvestorName='GL00000003' ORDER BY InvestorLoanStatus, InvestorLoanName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_z5j0e1zf StackTrace: at FunderInvestor_InvestorNoMasterUpdation.FillData() TargetSite: Void FillData() Time: 22/11/2025 03:40:35 PM PageName: DataTableResult String str: SELECT InvestorLoanId, InvestorName, InvestorLoanName, InvestorLoanStatus, TermMode, LoanTerm, InterestMethod, InterestRateAnnual, NoPayingTerm, GracePeriod, PenaltyRateAnnual, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, ProcessingFeePercent, ProcessingFeeAmount, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFeePercent, InsuranceFeeAmount, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherChargePercent, OtherChargeAmount, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, InvestorRemark, EntryUser, rtrim(convert(CHAR,EntryTime,106))+' - '+rtrim(convert(CHAR,EntryTime,108))AS EntryTime FROM InvestorMaster WITH(nolock) WHERE 1=1 AND InterestMethod='FlatInterest' AND TermMode='Daily' AND InvestorLoanStatus='Active' AND InvestorLoanName LIKE '%GL00000003%' ORDER BY InvestorLoanStatus, InvestorLoanName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'InvestorMaster'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 03:40:35 PM PageName: FunderInvestor_InvestorNoMasterUpdation String str: SELECT InvestorLoanId, InvestorName, InvestorLoanName, InvestorLoanStatus, TermMode, LoanTerm, InterestMethod, InterestRateAnnual, NoPayingTerm, GracePeriod, PenaltyRateAnnual, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, ProcessingFeePercent, ProcessingFeeAmount, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFeePercent, InsuranceFeeAmount, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherChargePercent, OtherChargeAmount, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, InvestorRemark, EntryUser, rtrim(convert(CHAR,EntryTime,106))+' - '+rtrim(convert(CHAR,EntryTime,108))AS EntryTime FROM InvestorMaster WITH(nolock) WHERE 1=1 AND InterestMethod='FlatInterest' AND TermMode='Daily' AND InvestorLoanStatus='Active' AND InvestorLoanName LIKE '%GL00000003%' ORDER BY InvestorLoanStatus, InvestorLoanName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_z5j0e1zf StackTrace: at FunderInvestor_InvestorNoMasterUpdation.FillData() TargetSite: Void FillData() Time: 22/11/2025 03:40:42 PM PageName: DataTableResult String str: SELECT InvestorLoanId, InvestorName, InvestorLoanName, InvestorLoanStatus, TermMode, LoanTerm, InterestMethod, InterestRateAnnual, NoPayingTerm, GracePeriod, PenaltyRateAnnual, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, ProcessingFeePercent, ProcessingFeeAmount, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFeePercent, InsuranceFeeAmount, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherChargePercent, OtherChargeAmount, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, InvestorRemark, EntryUser, rtrim(convert(CHAR,EntryTime,106))+' - '+rtrim(convert(CHAR,EntryTime,108))AS EntryTime FROM InvestorMaster WITH(nolock) WHERE 1=1 AND InterestMethod='FlatInterest' AND TermMode='Daily' AND InvestorLoanStatus='Active' AND InvestorLoanName LIKE '%27122000297%' ORDER BY InvestorLoanStatus, InvestorLoanName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'InvestorMaster'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 03:40:42 PM PageName: FunderInvestor_InvestorNoMasterUpdation String str: SELECT InvestorLoanId, InvestorName, InvestorLoanName, InvestorLoanStatus, TermMode, LoanTerm, InterestMethod, InterestRateAnnual, NoPayingTerm, GracePeriod, PenaltyRateAnnual, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, ProcessingFeePercent, ProcessingFeeAmount, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFeePercent, InsuranceFeeAmount, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherChargePercent, OtherChargeAmount, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, InvestorRemark, EntryUser, rtrim(convert(CHAR,EntryTime,106))+' - '+rtrim(convert(CHAR,EntryTime,108))AS EntryTime FROM InvestorMaster WITH(nolock) WHERE 1=1 AND InterestMethod='FlatInterest' AND TermMode='Daily' AND InvestorLoanStatus='Active' AND InvestorLoanName LIKE '%27122000297%' ORDER BY InvestorLoanStatus, InvestorLoanName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_z5j0e1zf StackTrace: at FunderInvestor_InvestorNoMasterUpdation.FillData() TargetSite: Void FillData() Time: 22/11/2025 03:40:51 PM PageName: DataTableResult String str: SELECT InvestorLoanId, InvestorName, InvestorLoanName, InvestorLoanStatus, TermMode, LoanTerm, InterestMethod, InterestRateAnnual, NoPayingTerm, GracePeriod, PenaltyRateAnnual, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, ProcessingFeePercent, ProcessingFeeAmount, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFeePercent, InsuranceFeeAmount, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherChargePercent, OtherChargeAmount, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, InvestorRemark, EntryUser, rtrim(convert(CHAR,EntryTime,106))+' - '+rtrim(convert(CHAR,EntryTime,108))AS EntryTime FROM InvestorMaster WITH(nolock) WHERE 1=1 AND InterestMethod='FlatInterest' AND TermMode='Daily' AND InvestorLoanStatus='Active' AND InvestorLoanName LIKE '%M112000104%' ORDER BY InvestorLoanStatus, InvestorLoanName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'InvestorMaster'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 03:40:51 PM PageName: FunderInvestor_InvestorNoMasterUpdation String str: SELECT InvestorLoanId, InvestorName, InvestorLoanName, InvestorLoanStatus, TermMode, LoanTerm, InterestMethod, InterestRateAnnual, NoPayingTerm, GracePeriod, PenaltyRateAnnual, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, ProcessingFeePercent, ProcessingFeeAmount, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFeePercent, InsuranceFeeAmount, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherChargePercent, OtherChargeAmount, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, InvestorRemark, EntryUser, rtrim(convert(CHAR,EntryTime,106))+' - '+rtrim(convert(CHAR,EntryTime,108))AS EntryTime FROM InvestorMaster WITH(nolock) WHERE 1=1 AND InterestMethod='FlatInterest' AND TermMode='Daily' AND InvestorLoanStatus='Active' AND InvestorLoanName LIKE '%M112000104%' ORDER BY InvestorLoanStatus, InvestorLoanName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_z5j0e1zf StackTrace: at FunderInvestor_InvestorNoMasterUpdation.FillData() TargetSite: Void FillData() Time: 22/11/2025 04:30:50 PM PageName: DataTableResult String str: SELECT FunderName, FunderLoanId, FunderLoanName, EMIDueDate, DueNo, PaidNo, PrincipalAmount, InterestAmount, TotalAmount, PaidStatus, PaidDate, VoucherId, PayType, PayMode, PayStatus, PayHeadId, PayTransId, EntryUser, EntryTime FROM FunderLoanLedger WITH(nolock) WHERE 1=1 AND PaidDate>='11/22/2025 12:00:00 AM' AND PaidDate<'11/23/2025 12:00:00 AM' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'FunderLoanLedger'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 04:30:50 PM PageName: FunderInvestor_InvestorRepaymentReverse String str: SELECT FunderName, FunderLoanId, FunderLoanName, EMIDueDate, DueNo, PaidNo, PrincipalAmount, InterestAmount, TotalAmount, PaidStatus, PaidDate, VoucherId, PayType, PayMode, PayStatus, PayHeadId, PayTransId, EntryUser, EntryTime FROM FunderLoanLedger WITH(nolock) WHERE 1=1 AND PaidDate>='11/22/2025 12:00:00 AM' AND PaidDate<'11/23/2025 12:00:00 AM' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_yba5bpqz StackTrace: at FunderInvestor_InvestorRepaymentReverse.FillData() TargetSite: Void FillData() Time: 22/11/2025 04:34:45 PM PageName: DataTableResult String str: SELECT FunderName, FunderLoanId, FunderLoanName, EMIDueDate, DueNo, PaidNo, PrincipalAmount, InterestAmount, TotalAmount, PaidStatus, PaidDate, VoucherId, PayType, PayMode, PayStatus, PayHeadId, PayTransId, EntryUser, EntryTime FROM FunderLoanLedger WITH(nolock) WHERE 1=1 AND PaidDate>='11/22/2025 12:00:00 AM' AND PaidDate<'11/23/2025 12:00:00 AM' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'FunderLoanLedger'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 04:34:45 PM PageName: FunderInvestor_InvestorRepaymentReverse String str: SELECT FunderName, FunderLoanId, FunderLoanName, EMIDueDate, DueNo, PaidNo, PrincipalAmount, InterestAmount, TotalAmount, PaidStatus, PaidDate, VoucherId, PayType, PayMode, PayStatus, PayHeadId, PayTransId, EntryUser, EntryTime FROM FunderLoanLedger WITH(nolock) WHERE 1=1 AND PaidDate>='11/22/2025 12:00:00 AM' AND PaidDate<'11/23/2025 12:00:00 AM' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_yba5bpqz StackTrace: at FunderInvestor_InvestorRepaymentReverse.FillData() TargetSite: Void FillData() Time: 22/11/2025 04:34:50 PM PageName: UserMasterSetting_WorkingDateSelection String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_41ryzhku StackTrace: at UserMasterSetting_WorkingDateSelection.Page_Load(Object sender, EventArgs e) TargetSite: Void Page_Load(System.Object, System.EventArgs) Time: 22/11/2025 04:39:53 PM PageName: Employee_EmployeeRegistrationVerification String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_3qkf2zc4 StackTrace: at Employee_EmployeeRegistrationVerification.d__3d.MoveNext() TargetSite: Void MoveNext() Time: 22/11/2025 05:06:31 PM PageName: Employee_EmployeeLeaveCalculation String str: DECLARE @FDate DATE, @TDate DATE, @OnDate DATE; SET @FDate='10/1/2025 12:00:00 AM'; SET @OnDate=dateadd(day,-1,@FDate); SET @TDate=(SELECT SalaryToDate FROM FinancialMonthMaster WITH(nolock) WHERE SalaryFromDate=@FDate ); DECLARE @FTable TABLE ( SrNo INT IDENTITY(-1,1), BranchName VARCHAR(50), Designation VARCHAR(50), Department VARCHAR(50), EmployeeId VARCHAR(20), EmployeeName VARCHAR(50), NoOfDay DECIMAL(5,2), Holiday DECIMAL(5,2), Present DECIMAL(5,2), Absent DECIMAL(5,2), Worked DECIMAL(5,2), Leave DECIMAL(5,2), LossOfPay DECIMAL(5,2), FromDate VARCHAR(10), ToDate VARCHAR(10), Day1 VARCHAR(20), Day2 VARCHAR(20), Day3 VARCHAR(20), Day4 VARCHAR(20), Day5 VARCHAR(20), Day6 VARCHAR(20), Day7 VARCHAR(20), Day8 VARCHAR(20), Day9 VARCHAR(20), Day10 VARCHAR(20), Day11 VARCHAR(20), Day12 VARCHAR(20), Day13 VARCHAR(20), Day14 VARCHAR(20), Day15 VARCHAR(20), Day16 VARCHAR(20), Day17 VARCHAR(20), Day18 VARCHAR(20), Day19 VARCHAR(20), Day20 VARCHAR(20), Day21 VARCHAR(20), Day22 VARCHAR(20), Day23 VARCHAR(20), Day24 VARCHAR(20), Day25 VARCHAR(20), Day26 VARCHAR(20), Day27 VARCHAR(20), Day28 VARCHAR(20), Day29 VARCHAR(20), Day30 VARCHAR(20), Day31 VARCHAR(20) ); INSERT INTO @FTable ( BranchName, Designation, Department, EmployeeId, EmployeeName, Day1, Day2, Day3, Day4, Day5, Day6, Day7, Day8, Day9, Day10, Day11, Day12, Day13, Day14, Day15, Day16, Day17, Day18, Day19, Day20, Day21, Day22, Day23, Day24, Day25, Day26, Day27, Day28, Day29, Day30, Day31 ) SELECT 'BranchName'AS BranchName, 'Designation'AS Designation, 'Department'AS Department, 'EmployeeId'AS EmployeeId, 'EmployeeName'AS EmployeeName, Convert(char,dateadd(day,1,@OnDate),106)AS Day1, Convert(char,dateadd(day,2,@OnDate),106)AS Day2, Convert(char,dateadd(day,3,@OnDate),106) AS Day3, Convert(char,dateadd(day,4,@OnDate),106) AS Day4, Convert(char,dateadd(day,5,@OnDate),106) AS Day5, Convert(char,dateadd(day,6,@OnDate),106) AS Day6, Convert(char,dateadd(day,7,@OnDate),106) AS Day7, Convert(char,dateadd(day,8,@OnDate),106) AS Day8, Convert(char,dateadd(day,9,@OnDate),106) AS Day9, Convert(char,dateadd(day,10,@OnDate),106) AS Day10, Convert(char,dateadd(day,11,@OnDate),106) AS Day11, Convert(char,dateadd(day,12,@OnDate),106) AS Day12, Convert(char,dateadd(day,13,@OnDate),106) AS Day13, Convert(char,dateadd(day,14,@OnDate),106) AS Day14, Convert(char,dateadd(day,15,@OnDate),106) AS Day15, Convert(char,dateadd(day,16,@OnDate),106) AS Day16, Convert(char,dateadd(day,17,@OnDate),106) AS Day17, Convert(char,dateadd(day,18,@OnDate),106) AS Day18, Convert(char,dateadd(day,19,@OnDate),106) AS Day19, Convert(char,dateadd(day,20,@OnDate),106) AS Day20, Convert(char,dateadd(day,21,@OnDate),106) AS Day21, Convert(char,dateadd(day,22,@OnDate),106) AS Day22, Convert(char,dateadd(day,23,@OnDate),106) AS Day23, Convert(char,dateadd(day,24,@OnDate),106) AS Day24, Convert(char,dateadd(day,25,@OnDate),106) AS Day25, Convert(char,dateadd(day,26,@OnDate),106) AS Day26, Convert(char,dateadd(day,27,@OnDate),106) AS Day27, Convert(char,dateadd(day,28,@OnDate),106) AS Day28, Convert(char,dateadd(day,29,@OnDate),106) AS Day29, Convert(char,dateadd(day,30,@OnDate),106) AS Day30, Convert(char,dateadd(day,31,@OnDate),106) AS Day31 ; INSERT INTO @FTable ( BranchName, Designation, Department, EmployeeId, EmployeeName, Day1, Day2, Day3, Day4, Day5, Day6, Day7, Day8, Day9, Day10, Day11, Day12, Day13, Day14, Day15, Day16, Day17, Day18, Day19, Day20, Day21, Day22, Day23, Day24, Day25, Day26, Day27, Day28, Day29, Day30, Day31 ) SELECT 'BranchName'AS BranchName, 'Designation'AS Designation, 'Department'AS Department, 'EmployeeId'AS EmployeeId, 'EmployeeName'AS EmployeeName, datename(dw,dateadd(day,1,@OnDate))AS Day1, datename(dw,dateadd(day,2,@OnDate))AS Day2, datename(dw,dateadd(day,3,@OnDate)) AS Day3, datename(dw,dateadd(day,4,@OnDate)) AS Day4, datename(dw,dateadd(day,5,@OnDate)) AS Day5, datename(dw,dateadd(day,6,@OnDate)) AS Day6, datename(dw,dateadd(day,7,@OnDate)) AS Day7, datename(dw,dateadd(day,8,@OnDate)) AS Day8, datename(dw,dateadd(day,9,@OnDate)) AS Day9, datename(dw,dateadd(day,10,@OnDate)) AS Day10, datename(dw,dateadd(day,11,@OnDate)) AS Day11, datename(dw,dateadd(day,12,@OnDate)) AS Day12, datename(dw,dateadd(day,13,@OnDate)) AS Day13, datename(dw,dateadd(day,14,@OnDate)) AS Day14, datename(dw,dateadd(day,15,@OnDate)) AS Day15, datename(dw,dateadd(day,16,@OnDate)) AS Day16, datename(dw,dateadd(day,17,@OnDate)) AS Day17, datename(dw,dateadd(day,18,@OnDate)) AS Day18, datename(dw,dateadd(day,19,@OnDate)) AS Day19, datename(dw,dateadd(day,20,@OnDate)) AS Day20, datename(dw,dateadd(day,21,@OnDate)) AS Day21, datename(dw,dateadd(day,22,@OnDate)) AS Day22, datename(dw,dateadd(day,23,@OnDate)) AS Day23, datename(dw,dateadd(day,24,@OnDate)) AS Day24, datename(dw,dateadd(day,25,@OnDate)) AS Day25, datename(dw,dateadd(day,26,@OnDate)) AS Day26, datename(dw,dateadd(day,27,@OnDate)) AS Day27, datename(dw,dateadd(day,28,@OnDate)) AS Day28, datename(dw,dateadd(day,29,@OnDate)) AS Day29, datename(dw,dateadd(day,30,@OnDate)) AS Day30, datename(dw,dateadd(day,31,@OnDate)) AS Day31 ; INSERT INTO @FTable ( BranchName, Designation, Department, EmployeeId, EmployeeName, FromDate, ToDate, NoOfDay ) SELECT BranchName, DesignationName, DepartmentName, EmployeeId, EmployeeName, Convert(char,@FDate,103)AS FromDate, Convert(char,@TDate,103) AS ToDate, datediff(day,@FDate,@TDate)+1 AS NoOfDay FROM EmployeeRegistrationDetail WITH(nolock) WHERE EmpJoinDate=@FDate AND a.AttDate=1 ; UPDATE a SET a.Day1=(CASE WHEN a.Day1='Leave (1.00)' THEN 'Leave' WHEN a.Day1='Holiday (1.00)' THEN 'Holiday' WHEN a.Day1='Absent (1.00)' THEN 'Absent' WHEN a.Day1='Present (0.00)' THEN 'Present' ELSE a.Day1 END), a.Day2=(CASE WHEN a.Day2='Leave (1.00)' THEN 'Leave' WHEN a.Day2='Holiday (1.00)' THEN 'Holiday' WHEN a.Day2='Absent (1.00)' THEN 'Absent' WHEN a.Day2='Present (0.00)' THEN 'Present' ELSE a.Day2 END),a.Day3=(CASE WHEN a.Day3='Leave (1.00)' THEN 'Leave' WHEN a.Day3='Holiday (1.00)' THEN 'Holiday' WHEN a.Day3='Absent (1.00)' THEN 'Absent' WHEN a.Day3='Present (0.00)' THEN 'Present' ELSE a.Day3 END), a.Day4=(CASE WHEN a.Day4='Leave (1.00)' THEN 'Leave' WHEN a.Day4='Holiday (1.00)' THEN 'Holiday' WHEN a.Day4='Absent (1.00)' THEN 'Absent' WHEN a.Day4='Present (0.00)' THEN 'Present' ELSE a.Day4 END), a.Day5=(CASE WHEN a.Day5='Leave (1.00)' THEN 'Leave' WHEN a.Day5='Holiday (1.00)' THEN 'Holiday' WHEN a.Day5='Absent (1.00)' THEN 'Absent' WHEN a.Day5='Present (0.00)' THEN 'Present' ELSE a.Day5 END), a.Day6=(CASE WHEN a.Day6='Leave (1.00)' THEN 'Leave' WHEN a.Day6='Holiday (1.00)' THEN 'Holiday' WHEN a.Day6='Absent (1.00)' THEN 'Absent' WHEN a.Day6='Present (0.00)' THEN 'Present' ELSE a.Day6 END), a.Day7=(CASE WHEN a.Day7='Leave (1.00)' THEN 'Leave' WHEN a.Day7='Holiday (1.00)' THEN 'Holiday' WHEN a.Day7='Absent (1.00)' THEN 'Absent' WHEN a.Day7='Present (0.00)' THEN 'Present' ELSE a.Day7 END), a.Day8=(CASE WHEN a.Day8='Leave (1.00)' THEN 'Leave' WHEN a.Day8='Holiday (1.00)' THEN 'Holiday' WHEN a.Day8='Absent (1.00)' THEN 'Absent' WHEN a.Day8='Present (0.00)' THEN 'Present' ELSE a.Day8 END), a.Day9=(CASE WHEN a.Day9='Leave (1.00)' THEN 'Leave' WHEN a.Day9='Holiday (1.00)' THEN 'Holiday' WHEN a.Day9='Absent (1.00)' THEN 'Absent' WHEN a.Day9='Present (0.00)' THEN 'Present' ELSE a.Day9 END), a.Day10=(CASE WHEN a.Day10='Leave (1.00)' THEN 'Leave' WHEN a.Day10='Holiday (1.00)' THEN 'Holiday' WHEN a.Day10='Absent (1.00)' THEN 'Absent' WHEN a.Day10='Present (0.00)' THEN 'Present' ELSE a.Day10 END), a.Day11=(CASE WHEN a.Day11='Leave (1.00)' THEN 'Leave' WHEN a.Day11='Holiday (1.00)' THEN 'Holiday' WHEN a.Day11='Absent (1.00)' THEN 'Absent' WHEN a.Day11='Present (0.00)' THEN 'Present' ELSE a.Day11 END), a.Day12=(CASE WHEN a.Day12='Leave (1.00)' THEN 'Leave' WHEN a.Day12='Holiday (1.00)' THEN 'Holiday' WHEN a.Day12='Absent (1.00)' THEN 'Absent' WHEN a.Day12='Present (0.00)' THEN 'Present' ELSE a.Day12 END), a.Day13=(CASE WHEN a.Day13='Leave (1.00)' THEN 'Leave' WHEN a.Day13='Holiday (1.00)' THEN 'Holiday' WHEN a.Day13='Absent (1.00)' THEN 'Absent' WHEN a.Day13='Present (0.00)' THEN 'Present' ELSE a.Day13 END), a.Day14=(CASE WHEN a.Day14='Leave (1.00)' THEN 'Leave' WHEN a.Day14='Holiday (1.00)' THEN 'Holiday' WHEN a.Day14='Absent (1.00)' THEN 'Absent' WHEN a.Day14='Present (0.00)' THEN 'Present' ELSE a.Day14 END), a.Day15=(CASE WHEN a.Day15='Leave (1.00)' THEN 'Leave' WHEN a.Day15='Holiday (1.00)' THEN 'Holiday' WHEN a.Day15='Absent (1.00)' THEN 'Absent' WHEN a.Day15='Present (0.00)' THEN 'Present' ELSE a.Day15 END), a.Day16=(CASE WHEN a.Day16='Leave (1.00)' THEN 'Leave' WHEN a.Day16='Holiday (1.00)' THEN 'Holiday' WHEN a.Day16='Absent (1.00)' THEN 'Absent' WHEN a.Day16='Present (0.00)' THEN 'Present' ELSE a.Day16 END), a.Day17=(CASE WHEN a.Day17='Leave (1.00)' THEN 'Leave' WHEN a.Day17='Holiday (1.00)' THEN 'Holiday' WHEN a.Day17='Absent (1.00)' THEN 'Absent' WHEN a.Day17='Present (0.00)' THEN 'Present' ELSE a.Day17 END), a.Day18=(CASE WHEN a.Day18='Leave (1.00)' THEN 'Leave' WHEN a.Day18='Holiday (1.00)' THEN 'Holiday' WHEN a.Day18='Absent (1.00)' THEN 'Absent' WHEN a.Day18='Present (0.00)' THEN 'Present' ELSE a.Day18 END), a.Day19=(CASE WHEN a.Day19='Leave (1.00)' THEN 'Leave' WHEN a.Day19='Holiday (1.00)' THEN 'Holiday' WHEN a.Day19='Absent (1.00)' THEN 'Absent' WHEN a.Day19='Present (0.00)' THEN 'Present' ELSE a.Day19 END), a.Day20=(CASE WHEN a.Day20='Leave (1.00)' THEN 'Leave' WHEN a.Day20='Holiday (1.00)' THEN 'Holiday' WHEN a.Day20='Absent (1.00)' THEN 'Absent' WHEN a.Day20='Present (0.00)' THEN 'Present' ELSE a.Day20 END), a.Day21=(CASE WHEN a.Day21='Leave (1.00)' THEN 'Leave' WHEN a.Day21='Holiday (1.00)' THEN 'Holiday' WHEN a.Day21='Absent (1.00)' THEN 'Absent' WHEN a.Day21='Present (0.00)' THEN 'Present' ELSE a.Day21 END), a.Day22=(CASE WHEN a.Day22='Leave (1.00)' THEN 'Leave' WHEN a.Day22='Holiday (1.00)' THEN 'Holiday' WHEN a.Day22='Absent (1.00)' THEN 'Absent' WHEN a.Day22='Present (0.00)' THEN 'Present' ELSE a.Day22 END), a.Day23=(CASE WHEN a.Day23='Leave (1.00)' THEN 'Leave' WHEN a.Day23='Holiday (1.00)' THEN 'Holiday' WHEN a.Day23='Absent (1.00)' THEN 'Absent' WHEN a.Day23='Present (0.00)' THEN 'Present' ELSE a.Day23 END), a.Day24=(CASE WHEN a.Day24='Leave (1.00)' THEN 'Leave' WHEN a.Day24='Holiday (1.00)' THEN 'Holiday' WHEN a.Day24='Absent (1.00)' THEN 'Absent' WHEN a.Day24='Present (0.00)' THEN 'Present' ELSE a.Day24 END), a.Day25=(CASE WHEN a.Day25='Leave (1.00)' THEN 'Leave' WHEN a.Day25='Holiday (1.00)' THEN 'Holiday' WHEN a.Day25='Absent (1.00)' THEN 'Absent' WHEN a.Day25='Present (0.00)' THEN 'Present' ELSE a.Day25 END), a.Day26=(CASE WHEN a.Day26='Leave (1.00)' THEN 'Leave' WHEN a.Day26='Holiday (1.00)' THEN 'Holiday' WHEN a.Day26='Absent (1.00)' THEN 'Absent' WHEN a.Day26='Present (0.00)' THEN 'Present' ELSE a.Day26 END), a.Day27=(CASE WHEN a.Day27='Leave (1.00)' THEN 'Leave' WHEN a.Day27='Holiday (1.00)' THEN 'Holiday' WHEN a.Day27='Absent (1.00)' THEN 'Absent' WHEN a.Day27='Present (0.00)' THEN 'Present' ELSE a.Day27 END), a.Day28=(CASE WHEN a.Day28='Leave (1.00)' THEN 'Leave' WHEN a.Day28='Holiday (1.00)' THEN 'Holiday' WHEN a.Day28='Absent (1.00)' THEN 'Absent' WHEN a.Day28='Present (0.00)' THEN 'Present' ELSE a.Day28 END), a.Day29=(CASE WHEN a.Day29='Leave (1.00)' THEN 'Leave' WHEN a.Day29='Holiday (1.00)' THEN 'Holiday' WHEN a.Day29='Absent (1.00)' THEN 'Absent' WHEN a.Day29='Present (0.00)' THEN 'Present' ELSE a.Day29 END), a.Day30=(CASE WHEN a.Day30='Leave (1.00)' THEN 'Leave' WHEN a.Day30='Holiday (1.00)' THEN 'Holiday' WHEN a.Day30='Absent (1.00)' THEN 'Absent' WHEN a.Day30='Present (0.00)' THEN 'Present' ELSE a.Day30 END), a.Day31=(CASE WHEN a.Day31='Leave (1.00)' THEN 'Leave' WHEN a.Day31='Holiday (1.00)' THEN 'Holiday' WHEN a.Day31='Absent (1.00)' THEN 'Absent' WHEN a.Day31='Present (0.00)' THEN 'Present' ELSE a.Day31 END) FROM @FTable a WHERE a.SrNo>=1 ; UPDATE ta SET ta.Holiday=(SELECT count(1) FROM @TTable WHERE AttType='Holiday' AND EmployeeId=ta.EmployeeId), ta.Leave=(SELECT count(1) FROM @TTable WHERE AttType='Leave' AND EmployeeId=ta.EmployeeId), ta.Present=(SELECT count(1) FROM @TTable WHERE AttType='Present' AND EmployeeId=ta.EmployeeId), ta.Absent=(SELECT count(1) FROM @TTable WHERE AttType='Absent' AND EmployeeId=ta.EmployeeId), ta.LossOfPay=(SELECT SUM(AttValue) FROM @TTable WHERE AttType='Absent' AND EmployeeId=ta.EmployeeId) FROM @FTable ta WHERE ta.SrNo>=1 ; UPDATE ta SET ta.Worked=ta.Present+ta.Absent-ta.LossOfPay FROM @FTable ta WHERE ta.SrNo>=1 ; SELECT a.SrNo, a.BranchName, a.Designation, a.Department, a.EmployeeId, a.EmployeeName, a.NoOfDay, a.Holiday, a.Leave, a.Present, a.Absent, a.Worked, a.LossOfPay, a.Day1, a.Day2, a.Day3, a.Day4, a.Day5, a.Day6, a.Day7, a.Day8, a.Day9, a.Day10, a.Day11, a.Day12, a.Day13, a.Day14, a.Day15, a.Day16, a.Day17, a.Day18, a.Day19, a.Day20, a.Day21, a.Day22, a.Day23, a.Day24, a.Day25, a.Day26, a.Day27, a.Day28, a.Day29, a.Day30, a.Day31, a.FromDate, a.ToDate FROM @FTable a WHERE 1=1 ORDER BY a.SrNo String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: There is no row at position 2. Source: System.Data StackTrace: at System.Data.RBTree`1.GetNodeByIndex(Int32 userIndex) at Employee_EmployeeLeaveCalculation.btnSearch_Click(Object sender, EventArgs e) TargetSite: NodePath GetNodeByIndex(Int32) Time: 22/11/2025 05:47:29 PM PageName: DataSetResult String str: SELECT a.EmployeeId, a.EmployeeName FROM EmployeeRegistrationDetail a WITH(nolock) WHERE a.GrouLoanTeam='Yes' AND a.BranchId='101' ORDER BY a.EmployeeName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'GrouLoanTeam'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) at ClassMaster.DataSetResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 05:47:29 PM PageName: IndividualLoan_IndvMemberDetailCorrection String str: SELECT a.EmployeeId, a.EmployeeName FROM EmployeeRegistrationDetail a WITH(nolock) WHERE a.GrouLoanTeam='Yes' AND a.BranchId='101' ORDER BY a.EmployeeName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_muaguz4k StackTrace: at IndividualLoan_IndvMemberDetailCorrection.fillEmployeeList() TargetSite: Void fillEmployeeList() Time: 22/11/2025 05:47:43 PM PageName: DataSetResult String str: SELECT a.EmployeeId, a.EmployeeName FROM EmployeeRegistrationDetail a WITH(nolock) WHERE a.GrouLoanTeam='Yes' AND a.BranchId='100' ORDER BY a.EmployeeName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'GrouLoanTeam'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) at ClassMaster.DataSetResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 05:47:43 PM PageName: IndividualLoan_IndvMemberDetailCorrection String str: SELECT a.EmployeeId, a.EmployeeName FROM EmployeeRegistrationDetail a WITH(nolock) WHERE a.GrouLoanTeam='Yes' AND a.BranchId='100' ORDER BY a.EmployeeName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_muaguz4k StackTrace: at IndividualLoan_IndvMemberDetailCorrection.fillEmployeeList() TargetSite: Void fillEmployeeList() Time: 22/11/2025 05:47:48 PM PageName: DataSetResult String str: SELECT a.EmployeeId, a.EmployeeName FROM EmployeeRegistrationDetail a WITH(nolock) WHERE a.GrouLoanTeam='Yes' AND a.BranchId='100' ORDER BY a.EmployeeName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'GrouLoanTeam'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) at ClassMaster.DataSetResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 05:47:48 PM PageName: IndividualLoan_IndvMemberDetailCorrection String str: SELECT a.EmployeeId, a.EmployeeName FROM EmployeeRegistrationDetail a WITH(nolock) WHERE a.GrouLoanTeam='Yes' AND a.BranchId='100' ORDER BY a.EmployeeName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_muaguz4k StackTrace: at IndividualLoan_IndvMemberDetailCorrection.fillEmployeeList() TargetSite: Void fillEmployeeList() Time: 22/11/2025 05:47:54 PM PageName: DataSetResult String str: SELECT a.EmployeeId, a.EmployeeName FROM EmployeeRegistrationDetail a WITH(nolock) WHERE a.GrouLoanTeam='Yes' AND a.BranchId='100' ORDER BY a.EmployeeName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'GrouLoanTeam'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) at ClassMaster.DataSetResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 05:47:54 PM PageName: IndividualLoan_IndvMemberDetailCorrection String str: SELECT a.EmployeeId, a.EmployeeName FROM EmployeeRegistrationDetail a WITH(nolock) WHERE a.GrouLoanTeam='Yes' AND a.BranchId='100' ORDER BY a.EmployeeName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_muaguz4k StackTrace: at IndividualLoan_IndvMemberDetailCorrection.fillEmployeeList() TargetSite: Void fillEmployeeList() Time: 22/11/2025 05:47:58 PM PageName: DataSetResult String str: SELECT a.EmployeeId, a.EmployeeName FROM EmployeeRegistrationDetail a WITH(nolock) WHERE a.GrouLoanTeam='Yes' AND a.BranchId='101' ORDER BY a.EmployeeName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'GrouLoanTeam'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) at ClassMaster.DataSetResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 05:47:58 PM PageName: IndividualLoan_IndvMemberDetailCorrection String str: SELECT a.EmployeeId, a.EmployeeName FROM EmployeeRegistrationDetail a WITH(nolock) WHERE a.GrouLoanTeam='Yes' AND a.BranchId='101' ORDER BY a.EmployeeName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_muaguz4k StackTrace: at IndividualLoan_IndvMemberDetailCorrection.fillEmployeeList() TargetSite: Void fillEmployeeList() Time: 22/11/2025 06:00:26 PM PageName: DataTableResult String str: DECLARE @ODate DATE; SET @ODate='11/26/2025 12:00:00 AM'; DECLARE @BranchId VARCHAR(20), @OfficerId VARCHAR(20); SET @BranchId='101'; SET @OfficerId='EMP00147'; DECLARE @FTable TABLE ( MemberId VARCHAR(20), MemberName VARCHAR(60), NomineeName VARCHAR(60), MobileNo VARCHAR(20), LoanId VARCHAR(50), LoanCycle VARCHAR(2), DisburseDate VARCHAR(20), LoanAmount DECIMAL(10,2), EMIAmount DECIMAL(10,2), DueDate VARCHAR(20), DueNo INT, PaidAmount DECIMAL(10,2), ODAmount DECIMAL(10,2), DueAmount DECIMAL(10,2), Penalty DECIMAL(10,2), BalanceAmount DECIMAL(10,2), GLoanTypeNo VARCHAR(25), PenaltyRate DECIMAL(10,6) ); DECLARE @LTable TABLE ( LoanId VARCHAR(50) ); DECLARE @TTable TABLE ( LoanId VARCHAR(50), DDate DATE, DNo INT, Total DECIMAL(10,2), PStatus VARCHAR(10) ); INSERT INTO @LTable ( LoanId ) SELECT ld.LoanId FROM GroupLoanAccount ld WITH(nolock) WHERE ld.GroupName='Individual' AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId=@BranchId AND ld.LoanOfficerId=@OfficerId AND ld.CenterId=@CenterId; INSERT INTO @TTable ( LoanId, DDate, DNo, Total, PStatus ) SELECT a.LoanId, a.DDate, a.DNo, a.Total, a.PStatus FROM GroupLoanLedger a WITH(nolock) INNER JOIN @LTable b ON a.LoanId=b.LoanId WHERE a.PStatus='Due'; INSERT INTO @FTable ( MemberId, MemberName, NomineeName, MobileNo, LoanId, LoanCycle, DisburseDate, LoanAmount, EMIAmount, PaidAmount, GLoanTypeNo ) SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.MobileNo, ld.LoanId, ld.LoanCycle, Convert(CHAR,ld.DisburseDate,106)AS DisbuseDate, ld.LoanAmount, ld.EMIAmount, ld.CMEMI AS PaidAmount, ld.GLoanTypeNo FROM GroupLoanAccount ld WITH(nolock) WHERE ld.LoanStatus='LoanDisbursed' AND ld.BranchId=@BranchId AND ld.LoanOfficerId=@OfficerId AND ld.CenterId=@CenterId ; UPDATE ta SET ta.PenaltyRate=(SELECT PenaltyRateAnnual FROM GroupLoanNoMaster WITH(nolock) WHERE GLoanTypeNo=ta.GLoanTypeNo) FROM @FTable ta; UPDATE ta SET ta.Penalty = (SELECT SUM(datediff(day, DDate, @ODate) * Total) FROM @TTable WHERE LoanId = ta.LoanId AND PStatus = 'Due' AND DDate< @ODate)*ta.PenaltyRate / 36500 FROM @FTable ta; UPDATE ta SET ta.DueDate=(SELECT Convert(CHAR,MIN(DDate),103) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due') FROM @FTable ta; UPDATE ta SET ta.DueNo=(SELECT MIN(DNo) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due') FROM @FTable ta; UPDATE ta SET ta.ODAmount=(SELECT SUM(Total) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due' AND DDate<@ODate) FROM @FTable ta; UPDATE ta SET ta.DueAmount=(SELECT SUM(Total) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due' AND DDate=@ODate) FROM @FTable ta; UPDATE ta SET ta.BalanceAmount=(SELECT SUM(Total) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due') FROM @FTable ta; SELECT a.MemberId, a.MemberName, a.NomineeName, a.MobileNo, a.LoanId, a.DisburseDate, a.LoanAmount, a.EMIAmount, a.DueDate, a.DueNo, CASE WHEN isnull(a.PaidAmount,0)>0 THEN 'Yes' ELSE 'No' END AS MeetingStatus, CASE WHEN isnull(a.PaidAmount,0)>0 THEN 0 ELSE isnull(a.ODAmount,0)+isnull(a.DueAmount,0) END AS PayableAmount, isnull(a.PaidAmount,0)AS PaidAmount, isnull(a.ODAmount,0)AS ODAmount, isnull(a.Penalty,0)AS Penalty, isnull(a.DueAmount,0)AS DueAmount, a.BalanceAmount FROM @FTable a WHERE 1=1 AND isnull(a.BalanceAmount,0)>0 ORDER BY a.MemberName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Must declare the scalar variable "@CenterId". Must declare the scalar variable "@CenterId". Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 06:00:26 PM PageName: IndividualLoan_IndvLoanOfficerMeeting String str: DECLARE @ODate DATE; SET @ODate='11/26/2025 12:00:00 AM'; DECLARE @BranchId VARCHAR(20), @OfficerId VARCHAR(20); SET @BranchId='101'; SET @OfficerId='EMP00147'; DECLARE @FTable TABLE ( MemberId VARCHAR(20), MemberName VARCHAR(60), NomineeName VARCHAR(60), MobileNo VARCHAR(20), LoanId VARCHAR(50), LoanCycle VARCHAR(2), DisburseDate VARCHAR(20), LoanAmount DECIMAL(10,2), EMIAmount DECIMAL(10,2), DueDate VARCHAR(20), DueNo INT, PaidAmount DECIMAL(10,2), ODAmount DECIMAL(10,2), DueAmount DECIMAL(10,2), Penalty DECIMAL(10,2), BalanceAmount DECIMAL(10,2), GLoanTypeNo VARCHAR(25), PenaltyRate DECIMAL(10,6) ); DECLARE @LTable TABLE ( LoanId VARCHAR(50) ); DECLARE @TTable TABLE ( LoanId VARCHAR(50), DDate DATE, DNo INT, Total DECIMAL(10,2), PStatus VARCHAR(10) ); INSERT INTO @LTable ( LoanId ) SELECT ld.LoanId FROM GroupLoanAccount ld WITH(nolock) WHERE ld.GroupName='Individual' AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId=@BranchId AND ld.LoanOfficerId=@OfficerId AND ld.CenterId=@CenterId; INSERT INTO @TTable ( LoanId, DDate, DNo, Total, PStatus ) SELECT a.LoanId, a.DDate, a.DNo, a.Total, a.PStatus FROM GroupLoanLedger a WITH(nolock) INNER JOIN @LTable b ON a.LoanId=b.LoanId WHERE a.PStatus='Due'; INSERT INTO @FTable ( MemberId, MemberName, NomineeName, MobileNo, LoanId, LoanCycle, DisburseDate, LoanAmount, EMIAmount, PaidAmount, GLoanTypeNo ) SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.MobileNo, ld.LoanId, ld.LoanCycle, Convert(CHAR,ld.DisburseDate,106)AS DisbuseDate, ld.LoanAmount, ld.EMIAmount, ld.CMEMI AS PaidAmount, ld.GLoanTypeNo FROM GroupLoanAccount ld WITH(nolock) WHERE ld.LoanStatus='LoanDisbursed' AND ld.BranchId=@BranchId AND ld.LoanOfficerId=@OfficerId AND ld.CenterId=@CenterId ; UPDATE ta SET ta.PenaltyRate=(SELECT PenaltyRateAnnual FROM GroupLoanNoMaster WITH(nolock) WHERE GLoanTypeNo=ta.GLoanTypeNo) FROM @FTable ta; UPDATE ta SET ta.Penalty = (SELECT SUM(datediff(day, DDate, @ODate) * Total) FROM @TTable WHERE LoanId = ta.LoanId AND PStatus = 'Due' AND DDate< @ODate)*ta.PenaltyRate / 36500 FROM @FTable ta; UPDATE ta SET ta.DueDate=(SELECT Convert(CHAR,MIN(DDate),103) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due') FROM @FTable ta; UPDATE ta SET ta.DueNo=(SELECT MIN(DNo) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due') FROM @FTable ta; UPDATE ta SET ta.ODAmount=(SELECT SUM(Total) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due' AND DDate<@ODate) FROM @FTable ta; UPDATE ta SET ta.DueAmount=(SELECT SUM(Total) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due' AND DDate=@ODate) FROM @FTable ta; UPDATE ta SET ta.BalanceAmount=(SELECT SUM(Total) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due') FROM @FTable ta; SELECT a.MemberId, a.MemberName, a.NomineeName, a.MobileNo, a.LoanId, a.DisburseDate, a.LoanAmount, a.EMIAmount, a.DueDate, a.DueNo, CASE WHEN isnull(a.PaidAmount,0)>0 THEN 'Yes' ELSE 'No' END AS MeetingStatus, CASE WHEN isnull(a.PaidAmount,0)>0 THEN 0 ELSE isnull(a.ODAmount,0)+isnull(a.DueAmount,0) END AS PayableAmount, isnull(a.PaidAmount,0)AS PaidAmount, isnull(a.ODAmount,0)AS ODAmount, isnull(a.Penalty,0)AS Penalty, isnull(a.DueAmount,0)AS DueAmount, a.BalanceAmount FROM @FTable a WHERE 1=1 AND isnull(a.BalanceAmount,0)>0 ORDER BY a.MemberName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_unnvol1k StackTrace: at IndividualLoan_IndvLoanOfficerMeeting.FillData() TargetSite: Void FillData() Time: 22/11/2025 06:00:31 PM PageName: DataTableResult String str: DECLARE @ODate DATE; SET @ODate='11/26/2025 12:00:00 AM'; DECLARE @BranchId VARCHAR(20), @OfficerId VARCHAR(20); SET @BranchId='101'; SET @OfficerId='EMP00142'; DECLARE @FTable TABLE ( MemberId VARCHAR(20), MemberName VARCHAR(60), NomineeName VARCHAR(60), MobileNo VARCHAR(20), LoanId VARCHAR(50), LoanCycle VARCHAR(2), DisburseDate VARCHAR(20), LoanAmount DECIMAL(10,2), EMIAmount DECIMAL(10,2), DueDate VARCHAR(20), DueNo INT, PaidAmount DECIMAL(10,2), ODAmount DECIMAL(10,2), DueAmount DECIMAL(10,2), Penalty DECIMAL(10,2), BalanceAmount DECIMAL(10,2), GLoanTypeNo VARCHAR(25), PenaltyRate DECIMAL(10,6) ); DECLARE @LTable TABLE ( LoanId VARCHAR(50) ); DECLARE @TTable TABLE ( LoanId VARCHAR(50), DDate DATE, DNo INT, Total DECIMAL(10,2), PStatus VARCHAR(10) ); INSERT INTO @LTable ( LoanId ) SELECT ld.LoanId FROM GroupLoanAccount ld WITH(nolock) WHERE ld.GroupName='Individual' AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId=@BranchId AND ld.LoanOfficerId=@OfficerId AND ld.CenterId=@CenterId; INSERT INTO @TTable ( LoanId, DDate, DNo, Total, PStatus ) SELECT a.LoanId, a.DDate, a.DNo, a.Total, a.PStatus FROM GroupLoanLedger a WITH(nolock) INNER JOIN @LTable b ON a.LoanId=b.LoanId WHERE a.PStatus='Due'; INSERT INTO @FTable ( MemberId, MemberName, NomineeName, MobileNo, LoanId, LoanCycle, DisburseDate, LoanAmount, EMIAmount, PaidAmount, GLoanTypeNo ) SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.MobileNo, ld.LoanId, ld.LoanCycle, Convert(CHAR,ld.DisburseDate,106)AS DisbuseDate, ld.LoanAmount, ld.EMIAmount, ld.CMEMI AS PaidAmount, ld.GLoanTypeNo FROM GroupLoanAccount ld WITH(nolock) WHERE ld.LoanStatus='LoanDisbursed' AND ld.BranchId=@BranchId AND ld.LoanOfficerId=@OfficerId AND ld.CenterId=@CenterId ; UPDATE ta SET ta.PenaltyRate=(SELECT PenaltyRateAnnual FROM GroupLoanNoMaster WITH(nolock) WHERE GLoanTypeNo=ta.GLoanTypeNo) FROM @FTable ta; UPDATE ta SET ta.Penalty = (SELECT SUM(datediff(day, DDate, @ODate) * Total) FROM @TTable WHERE LoanId = ta.LoanId AND PStatus = 'Due' AND DDate< @ODate)*ta.PenaltyRate / 36500 FROM @FTable ta; UPDATE ta SET ta.DueDate=(SELECT Convert(CHAR,MIN(DDate),103) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due') FROM @FTable ta; UPDATE ta SET ta.DueNo=(SELECT MIN(DNo) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due') FROM @FTable ta; UPDATE ta SET ta.ODAmount=(SELECT SUM(Total) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due' AND DDate<@ODate) FROM @FTable ta; UPDATE ta SET ta.DueAmount=(SELECT SUM(Total) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due' AND DDate=@ODate) FROM @FTable ta; UPDATE ta SET ta.BalanceAmount=(SELECT SUM(Total) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due') FROM @FTable ta; SELECT a.MemberId, a.MemberName, a.NomineeName, a.MobileNo, a.LoanId, a.DisburseDate, a.LoanAmount, a.EMIAmount, a.DueDate, a.DueNo, CASE WHEN isnull(a.PaidAmount,0)>0 THEN 'Yes' ELSE 'No' END AS MeetingStatus, CASE WHEN isnull(a.PaidAmount,0)>0 THEN 0 ELSE isnull(a.ODAmount,0)+isnull(a.DueAmount,0) END AS PayableAmount, isnull(a.PaidAmount,0)AS PaidAmount, isnull(a.ODAmount,0)AS ODAmount, isnull(a.Penalty,0)AS Penalty, isnull(a.DueAmount,0)AS DueAmount, a.BalanceAmount FROM @FTable a WHERE 1=1 AND isnull(a.BalanceAmount,0)>0 ORDER BY a.MemberName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Must declare the scalar variable "@CenterId". Must declare the scalar variable "@CenterId". Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/11/2025 06:00:31 PM PageName: IndividualLoan_IndvLoanOfficerMeeting String str: DECLARE @ODate DATE; SET @ODate='11/26/2025 12:00:00 AM'; DECLARE @BranchId VARCHAR(20), @OfficerId VARCHAR(20); SET @BranchId='101'; SET @OfficerId='EMP00142'; DECLARE @FTable TABLE ( MemberId VARCHAR(20), MemberName VARCHAR(60), NomineeName VARCHAR(60), MobileNo VARCHAR(20), LoanId VARCHAR(50), LoanCycle VARCHAR(2), DisburseDate VARCHAR(20), LoanAmount DECIMAL(10,2), EMIAmount DECIMAL(10,2), DueDate VARCHAR(20), DueNo INT, PaidAmount DECIMAL(10,2), ODAmount DECIMAL(10,2), DueAmount DECIMAL(10,2), Penalty DECIMAL(10,2), BalanceAmount DECIMAL(10,2), GLoanTypeNo VARCHAR(25), PenaltyRate DECIMAL(10,6) ); DECLARE @LTable TABLE ( LoanId VARCHAR(50) ); DECLARE @TTable TABLE ( LoanId VARCHAR(50), DDate DATE, DNo INT, Total DECIMAL(10,2), PStatus VARCHAR(10) ); INSERT INTO @LTable ( LoanId ) SELECT ld.LoanId FROM GroupLoanAccount ld WITH(nolock) WHERE ld.GroupName='Individual' AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId=@BranchId AND ld.LoanOfficerId=@OfficerId AND ld.CenterId=@CenterId; INSERT INTO @TTable ( LoanId, DDate, DNo, Total, PStatus ) SELECT a.LoanId, a.DDate, a.DNo, a.Total, a.PStatus FROM GroupLoanLedger a WITH(nolock) INNER JOIN @LTable b ON a.LoanId=b.LoanId WHERE a.PStatus='Due'; INSERT INTO @FTable ( MemberId, MemberName, NomineeName, MobileNo, LoanId, LoanCycle, DisburseDate, LoanAmount, EMIAmount, PaidAmount, GLoanTypeNo ) SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.MobileNo, ld.LoanId, ld.LoanCycle, Convert(CHAR,ld.DisburseDate,106)AS DisbuseDate, ld.LoanAmount, ld.EMIAmount, ld.CMEMI AS PaidAmount, ld.GLoanTypeNo FROM GroupLoanAccount ld WITH(nolock) WHERE ld.LoanStatus='LoanDisbursed' AND ld.BranchId=@BranchId AND ld.LoanOfficerId=@OfficerId AND ld.CenterId=@CenterId ; UPDATE ta SET ta.PenaltyRate=(SELECT PenaltyRateAnnual FROM GroupLoanNoMaster WITH(nolock) WHERE GLoanTypeNo=ta.GLoanTypeNo) FROM @FTable ta; UPDATE ta SET ta.Penalty = (SELECT SUM(datediff(day, DDate, @ODate) * Total) FROM @TTable WHERE LoanId = ta.LoanId AND PStatus = 'Due' AND DDate< @ODate)*ta.PenaltyRate / 36500 FROM @FTable ta; UPDATE ta SET ta.DueDate=(SELECT Convert(CHAR,MIN(DDate),103) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due') FROM @FTable ta; UPDATE ta SET ta.DueNo=(SELECT MIN(DNo) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due') FROM @FTable ta; UPDATE ta SET ta.ODAmount=(SELECT SUM(Total) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due' AND DDate<@ODate) FROM @FTable ta; UPDATE ta SET ta.DueAmount=(SELECT SUM(Total) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due' AND DDate=@ODate) FROM @FTable ta; UPDATE ta SET ta.BalanceAmount=(SELECT SUM(Total) FROM @TTable WHERE LoanId=ta.LoanId AND PStatus='Due') FROM @FTable ta; SELECT a.MemberId, a.MemberName, a.NomineeName, a.MobileNo, a.LoanId, a.DisburseDate, a.LoanAmount, a.EMIAmount, a.DueDate, a.DueNo, CASE WHEN isnull(a.PaidAmount,0)>0 THEN 'Yes' ELSE 'No' END AS MeetingStatus, CASE WHEN isnull(a.PaidAmount,0)>0 THEN 0 ELSE isnull(a.ODAmount,0)+isnull(a.DueAmount,0) END AS PayableAmount, isnull(a.PaidAmount,0)AS PaidAmount, isnull(a.ODAmount,0)AS ODAmount, isnull(a.Penalty,0)AS Penalty, isnull(a.DueAmount,0)AS DueAmount, a.BalanceAmount FROM @FTable a WHERE 1=1 AND isnull(a.BalanceAmount,0)>0 ORDER BY a.MemberName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_unnvol1k StackTrace: at IndividualLoan_IndvLoanOfficerMeeting.FillData() TargetSite: Void FillData() Time: 22/11/2025 06:21:36 PM PageName: IndividualLoan_IndvLoanOfficerMeetingApprovalReject String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_hzrapmwo StackTrace: at IndividualLoan_IndvLoanOfficerMeetingApprovalReject.ExportToExcel(DataTable DT, String fileName) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 23/11/2025 11:23:03 AM PageName: IndividualLoan_IndvLoanUpdateMobileNo String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_goc3n2z5 StackTrace: at IndividualLoan_IndvLoanUpdateMobileNo.btnExport_Click(Object sender, EventArgs e) TargetSite: Void btnExport_Click(System.Object, System.EventArgs) Time: 23/11/2025 11:23:26 AM PageName: IndividualLoan_IndvLoanUpdateMobileNo String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_goc3n2z5 StackTrace: at IndividualLoan_IndvLoanUpdateMobileNo.btnExport_Click(Object sender, EventArgs e) TargetSite: Void btnExport_Click(System.Object, System.EventArgs) Time: 23/11/2025 11:25:36 AM PageName: IndividualLoan_IndvLoanOfficerChange String str: SELECT (SELECT TOP 1 LoanStatus FROM GroupLoanAccount WITH(nolock) WHERE MemberId=a.MemberId AND LoanStatus IN ('LoanApplied','LoanApproved','LoanFeePaid','LoanDisbursed') ORDER BY LoanCycle DESC)AS LoanStatus, a.BranchId, a.BranchName, a.GroupOfficerId, a.GroupOfficerName, a.MemberNo, a.MemberId, a.MemberName, b.GroupStatus, Convert(CHAR,b.GroupJoinDate,106)AS GroupJoinDate FROM GroupLoanMemberDetail a WITH(nolock) LEFT JOIN GroupLoanMemberNominee b with(nolock) ON a.MemberId=b.MemberId WHERE a.GroupName='Individual' AND 1=1 AND a.BranchId='100' AND a.GroupOfficerId='EMP00141' ORDER BY a.MemberName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: A field or property with the name 'CenterName' was not found on the selected data source. Source: System.Web StackTrace: at System.Web.UI.WebControls.BoundField.TryGetSimplePropertyValue(Object dataItem, Object& data) at System.Web.UI.WebControls.BoundField.GetValue(Control controlContainer) at System.Web.UI.WebControls.BoundField.OnDataBindField(Object sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at IndividualLoan_IndvLoanOfficerChange.btnSearch_Click(Object sender, EventArgs e) TargetSite: Boolean TryGetSimplePropertyValue(System.Object, System.Object ByRef) Time: 23/11/2025 11:39:51 AM PageName: IndividualLoan_IndvLoanNOCCertificate String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_t2wcyhgv StackTrace: at IndividualLoan_IndvLoanNOCCertificate.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 11:40:15 AM PageName: IndividualLoan_IndvLoanNOCCertificate String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_t2wcyhgv StackTrace: at IndividualLoan_IndvLoanNOCCertificate.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 11:46:33 AM PageName: IndividualLoan_IndvLoanNOCCertificate String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_t2wcyhgv StackTrace: at IndividualLoan_IndvLoanNOCCertificate.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 11:46:39 AM PageName: IndividualLoan_IndvLoanNOCCertificate String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_t2wcyhgv StackTrace: at IndividualLoan_IndvLoanNOCCertificate.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 12:39:02 PM PageName: IndividualLoan_IndvLoanCloserCertificate String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_msoo1uqr StackTrace: at IndividualLoan_IndvLoanCloserCertificate.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 12:39:28 PM PageName: IndividualLoan_IndvLoanCloserCertificate String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_msoo1uqr StackTrace: at IndividualLoan_IndvLoanCloserCertificate.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 12:39:35 PM PageName: IndividualLoan_IndvLoanCloserCertificate String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_msoo1uqr StackTrace: at IndividualLoan_IndvLoanCloserCertificate.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 12:39:41 PM PageName: IndividualLoan_IndvLoanCloserCertificate String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_msoo1uqr StackTrace: at IndividualLoan_IndvLoanCloserCertificate.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 12:39:53 PM PageName: IndividualLoan_IndvLoanCloserCertificate String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_msoo1uqr StackTrace: at IndividualLoan_IndvLoanCloserCertificate.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 12:40:20 PM PageName: IndividualLoan_IndvLoanCloserCertificate String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_msoo1uqr StackTrace: at IndividualLoan_IndvLoanCloserCertificate.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 12:40:48 PM PageName: IndividualLoan_IndvLoanNOCCertificate String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_t2wcyhgv StackTrace: at IndividualLoan_IndvLoanNOCCertificate.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 01:03:58 PM PageName: IndividualLoan_IndvLoanCloserCertificate String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_msoo1uqr StackTrace: at IndividualLoan_IndvLoanCloserCertificate.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 01:04:36 PM PageName: IndividualLoan_IndvLoanNOCCertificate String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_t2wcyhgv StackTrace: at IndividualLoan_IndvLoanNOCCertificate.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 01:05:30 PM PageName: IndividualLoan_IndvLoanNOCCertificate String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_t2wcyhgv StackTrace: at IndividualLoan_IndvLoanNOCCertificate.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 01:19:18 PM PageName: IndividualLoan_IndvArrearReportPaidDate String str: DECLARE @TDate DATE; SET @TDate='11/23/2025 12:00:00 AM'; SELECT a.BranchName+' ('+a.BranchId+')' AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,c.FromDueDate,106)AS FromDueDate, datediff(day,b.LastPaidDate,@TDate)AS NoOfDay, c.NoOfOD, c.PrincipalOD, c.InterestOD, c.TotalOD, convert(CHAR,a.DisburseDate,106)AS DisburseDate, a.LoanAmount, a.TotalInterest, a.LoanAmount+a.TotalInterest AS TotalPayable, convert(CHAR,b.LastPaidDate,106)AS LastPaidDate, isnull(b.PaidPrincipal,0)AS PaidPrincipal, isnull(b.PaidInterest,0)AS PaidInterest, isnull(b.PaidTotal,0)AS PaidTotal, convert(CHAR,a.ExpiryDate,106)AS ExpiryDate, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalancePrincipal, a.TotalInterest-isnull(b.PaidInterest,0)AS BalanceInterest, a.LoanAmount+a.TotalInterest-isnull(b.PaidTotal,0)AS BalanceTotal, a.LoanCycle, a.GLoanTypeNo, rtrim(convert(CHAR,a.LoanTerm))+'-'+a.LoanTermMode AS LoanTerm, a.LoanPurpose, a.LoanFunder FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, MAX(PDate)AS LastPaidDate, SUM(Prin)AS PaidPrincipal, SUM(Intt)AS PaidInterest, SUM(Total)AS PaidTotal FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Paid' AND PDate0 AND a.BranchId IN ('100','102','101','104','103') AND a.LoanOfficerId='EMP00146' ORDER BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerName, a.MemberName, a.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Input string was not in a correct format. Source: mscorlib StackTrace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at IndividualLoan_IndvArrearReportPaidDate.grdLoan_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void StringToNumber(System.String, System.Globalization.NumberStyles, NumberBuffer ByRef, System.Globalization.NumberFormatInfo, Boolean) Time: 23/11/2025 01:19:35 PM PageName: IndividualLoan_IndvArrearReportPaidDate String str: DECLARE @TDate DATE; SET @TDate='11/23/2025 12:00:00 AM'; SELECT a.BranchName+' ('+a.BranchId+')' AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,c.FromDueDate,106)AS FromDueDate, datediff(day,b.LastPaidDate,@TDate)AS NoOfDay, c.NoOfOD, c.PrincipalOD, c.InterestOD, c.TotalOD, convert(CHAR,a.DisburseDate,106)AS DisburseDate, a.LoanAmount, a.TotalInterest, a.LoanAmount+a.TotalInterest AS TotalPayable, convert(CHAR,b.LastPaidDate,106)AS LastPaidDate, isnull(b.PaidPrincipal,0)AS PaidPrincipal, isnull(b.PaidInterest,0)AS PaidInterest, isnull(b.PaidTotal,0)AS PaidTotal, convert(CHAR,a.ExpiryDate,106)AS ExpiryDate, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalancePrincipal, a.TotalInterest-isnull(b.PaidInterest,0)AS BalanceInterest, a.LoanAmount+a.TotalInterest-isnull(b.PaidTotal,0)AS BalanceTotal, a.LoanCycle, a.GLoanTypeNo, rtrim(convert(CHAR,a.LoanTerm))+'-'+a.LoanTermMode AS LoanTerm, a.LoanPurpose, a.LoanFunder FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, MAX(PDate)AS LastPaidDate, SUM(Prin)AS PaidPrincipal, SUM(Intt)AS PaidInterest, SUM(Total)AS PaidTotal FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Paid' AND PDate0 AND a.BranchId IN ('100','102','101','104','103') AND a.LoanOfficerId='EMP00146' ORDER BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerName, a.MemberName, a.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Input string was not in a correct format. Source: mscorlib StackTrace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at IndividualLoan_IndvArrearReportPaidDate.grdLoan_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void StringToNumber(System.String, System.Globalization.NumberStyles, NumberBuffer ByRef, System.Globalization.NumberFormatInfo, Boolean) Time: 23/11/2025 02:32:25 PM PageName: DataTableResult String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=dateadd(day,-datepart(day,@FDate)+1,@FDate); DECLARE @TTable TABLE ( LoanId VARCHAR(50), Year INT, Month INT, Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Year, Month, Prin, Intt, Total ) SELECT b.LoanId, Datepart(year,a.DDate)AS Year, Datepart(month, a.DDate)AS Month, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, Datepart(year,a.DDate), Datepart(month, a.DDate); UPDATE a SET a.Dated=rtrim(convert(CHAR,a.Month))+'/01/'+rtrim(convert(CHAR,a.Year)) FROM @TTable a; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId,(SELECT SUM(Total)AS Total FROM @TTable WHERE Dateddateadd(month,24,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='100' AND ld.LoanOfficerId='EMP00146' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), NoOfOfficer VARCHAR(20), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'No Of Officer', 'No Of Center', 'No Of Loan', 'before '+datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,1,@ODate))+'-'+datename(year,dateadd(month,1,@ODate)), datename(month,dateadd(month,2,@ODate))+'-'+datename(year,dateadd(month,2,@ODate)), datename(month,dateadd(month,3,@ODate))+'-'+datename(year,dateadd(month,3,@ODate)), datename(month,dateadd(month,4,@ODate))+'-'+datename(year,dateadd(month,4,@ODate)), datename(month,dateadd(month,5,@ODate))+'-'+datename(year,dateadd(month,5,@ODate)), datename(month,dateadd(month,6,@ODate))+'-'+datename(year,dateadd(month,6,@ODate)), datename(month,dateadd(month,7,@ODate))+'-'+datename(year,dateadd(month,7,@ODate)), datename(month,dateadd(month,8,@ODate))+'-'+datename(year,dateadd(month,8,@ODate)), datename(month,dateadd(month,9,@ODate))+'-'+datename(year,dateadd(month,9,@ODate)), datename(month,dateadd(month,10,@ODate))+'-'+datename(year,dateadd(month,10,@ODate)), datename(month,dateadd(month,11,@ODate))+'-'+datename(year,dateadd(month,11,@ODate)), datename(month,dateadd(month,12,@ODate))+'-'+datename(year,dateadd(month,12,@ODate)), datename(month,dateadd(month,13,@ODate))+'-'+datename(year,dateadd(month,13,@ODate)), datename(month,dateadd(month,14,@ODate))+'-'+datename(year,dateadd(month,14,@ODate)), datename(month,dateadd(month,15,@ODate))+'-'+datename(year,dateadd(month,15,@ODate)), datename(month,dateadd(month,16,@ODate))+'-'+datename(year,dateadd(month,16,@ODate)), datename(month,dateadd(month,17,@ODate))+'-'+datename(year,dateadd(month,17,@ODate)), datename(month,dateadd(month,18,@ODate))+'-'+datename(year,dateadd(month,18,@ODate)), datename(month,dateadd(month,19,@ODate))+'-'+datename(year,dateadd(month,19,@ODate)), datename(month,dateadd(month,20,@ODate))+'-'+datename(year,dateadd(month,20,@ODate)), datename(month,dateadd(month,21,@ODate))+'-'+datename(year,dateadd(month,21,@ODate)), datename(month,dateadd(month,22,@ODate))+'-'+datename(year,dateadd(month,22,@ODate)), datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'after '+datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'Total' ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')' AS BranchName, Count(DISTINCT a.OfficerId)AS NoOfOfficer, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')' ORDER BY a.BranchName+' ('+a.BranchId+')' ; INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfOfficer,0)))AS NoOfOfficer, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.NoOfOfficer, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 02:32:25 PM PageName: IndividualLoan_IndvFutureDemandReport String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=dateadd(day,-datepart(day,@FDate)+1,@FDate); DECLARE @TTable TABLE ( LoanId VARCHAR(50), Year INT, Month INT, Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Year, Month, Prin, Intt, Total ) SELECT b.LoanId, Datepart(year,a.DDate)AS Year, Datepart(month, a.DDate)AS Month, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, Datepart(year,a.DDate), Datepart(month, a.DDate); UPDATE a SET a.Dated=rtrim(convert(CHAR,a.Month))+'/01/'+rtrim(convert(CHAR,a.Year)) FROM @TTable a; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId,(SELECT SUM(Total)AS Total FROM @TTable WHERE Dateddateadd(month,24,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='100' AND ld.LoanOfficerId='EMP00146' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), NoOfOfficer VARCHAR(20), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'No Of Officer', 'No Of Center', 'No Of Loan', 'before '+datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,1,@ODate))+'-'+datename(year,dateadd(month,1,@ODate)), datename(month,dateadd(month,2,@ODate))+'-'+datename(year,dateadd(month,2,@ODate)), datename(month,dateadd(month,3,@ODate))+'-'+datename(year,dateadd(month,3,@ODate)), datename(month,dateadd(month,4,@ODate))+'-'+datename(year,dateadd(month,4,@ODate)), datename(month,dateadd(month,5,@ODate))+'-'+datename(year,dateadd(month,5,@ODate)), datename(month,dateadd(month,6,@ODate))+'-'+datename(year,dateadd(month,6,@ODate)), datename(month,dateadd(month,7,@ODate))+'-'+datename(year,dateadd(month,7,@ODate)), datename(month,dateadd(month,8,@ODate))+'-'+datename(year,dateadd(month,8,@ODate)), datename(month,dateadd(month,9,@ODate))+'-'+datename(year,dateadd(month,9,@ODate)), datename(month,dateadd(month,10,@ODate))+'-'+datename(year,dateadd(month,10,@ODate)), datename(month,dateadd(month,11,@ODate))+'-'+datename(year,dateadd(month,11,@ODate)), datename(month,dateadd(month,12,@ODate))+'-'+datename(year,dateadd(month,12,@ODate)), datename(month,dateadd(month,13,@ODate))+'-'+datename(year,dateadd(month,13,@ODate)), datename(month,dateadd(month,14,@ODate))+'-'+datename(year,dateadd(month,14,@ODate)), datename(month,dateadd(month,15,@ODate))+'-'+datename(year,dateadd(month,15,@ODate)), datename(month,dateadd(month,16,@ODate))+'-'+datename(year,dateadd(month,16,@ODate)), datename(month,dateadd(month,17,@ODate))+'-'+datename(year,dateadd(month,17,@ODate)), datename(month,dateadd(month,18,@ODate))+'-'+datename(year,dateadd(month,18,@ODate)), datename(month,dateadd(month,19,@ODate))+'-'+datename(year,dateadd(month,19,@ODate)), datename(month,dateadd(month,20,@ODate))+'-'+datename(year,dateadd(month,20,@ODate)), datename(month,dateadd(month,21,@ODate))+'-'+datename(year,dateadd(month,21,@ODate)), datename(month,dateadd(month,22,@ODate))+'-'+datename(year,dateadd(month,22,@ODate)), datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'after '+datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'Total' ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')' AS BranchName, Count(DISTINCT a.OfficerId)AS NoOfOfficer, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')' ORDER BY a.BranchName+' ('+a.BranchId+')' ; INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfOfficer,0)))AS NoOfOfficer, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.NoOfOfficer, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l1hhjunr StackTrace: at IndividualLoan_IndvFutureDemandReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 02:32:29 PM PageName: DataTableResult String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=dateadd(day,-datepart(day,@FDate)+1,@FDate); DECLARE @TTable TABLE ( LoanId VARCHAR(50), Year INT, Month INT, Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Year, Month, Prin, Intt, Total ) SELECT b.LoanId, Datepart(year,a.DDate)AS Year, Datepart(month, a.DDate)AS Month, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, Datepart(year,a.DDate), Datepart(month, a.DDate); UPDATE a SET a.Dated=rtrim(convert(CHAR,a.Month))+'/01/'+rtrim(convert(CHAR,a.Year)) FROM @TTable a; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId,(SELECT SUM(Total)AS Total FROM @TTable WHERE Dateddateadd(month,24,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='100' AND ld.LoanOfficerId='EMP00146' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FFTable ( BranchName, OfficerId, OfficerName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'OfficerId', 'Officer Name', 'No Of Center', 'No Of Loan', 'before '+datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,1,@ODate))+'-'+datename(year,dateadd(month,1,@ODate)), datename(month,dateadd(month,2,@ODate))+'-'+datename(year,dateadd(month,2,@ODate)), datename(month,dateadd(month,3,@ODate))+'-'+datename(year,dateadd(month,3,@ODate)), datename(month,dateadd(month,4,@ODate))+'-'+datename(year,dateadd(month,4,@ODate)), datename(month,dateadd(month,5,@ODate))+'-'+datename(year,dateadd(month,5,@ODate)), datename(month,dateadd(month,6,@ODate))+'-'+datename(year,dateadd(month,6,@ODate)), datename(month,dateadd(month,7,@ODate))+'-'+datename(year,dateadd(month,7,@ODate)), datename(month,dateadd(month,8,@ODate))+'-'+datename(year,dateadd(month,8,@ODate)), datename(month,dateadd(month,9,@ODate))+'-'+datename(year,dateadd(month,9,@ODate)), datename(month,dateadd(month,10,@ODate))+'-'+datename(year,dateadd(month,10,@ODate)), datename(month,dateadd(month,11,@ODate))+'-'+datename(year,dateadd(month,11,@ODate)), datename(month,dateadd(month,12,@ODate))+'-'+datename(year,dateadd(month,12,@ODate)), datename(month,dateadd(month,13,@ODate))+'-'+datename(year,dateadd(month,13,@ODate)), datename(month,dateadd(month,14,@ODate))+'-'+datename(year,dateadd(month,14,@ODate)), datename(month,dateadd(month,15,@ODate))+'-'+datename(year,dateadd(month,15,@ODate)), datename(month,dateadd(month,16,@ODate))+'-'+datename(year,dateadd(month,16,@ODate)), datename(month,dateadd(month,17,@ODate))+'-'+datename(year,dateadd(month,17,@ODate)), datename(month,dateadd(month,18,@ODate))+'-'+datename(year,dateadd(month,18,@ODate)), datename(month,dateadd(month,19,@ODate))+'-'+datename(year,dateadd(month,19,@ODate)), datename(month,dateadd(month,20,@ODate))+'-'+datename(year,dateadd(month,20,@ODate)), datename(month,dateadd(month,21,@ODate))+'-'+datename(year,dateadd(month,21,@ODate)), datename(month,dateadd(month,22,@ODate))+'-'+datename(year,dateadd(month,22,@ODate)), datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'after '+datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'Total' ); INSERT INTO @FFTable ( BranchName, OfficerId, OfficerName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.OfficerId, a.OfficerName, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')', a.OfficerId, a.OfficerName ORDER BY a.BranchName+' ('+a.BranchId+')', a.OfficerName ; INSERT INTO @FFTable ( BranchName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.OfficerId, a.OfficerName, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 02:32:29 PM PageName: IndividualLoan_IndvFutureDemandReport String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=dateadd(day,-datepart(day,@FDate)+1,@FDate); DECLARE @TTable TABLE ( LoanId VARCHAR(50), Year INT, Month INT, Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Year, Month, Prin, Intt, Total ) SELECT b.LoanId, Datepart(year,a.DDate)AS Year, Datepart(month, a.DDate)AS Month, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, Datepart(year,a.DDate), Datepart(month, a.DDate); UPDATE a SET a.Dated=rtrim(convert(CHAR,a.Month))+'/01/'+rtrim(convert(CHAR,a.Year)) FROM @TTable a; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId,(SELECT SUM(Total)AS Total FROM @TTable WHERE Dateddateadd(month,24,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='100' AND ld.LoanOfficerId='EMP00146' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FFTable ( BranchName, OfficerId, OfficerName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'OfficerId', 'Officer Name', 'No Of Center', 'No Of Loan', 'before '+datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,1,@ODate))+'-'+datename(year,dateadd(month,1,@ODate)), datename(month,dateadd(month,2,@ODate))+'-'+datename(year,dateadd(month,2,@ODate)), datename(month,dateadd(month,3,@ODate))+'-'+datename(year,dateadd(month,3,@ODate)), datename(month,dateadd(month,4,@ODate))+'-'+datename(year,dateadd(month,4,@ODate)), datename(month,dateadd(month,5,@ODate))+'-'+datename(year,dateadd(month,5,@ODate)), datename(month,dateadd(month,6,@ODate))+'-'+datename(year,dateadd(month,6,@ODate)), datename(month,dateadd(month,7,@ODate))+'-'+datename(year,dateadd(month,7,@ODate)), datename(month,dateadd(month,8,@ODate))+'-'+datename(year,dateadd(month,8,@ODate)), datename(month,dateadd(month,9,@ODate))+'-'+datename(year,dateadd(month,9,@ODate)), datename(month,dateadd(month,10,@ODate))+'-'+datename(year,dateadd(month,10,@ODate)), datename(month,dateadd(month,11,@ODate))+'-'+datename(year,dateadd(month,11,@ODate)), datename(month,dateadd(month,12,@ODate))+'-'+datename(year,dateadd(month,12,@ODate)), datename(month,dateadd(month,13,@ODate))+'-'+datename(year,dateadd(month,13,@ODate)), datename(month,dateadd(month,14,@ODate))+'-'+datename(year,dateadd(month,14,@ODate)), datename(month,dateadd(month,15,@ODate))+'-'+datename(year,dateadd(month,15,@ODate)), datename(month,dateadd(month,16,@ODate))+'-'+datename(year,dateadd(month,16,@ODate)), datename(month,dateadd(month,17,@ODate))+'-'+datename(year,dateadd(month,17,@ODate)), datename(month,dateadd(month,18,@ODate))+'-'+datename(year,dateadd(month,18,@ODate)), datename(month,dateadd(month,19,@ODate))+'-'+datename(year,dateadd(month,19,@ODate)), datename(month,dateadd(month,20,@ODate))+'-'+datename(year,dateadd(month,20,@ODate)), datename(month,dateadd(month,21,@ODate))+'-'+datename(year,dateadd(month,21,@ODate)), datename(month,dateadd(month,22,@ODate))+'-'+datename(year,dateadd(month,22,@ODate)), datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'after '+datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'Total' ); INSERT INTO @FFTable ( BranchName, OfficerId, OfficerName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.OfficerId, a.OfficerName, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')', a.OfficerId, a.OfficerName ORDER BY a.BranchName+' ('+a.BranchId+')', a.OfficerName ; INSERT INTO @FFTable ( BranchName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.OfficerId, a.OfficerName, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l1hhjunr StackTrace: at IndividualLoan_IndvFutureDemandReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 02:33:41 PM PageName: DataTableResult String str: SELECT a.SrNo AS C0, isnull(a.NoOfOfficer,0)AS C2, isnull(a.NoOfCenter,0)AS C3, isnull(a.NoOfMember,0)AS C4, isnull(a.NoOfActiveLoan,0)AS C5, isnull(a.OutstandingAmount,0)AS C6, isnull(a.NoOfTotalLoan,0)AS C7, isnull(a.TotalDisbursed,0)AS C8, isnull(a.ProcessingFee,0)AS C9, isnull(a.SecurityFee,0)AS C10, isnull(a.InsuranceFee,0)AS C11, isnull(a.OtherFee,0)AS C12, isnull(a.ServiceTax,0)AS C13, isnull(a.TotalFee,0)AS C14, isnull(a.ODNo,0)AS C15, isnull(a.ODAmount,0)AS C16, isnull(a.ODOutstanding,0)AS C17, isnull(a.OD30No,0)AS C18, isnull(a.OD30Amount,0)AS C19, isnull(a.OD30Outstanding,0)AS C20, isnull(a.OD60No,0)AS C21, isnull(a.OD60Amount,0)AS C22, isnull(a.OD60Outstanding,0)AS C23, isnull(a.OD90No,0)AS C24, isnull(a.OD90Amount,0)AS C25, isnull(a.OD90Outstanding,0)AS C26, isnull(a.OD180No,0)AS C27, isnull(a.OD180Amount,0)AS C28, isnull(a.OD180Outstanding,0)AS C29, isnull(a.OD181No,0)AS C30, isnull(a.OD181Amount,0)AS C31, isnull(a.OD181Outstanding,0)AS C32, CASE WHEN b.C54>0 AND b.C65>0 THEN convert(char,convert(decimal(10,2),(b.C65*100/b.C54))) ELSE 'N/A' END AS C41, CASE WHEN b.C54>0 AND b.C68>0 THEN convert(char,convert(decimal(10,2),(b.C68*100/b.C54))) ELSE 'N/A' END AS C42, CASE WHEN b.C54>0 AND b.C71>0 THEN convert(char,convert(decimal(10,2),(b.C71*100/b.C54))) ELSE 'N/A' END AS C43, CASE WHEN b.C54>0 AND b.C74>0 THEN convert(char,convert(decimal(10,2),(b.C74*100/b.C54))) ELSE 'N/A' END AS C44, CASE WHEN b.C54>0 AND b.C77>0 THEN convert(char,convert(decimal(10,2),(b.C77*100/b.C54))) ELSE 'N/A' END AS C45, CASE WHEN b.C54>0 AND b.C80>0 THEN convert(char,convert(decimal(10,2),(b.C80*100/b.C54))) ELSE 'N/A' END AS C46, b.C51, b.C52, b.C53, b.C54, b.C55, b.C56, b.C57, b.C58, b.C59, b.C60, b.C61, b.C62, b.C63, b.C64, b.C65, b.C66, b.C67, b.C68, b.C69, b.C70, b.C71, b.C72, b.C73, b.C74, b.C75, b.C76, b.C77, b.C78, b.C79, b.C80, b.C81, b.C82, CASE WHEN b.C81>0 AND b.C82>0 THEN convert(char,convert(decimal(10,2),(b.C81/b.C82))) ELSE 'N/A' END AS C83, CASE WHEN b.C51>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C51/b.C82))) ELSE 'N/A' END AS C84, CASE WHEN b.C51>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C51/b.C81))) ELSE 'N/A' END AS C85, CASE WHEN b.C52>0 AND b.C51>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C82))) ELSE 'N/A' END AS C86, CASE WHEN b.C52>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C81))) ELSE 'N/A' END AS C87, CASE WHEN b.C52>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C51))) ELSE 'N/A' END AS C88, CASE WHEN b.C54>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C82))) ELSE 'N/A' END AS C89, CASE WHEN b.C54>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C81))) ELSE 'N/A' END AS C90, CASE WHEN b.C54>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C51))) ELSE 'N/A' END AS C49, CASE WHEN b.C54>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C52))) ELSE 'N/A' END AS C50, a.BranchId AS C91, a.BranchName AS C92, 'Till Date : '+rtrim(Convert(CHAR,a.TillDate,106))+' reported on : '+rtrim(Convert(CHAR,a.EntryTime,106))+' '+rtrim(Convert(CHAR,a.EntryTime,108))AS C93, (SELECT ReportValue AS CompanyName FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyName')AS C99, (SELECT ReportValue AS CompanyDetail1 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail1')AS C98, (SELECT ReportValue AS CompanyDetail2 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail2')AS C97, (SELECT ReportValue AS CompanyDetail3 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail3')AS C96, (SELECT ReportValue AS GroupHeadOfficeReportRDLC FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupHeadOfficeReportRDLC')AS C95 FROM DashBoardGroupLoanHeadOfficeSummaryReport a WITH(nolock) CROSS JOIN ( SELECT SUM(isnull(a.NoOfCenter,0))AS C51, SUM(isnull(a.NoOfMember,0))AS C52, SUM(isnull(a.NoOfActiveLoan,0))AS C53, SUM(isnull(a.OutstandingAmount,0))AS C54, SUM(isnull(a.NoOfTotalLoan,0))AS C55, SUM(isnull(a.TotalDisbursed,0))AS C56, SUM(isnull(a.ProcessingFee,0))AS C57, SUM(isnull(a.SecurityFee,0))AS C58, SUM(isnull(a.InsuranceFee,0))AS C59, SUM(isnull(a.OtherFee,0))AS C60, SUM(isnull(a.ServiceTax,0))AS C61, SUM(isnull(a.TotalFee,0))AS C62, SUM(isnull(a.ODNo,0))AS C63, SUM(isnull(a.ODAmount,0))AS C64, SUM(isnull(a.ODOutstanding,0))AS C65, SUM(isnull(a.OD30No,0))AS C66, SUM(isnull(a.OD30Amount,0))AS C67, SUM(isnull(a.OD30Outstanding,0))AS C68, SUM(isnull(a.OD60No,0))AS C69, SUM(isnull(a.OD60Amount,0))AS C70, SUM(isnull(a.OD60Outstanding,0))AS C71, SUM(isnull(a.OD90No,0))AS C72, SUM(isnull(a.OD90Amount,0))AS C73, SUM(isnull(a.OD90Outstanding,0))AS C74, SUM(isnull(a.OD180No,0))AS C75, SUM(isnull(a.OD180Amount,0))AS C76, SUM(isnull(a.OD180Outstanding,0))AS C77, SUM(isnull(a.OD181No,0))AS C78, SUM(isnull(a.OD181Amount,0))AS C79, SUM(isnull(a.OD181Outstanding,0))AS C80, SUM(isnull(a.NoOfOfficer,0))AS C81, Count(DISTINCT a.BranchId)AS C82 FROM DashBoardGroupLoanHeadOfficeSummaryReport a WITH(nolock) WHERE 1=1 )b WHERE 1=1 ORDER BY a.SrNo String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Divide by zero error encountered. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.Read() at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 02:33:41 PM PageName: GroupLoan_PrintRDLCPage String str: SELECT a.SrNo AS C0, isnull(a.NoOfOfficer,0)AS C2, isnull(a.NoOfCenter,0)AS C3, isnull(a.NoOfMember,0)AS C4, isnull(a.NoOfActiveLoan,0)AS C5, isnull(a.OutstandingAmount,0)AS C6, isnull(a.NoOfTotalLoan,0)AS C7, isnull(a.TotalDisbursed,0)AS C8, isnull(a.ProcessingFee,0)AS C9, isnull(a.SecurityFee,0)AS C10, isnull(a.InsuranceFee,0)AS C11, isnull(a.OtherFee,0)AS C12, isnull(a.ServiceTax,0)AS C13, isnull(a.TotalFee,0)AS C14, isnull(a.ODNo,0)AS C15, isnull(a.ODAmount,0)AS C16, isnull(a.ODOutstanding,0)AS C17, isnull(a.OD30No,0)AS C18, isnull(a.OD30Amount,0)AS C19, isnull(a.OD30Outstanding,0)AS C20, isnull(a.OD60No,0)AS C21, isnull(a.OD60Amount,0)AS C22, isnull(a.OD60Outstanding,0)AS C23, isnull(a.OD90No,0)AS C24, isnull(a.OD90Amount,0)AS C25, isnull(a.OD90Outstanding,0)AS C26, isnull(a.OD180No,0)AS C27, isnull(a.OD180Amount,0)AS C28, isnull(a.OD180Outstanding,0)AS C29, isnull(a.OD181No,0)AS C30, isnull(a.OD181Amount,0)AS C31, isnull(a.OD181Outstanding,0)AS C32, CASE WHEN b.C54>0 AND b.C65>0 THEN convert(char,convert(decimal(10,2),(b.C65*100/b.C54))) ELSE 'N/A' END AS C41, CASE WHEN b.C54>0 AND b.C68>0 THEN convert(char,convert(decimal(10,2),(b.C68*100/b.C54))) ELSE 'N/A' END AS C42, CASE WHEN b.C54>0 AND b.C71>0 THEN convert(char,convert(decimal(10,2),(b.C71*100/b.C54))) ELSE 'N/A' END AS C43, CASE WHEN b.C54>0 AND b.C74>0 THEN convert(char,convert(decimal(10,2),(b.C74*100/b.C54))) ELSE 'N/A' END AS C44, CASE WHEN b.C54>0 AND b.C77>0 THEN convert(char,convert(decimal(10,2),(b.C77*100/b.C54))) ELSE 'N/A' END AS C45, CASE WHEN b.C54>0 AND b.C80>0 THEN convert(char,convert(decimal(10,2),(b.C80*100/b.C54))) ELSE 'N/A' END AS C46, b.C51, b.C52, b.C53, b.C54, b.C55, b.C56, b.C57, b.C58, b.C59, b.C60, b.C61, b.C62, b.C63, b.C64, b.C65, b.C66, b.C67, b.C68, b.C69, b.C70, b.C71, b.C72, b.C73, b.C74, b.C75, b.C76, b.C77, b.C78, b.C79, b.C80, b.C81, b.C82, CASE WHEN b.C81>0 AND b.C82>0 THEN convert(char,convert(decimal(10,2),(b.C81/b.C82))) ELSE 'N/A' END AS C83, CASE WHEN b.C51>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C51/b.C82))) ELSE 'N/A' END AS C84, CASE WHEN b.C51>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C51/b.C81))) ELSE 'N/A' END AS C85, CASE WHEN b.C52>0 AND b.C51>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C82))) ELSE 'N/A' END AS C86, CASE WHEN b.C52>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C81))) ELSE 'N/A' END AS C87, CASE WHEN b.C52>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C51))) ELSE 'N/A' END AS C88, CASE WHEN b.C54>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C82))) ELSE 'N/A' END AS C89, CASE WHEN b.C54>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C81))) ELSE 'N/A' END AS C90, CASE WHEN b.C54>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C51))) ELSE 'N/A' END AS C49, CASE WHEN b.C54>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C52))) ELSE 'N/A' END AS C50, a.BranchId AS C91, a.BranchName AS C92, 'Till Date : '+rtrim(Convert(CHAR,a.TillDate,106))+' reported on : '+rtrim(Convert(CHAR,a.EntryTime,106))+' '+rtrim(Convert(CHAR,a.EntryTime,108))AS C93, (SELECT ReportValue AS CompanyName FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyName')AS C99, (SELECT ReportValue AS CompanyDetail1 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail1')AS C98, (SELECT ReportValue AS CompanyDetail2 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail2')AS C97, (SELECT ReportValue AS CompanyDetail3 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail3')AS C96, (SELECT ReportValue AS GroupHeadOfficeReportRDLC FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupHeadOfficeReportRDLC')AS C95 FROM DashBoardGroupLoanHeadOfficeSummaryReport a WITH(nolock) CROSS JOIN ( SELECT SUM(isnull(a.NoOfCenter,0))AS C51, SUM(isnull(a.NoOfMember,0))AS C52, SUM(isnull(a.NoOfActiveLoan,0))AS C53, SUM(isnull(a.OutstandingAmount,0))AS C54, SUM(isnull(a.NoOfTotalLoan,0))AS C55, SUM(isnull(a.TotalDisbursed,0))AS C56, SUM(isnull(a.ProcessingFee,0))AS C57, SUM(isnull(a.SecurityFee,0))AS C58, SUM(isnull(a.InsuranceFee,0))AS C59, SUM(isnull(a.OtherFee,0))AS C60, SUM(isnull(a.ServiceTax,0))AS C61, SUM(isnull(a.TotalFee,0))AS C62, SUM(isnull(a.ODNo,0))AS C63, SUM(isnull(a.ODAmount,0))AS C64, SUM(isnull(a.ODOutstanding,0))AS C65, SUM(isnull(a.OD30No,0))AS C66, SUM(isnull(a.OD30Amount,0))AS C67, SUM(isnull(a.OD30Outstanding,0))AS C68, SUM(isnull(a.OD60No,0))AS C69, SUM(isnull(a.OD60Amount,0))AS C70, SUM(isnull(a.OD60Outstanding,0))AS C71, SUM(isnull(a.OD90No,0))AS C72, SUM(isnull(a.OD90Amount,0))AS C73, SUM(isnull(a.OD90Outstanding,0))AS C74, SUM(isnull(a.OD180No,0))AS C75, SUM(isnull(a.OD180Amount,0))AS C76, SUM(isnull(a.OD180Outstanding,0))AS C77, SUM(isnull(a.OD181No,0))AS C78, SUM(isnull(a.OD181Amount,0))AS C79, SUM(isnull(a.OD181Outstanding,0))AS C80, SUM(isnull(a.NoOfOfficer,0))AS C81, Count(DISTINCT a.BranchId)AS C82 FROM DashBoardGroupLoanHeadOfficeSummaryReport a WITH(nolock) WHERE 1=1 )b WHERE 1=1 ORDER BY a.SrNo String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_uxyfjgek StackTrace: at GroupLoan_PrintRDLCPage.GroupHeadOfficeReport() TargetSite: Void GroupHeadOfficeReport() Time: 23/11/2025 02:33:44 PM PageName: IndividualLoan_IndvHeadOfficeReport String str: String sql: DECLARE @TillDate DATE; SET @TillDate='10/24/2025 12:00:00 AM'; DECLARE @FTable TABLE ( SrNo INT, BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), NoOfOfficer INT, NoOfCenter INT, NoOfMember INT, NoOfActiveLoan INT, OutstandingAmount DECIMAL(18,2), NoOfTotalLoan INT, TotalDisbursed DECIMAL(18,2), ProcessingFee DECIMAL(18,2), SecurityFee DECIMAL(18,2), InsuranceFee DECIMAL(18,2), OtherFee DECIMAL(18,2), ServiceTax DECIMAL(18,2), TotalFee DECIMAL(18,2), ODNo INT, ODAmount DECIMAL(18,2), ODOutstanding DECIMAL(18,2), OD30No INT, OD30Amount DECIMAL(18,2), OD30Outstanding DECIMAL(18,2), OD60No INT, OD60Amount DECIMAL(18,2), OD60Outstanding DECIMAL(18,2), OD90No INT, OD90Amount DECIMAL(18,2), OD90Outstanding DECIMAL(18,2), OD180No INT, OD180Amount DECIMAL(18,2), OD180Outstanding DECIMAL(18,2), OD181No INT, OD181Amount DECIMAL(18,2), OD181Outstanding DECIMAL(18,2) ); DECLARE @ODOSTable TABLE ( BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), LoanId VARCHAR(50), NoOfDays INT, ODAmount DECIMAL(18,2), BalanceAmount DECIMAL(18,2) ); INSERT INTO @ODOSTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, LoanId, NoOfDays, ODAmount, BalanceAmount ) SELECT a.BranchId, a.BranchName, a.LoanOfficerId, a.LoanOfficerName, a.LoanId, c.NoOfDays, c.ODAmount, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalanceAmount FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, SUM(Prin)AS PaidPrincipal FROM GroupLoanLedger WITH(nolock) WHERE PDatedateadd(day,-1,@TillDate) GROUP BY LoanId )c ON a.LoanId=c.LoanId WHERE a.DisburseDate<@TillDate AND a.LoanAmount-isnull(b.PaidPrincipal,0)>0 ; INSERT INTO @FTable ( BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfActiveLoan, OutstandingAmount ) SELECT BranchId, BranchName, Count(DISTINCT LoanOfficerId)AS NoOfOfficer, count(DISTINCT CenterId)AS NoOfCenter, count(DISTINCT LoanId)AS NoOfActiveLoan, SUM(BalanceAmount)AS OutstandingAmount FROM @ODOSTable WHERE 1=1 GROUP BY BranchId, BranchName ; UPDATE ta SET ta.NoOfMember=(SELECT count(1) FROM GroupLoanMemberDetail WITH(nolock) WHERE isnull(DropOutDate,'01/01/1900')!='01/01/1900' AND MemberJoinDate0 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD30No=tb.OD30No, ta.OD30Amount=tb.OD30Amount, ta.OD30Outstanding=tb.OD30Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD30No, SUM(a.ODAmount)AS OD30Amount, SUM(a.BalanceAmount)AS OD30Outstanding FROM @ODOSTable a WHERE a.NoOfDays>0 AND a.NoOfDays<31 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD60No=tb.OD60No, ta.OD60Amount=tb.OD60Amount, ta.OD60Outstanding=tb.OD60Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD60No, SUM(a.ODAmount)AS OD60Amount, SUM(a.BalanceAmount)AS OD60Outstanding FROM @ODOSTable a WHERE a.NoOfDays>30 AND a.NoOfDays<61 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD90No=tb.OD90No, ta.OD90Amount=tb.OD90Amount, ta.OD90Outstanding=tb.OD90Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD90No, SUM(a.ODAmount)AS OD90Amount, SUM(a.BalanceAmount)AS OD90Outstanding FROM @ODOSTable a WHERE a.NoOfDays>60 AND a.NoOfDays<91 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD180No=tb.OD180No, ta.OD180Amount=tb.OD180Amount, ta.OD180Outstanding=tb.OD180Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD180No, SUM(a.ODAmount)AS OD180Amount, SUM(a.BalanceAmount)AS OD180Outstanding FROM @ODOSTable a WHERE a.NoOfDays>90 AND a.NoOfDays<181 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD181No=tb.OD181No, ta.OD181Amount=tb.OD181Amount, ta.OD181Outstanding=tb.OD181Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD181No, SUM(a.ODAmount)AS OD181Amount, SUM(a.BalanceAmount)AS OD181Outstanding FROM @ODOSTable a WHERE a.NoOfDays>180 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; DELETE FROM DashBoardGroupLoanHeadOfficeSummaryReport ; INSERT INTO DashBoardGroupLoanHeadOfficeSummaryReport ( TillDate, EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding ) SELECT @TillDate AS TillDate, GETDATE() AS EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding FROM @FTable WHERE OutstandingAmount>0 ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 IndividualLoan_IndvHeadOfficeReport.UpdateHeadOfficerReport() TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 02:33:46 PM PageName: IndividualLoan_IndvHeadOfficeReport String str: String sql: DECLARE @TillDate DATE; SET @TillDate='10/24/2025 12:00:00 AM'; DECLARE @FTable TABLE ( SrNo INT, BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), NoOfOfficer INT, NoOfCenter INT, NoOfMember INT, NoOfActiveLoan INT, OutstandingAmount DECIMAL(18,2), NoOfTotalLoan INT, TotalDisbursed DECIMAL(18,2), ProcessingFee DECIMAL(18,2), SecurityFee DECIMAL(18,2), InsuranceFee DECIMAL(18,2), OtherFee DECIMAL(18,2), ServiceTax DECIMAL(18,2), TotalFee DECIMAL(18,2), ODNo INT, ODAmount DECIMAL(18,2), ODOutstanding DECIMAL(18,2), OD30No INT, OD30Amount DECIMAL(18,2), OD30Outstanding DECIMAL(18,2), OD60No INT, OD60Amount DECIMAL(18,2), OD60Outstanding DECIMAL(18,2), OD90No INT, OD90Amount DECIMAL(18,2), OD90Outstanding DECIMAL(18,2), OD180No INT, OD180Amount DECIMAL(18,2), OD180Outstanding DECIMAL(18,2), OD181No INT, OD181Amount DECIMAL(18,2), OD181Outstanding DECIMAL(18,2) ); DECLARE @ODOSTable TABLE ( BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), LoanId VARCHAR(50), NoOfDays INT, ODAmount DECIMAL(18,2), BalanceAmount DECIMAL(18,2) ); INSERT INTO @ODOSTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, LoanId, NoOfDays, ODAmount, BalanceAmount ) SELECT a.BranchId, a.BranchName, a.LoanOfficerId, a.LoanOfficerName, a.LoanId, c.NoOfDays, c.ODAmount, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalanceAmount FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, SUM(Prin)AS PaidPrincipal FROM GroupLoanLedger WITH(nolock) WHERE PDatedateadd(day,-1,@TillDate) GROUP BY LoanId )c ON a.LoanId=c.LoanId WHERE a.DisburseDate<@TillDate AND a.LoanAmount-isnull(b.PaidPrincipal,0)>0 ; INSERT INTO @FTable ( BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfActiveLoan, OutstandingAmount ) SELECT BranchId, BranchName, Count(DISTINCT LoanOfficerId)AS NoOfOfficer, count(DISTINCT CenterId)AS NoOfCenter, count(DISTINCT LoanId)AS NoOfActiveLoan, SUM(BalanceAmount)AS OutstandingAmount FROM @ODOSTable WHERE 1=1 GROUP BY BranchId, BranchName ; UPDATE ta SET ta.NoOfMember=(SELECT count(1) FROM GroupLoanMemberDetail WITH(nolock) WHERE isnull(DropOutDate,'01/01/1900')!='01/01/1900' AND MemberJoinDate0 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD30No=tb.OD30No, ta.OD30Amount=tb.OD30Amount, ta.OD30Outstanding=tb.OD30Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD30No, SUM(a.ODAmount)AS OD30Amount, SUM(a.BalanceAmount)AS OD30Outstanding FROM @ODOSTable a WHERE a.NoOfDays>0 AND a.NoOfDays<31 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD60No=tb.OD60No, ta.OD60Amount=tb.OD60Amount, ta.OD60Outstanding=tb.OD60Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD60No, SUM(a.ODAmount)AS OD60Amount, SUM(a.BalanceAmount)AS OD60Outstanding FROM @ODOSTable a WHERE a.NoOfDays>30 AND a.NoOfDays<61 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD90No=tb.OD90No, ta.OD90Amount=tb.OD90Amount, ta.OD90Outstanding=tb.OD90Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD90No, SUM(a.ODAmount)AS OD90Amount, SUM(a.BalanceAmount)AS OD90Outstanding FROM @ODOSTable a WHERE a.NoOfDays>60 AND a.NoOfDays<91 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD180No=tb.OD180No, ta.OD180Amount=tb.OD180Amount, ta.OD180Outstanding=tb.OD180Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD180No, SUM(a.ODAmount)AS OD180Amount, SUM(a.BalanceAmount)AS OD180Outstanding FROM @ODOSTable a WHERE a.NoOfDays>90 AND a.NoOfDays<181 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD181No=tb.OD181No, ta.OD181Amount=tb.OD181Amount, ta.OD181Outstanding=tb.OD181Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD181No, SUM(a.ODAmount)AS OD181Amount, SUM(a.BalanceAmount)AS OD181Outstanding FROM @ODOSTable a WHERE a.NoOfDays>180 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; DELETE FROM DashBoardGroupLoanHeadOfficeSummaryReport ; INSERT INTO DashBoardGroupLoanHeadOfficeSummaryReport ( TillDate, EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding ) SELECT @TillDate AS TillDate, GETDATE() AS EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding FROM @FTable WHERE OutstandingAmount>0 ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 IndividualLoan_IndvHeadOfficeReport.UpdateHeadOfficerReport() TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 02:33:46 PM PageName: IndividualLoan_IndvHeadOfficeReport String str: String sql: DECLARE @TillDate DATE; SET @TillDate='10/24/2025 12:00:00 AM'; DECLARE @FTable TABLE ( SrNo INT, BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), NoOfOfficer INT, NoOfCenter INT, NoOfMember INT, NoOfActiveLoan INT, OutstandingAmount DECIMAL(18,2), NoOfTotalLoan INT, TotalDisbursed DECIMAL(18,2), ProcessingFee DECIMAL(18,2), SecurityFee DECIMAL(18,2), InsuranceFee DECIMAL(18,2), OtherFee DECIMAL(18,2), ServiceTax DECIMAL(18,2), TotalFee DECIMAL(18,2), ODNo INT, ODAmount DECIMAL(18,2), ODOutstanding DECIMAL(18,2), OD30No INT, OD30Amount DECIMAL(18,2), OD30Outstanding DECIMAL(18,2), OD60No INT, OD60Amount DECIMAL(18,2), OD60Outstanding DECIMAL(18,2), OD90No INT, OD90Amount DECIMAL(18,2), OD90Outstanding DECIMAL(18,2), OD180No INT, OD180Amount DECIMAL(18,2), OD180Outstanding DECIMAL(18,2), OD181No INT, OD181Amount DECIMAL(18,2), OD181Outstanding DECIMAL(18,2) ); DECLARE @ODOSTable TABLE ( BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), LoanId VARCHAR(50), NoOfDays INT, ODAmount DECIMAL(18,2), BalanceAmount DECIMAL(18,2) ); INSERT INTO @ODOSTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, LoanId, NoOfDays, ODAmount, BalanceAmount ) SELECT a.BranchId, a.BranchName, a.LoanOfficerId, a.LoanOfficerName, a.LoanId, c.NoOfDays, c.ODAmount, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalanceAmount FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, SUM(Prin)AS PaidPrincipal FROM GroupLoanLedger WITH(nolock) WHERE PDatedateadd(day,-1,@TillDate) GROUP BY LoanId )c ON a.LoanId=c.LoanId WHERE a.DisburseDate<@TillDate AND a.LoanAmount-isnull(b.PaidPrincipal,0)>0 ; INSERT INTO @FTable ( BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfActiveLoan, OutstandingAmount ) SELECT BranchId, BranchName, Count(DISTINCT LoanOfficerId)AS NoOfOfficer, count(DISTINCT CenterId)AS NoOfCenter, count(DISTINCT LoanId)AS NoOfActiveLoan, SUM(BalanceAmount)AS OutstandingAmount FROM @ODOSTable WHERE 1=1 GROUP BY BranchId, BranchName ; UPDATE ta SET ta.NoOfMember=(SELECT count(1) FROM GroupLoanMemberDetail WITH(nolock) WHERE isnull(DropOutDate,'01/01/1900')!='01/01/1900' AND MemberJoinDate0 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD30No=tb.OD30No, ta.OD30Amount=tb.OD30Amount, ta.OD30Outstanding=tb.OD30Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD30No, SUM(a.ODAmount)AS OD30Amount, SUM(a.BalanceAmount)AS OD30Outstanding FROM @ODOSTable a WHERE a.NoOfDays>0 AND a.NoOfDays<31 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD60No=tb.OD60No, ta.OD60Amount=tb.OD60Amount, ta.OD60Outstanding=tb.OD60Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD60No, SUM(a.ODAmount)AS OD60Amount, SUM(a.BalanceAmount)AS OD60Outstanding FROM @ODOSTable a WHERE a.NoOfDays>30 AND a.NoOfDays<61 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD90No=tb.OD90No, ta.OD90Amount=tb.OD90Amount, ta.OD90Outstanding=tb.OD90Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD90No, SUM(a.ODAmount)AS OD90Amount, SUM(a.BalanceAmount)AS OD90Outstanding FROM @ODOSTable a WHERE a.NoOfDays>60 AND a.NoOfDays<91 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD180No=tb.OD180No, ta.OD180Amount=tb.OD180Amount, ta.OD180Outstanding=tb.OD180Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD180No, SUM(a.ODAmount)AS OD180Amount, SUM(a.BalanceAmount)AS OD180Outstanding FROM @ODOSTable a WHERE a.NoOfDays>90 AND a.NoOfDays<181 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD181No=tb.OD181No, ta.OD181Amount=tb.OD181Amount, ta.OD181Outstanding=tb.OD181Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD181No, SUM(a.ODAmount)AS OD181Amount, SUM(a.BalanceAmount)AS OD181Outstanding FROM @ODOSTable a WHERE a.NoOfDays>180 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; DELETE FROM DashBoardGroupLoanHeadOfficeSummaryReport ; INSERT INTO DashBoardGroupLoanHeadOfficeSummaryReport ( TillDate, EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding ) SELECT @TillDate AS TillDate, GETDATE() AS EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding FROM @FTable WHERE OutstandingAmount>0 ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 IndividualLoan_IndvHeadOfficeReport.UpdateHeadOfficerReport() TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 02:33:46 PM PageName: IndividualLoan_IndvHeadOfficeReport String str: String sql: DECLARE @TillDate DATE; SET @TillDate='10/24/2025 12:00:00 AM'; DECLARE @FTable TABLE ( SrNo INT, BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), NoOfOfficer INT, NoOfCenter INT, NoOfMember INT, NoOfActiveLoan INT, OutstandingAmount DECIMAL(18,2), NoOfTotalLoan INT, TotalDisbursed DECIMAL(18,2), ProcessingFee DECIMAL(18,2), SecurityFee DECIMAL(18,2), InsuranceFee DECIMAL(18,2), OtherFee DECIMAL(18,2), ServiceTax DECIMAL(18,2), TotalFee DECIMAL(18,2), ODNo INT, ODAmount DECIMAL(18,2), ODOutstanding DECIMAL(18,2), OD30No INT, OD30Amount DECIMAL(18,2), OD30Outstanding DECIMAL(18,2), OD60No INT, OD60Amount DECIMAL(18,2), OD60Outstanding DECIMAL(18,2), OD90No INT, OD90Amount DECIMAL(18,2), OD90Outstanding DECIMAL(18,2), OD180No INT, OD180Amount DECIMAL(18,2), OD180Outstanding DECIMAL(18,2), OD181No INT, OD181Amount DECIMAL(18,2), OD181Outstanding DECIMAL(18,2) ); DECLARE @ODOSTable TABLE ( BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), LoanId VARCHAR(50), NoOfDays INT, ODAmount DECIMAL(18,2), BalanceAmount DECIMAL(18,2) ); INSERT INTO @ODOSTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, LoanId, NoOfDays, ODAmount, BalanceAmount ) SELECT a.BranchId, a.BranchName, a.LoanOfficerId, a.LoanOfficerName, a.LoanId, c.NoOfDays, c.ODAmount, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalanceAmount FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, SUM(Prin)AS PaidPrincipal FROM GroupLoanLedger WITH(nolock) WHERE PDatedateadd(day,-1,@TillDate) GROUP BY LoanId )c ON a.LoanId=c.LoanId WHERE a.DisburseDate<@TillDate AND a.LoanAmount-isnull(b.PaidPrincipal,0)>0 ; INSERT INTO @FTable ( BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfActiveLoan, OutstandingAmount ) SELECT BranchId, BranchName, Count(DISTINCT LoanOfficerId)AS NoOfOfficer, count(DISTINCT CenterId)AS NoOfCenter, count(DISTINCT LoanId)AS NoOfActiveLoan, SUM(BalanceAmount)AS OutstandingAmount FROM @ODOSTable WHERE 1=1 GROUP BY BranchId, BranchName ; UPDATE ta SET ta.NoOfMember=(SELECT count(1) FROM GroupLoanMemberDetail WITH(nolock) WHERE isnull(DropOutDate,'01/01/1900')!='01/01/1900' AND MemberJoinDate0 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD30No=tb.OD30No, ta.OD30Amount=tb.OD30Amount, ta.OD30Outstanding=tb.OD30Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD30No, SUM(a.ODAmount)AS OD30Amount, SUM(a.BalanceAmount)AS OD30Outstanding FROM @ODOSTable a WHERE a.NoOfDays>0 AND a.NoOfDays<31 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD60No=tb.OD60No, ta.OD60Amount=tb.OD60Amount, ta.OD60Outstanding=tb.OD60Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD60No, SUM(a.ODAmount)AS OD60Amount, SUM(a.BalanceAmount)AS OD60Outstanding FROM @ODOSTable a WHERE a.NoOfDays>30 AND a.NoOfDays<61 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD90No=tb.OD90No, ta.OD90Amount=tb.OD90Amount, ta.OD90Outstanding=tb.OD90Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD90No, SUM(a.ODAmount)AS OD90Amount, SUM(a.BalanceAmount)AS OD90Outstanding FROM @ODOSTable a WHERE a.NoOfDays>60 AND a.NoOfDays<91 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD180No=tb.OD180No, ta.OD180Amount=tb.OD180Amount, ta.OD180Outstanding=tb.OD180Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD180No, SUM(a.ODAmount)AS OD180Amount, SUM(a.BalanceAmount)AS OD180Outstanding FROM @ODOSTable a WHERE a.NoOfDays>90 AND a.NoOfDays<181 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD181No=tb.OD181No, ta.OD181Amount=tb.OD181Amount, ta.OD181Outstanding=tb.OD181Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD181No, SUM(a.ODAmount)AS OD181Amount, SUM(a.BalanceAmount)AS OD181Outstanding FROM @ODOSTable a WHERE a.NoOfDays>180 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; DELETE FROM DashBoardGroupLoanHeadOfficeSummaryReport ; INSERT INTO DashBoardGroupLoanHeadOfficeSummaryReport ( TillDate, EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding ) SELECT @TillDate AS TillDate, GETDATE() AS EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding FROM @FTable WHERE OutstandingAmount>0 ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 IndividualLoan_IndvHeadOfficeReport.UpdateHeadOfficerReport() TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 02:34:00 PM PageName: DataTableResult String str: SELECT a.SrNo AS C0, isnull(a.NoOfOfficer,0)AS C2, isnull(a.NoOfCenter,0)AS C3, isnull(a.NoOfMember,0)AS C4, isnull(a.NoOfActiveLoan,0)AS C5, isnull(a.OutstandingAmount,0)AS C6, isnull(a.NoOfTotalLoan,0)AS C7, isnull(a.TotalDisbursed,0)AS C8, isnull(a.ProcessingFee,0)AS C9, isnull(a.SecurityFee,0)AS C10, isnull(a.InsuranceFee,0)AS C11, isnull(a.OtherFee,0)AS C12, isnull(a.ServiceTax,0)AS C13, isnull(a.TotalFee,0)AS C14, isnull(a.ODNo,0)AS C15, isnull(a.ODAmount,0)AS C16, isnull(a.ODOutstanding,0)AS C17, isnull(a.OD30No,0)AS C18, isnull(a.OD30Amount,0)AS C19, isnull(a.OD30Outstanding,0)AS C20, isnull(a.OD60No,0)AS C21, isnull(a.OD60Amount,0)AS C22, isnull(a.OD60Outstanding,0)AS C23, isnull(a.OD90No,0)AS C24, isnull(a.OD90Amount,0)AS C25, isnull(a.OD90Outstanding,0)AS C26, isnull(a.OD180No,0)AS C27, isnull(a.OD180Amount,0)AS C28, isnull(a.OD180Outstanding,0)AS C29, isnull(a.OD181No,0)AS C30, isnull(a.OD181Amount,0)AS C31, isnull(a.OD181Outstanding,0)AS C32, CASE WHEN b.C54>0 AND b.C65>0 THEN convert(char,convert(decimal(10,2),(b.C65*100/b.C54))) ELSE 'N/A' END AS C41, CASE WHEN b.C54>0 AND b.C68>0 THEN convert(char,convert(decimal(10,2),(b.C68*100/b.C54))) ELSE 'N/A' END AS C42, CASE WHEN b.C54>0 AND b.C71>0 THEN convert(char,convert(decimal(10,2),(b.C71*100/b.C54))) ELSE 'N/A' END AS C43, CASE WHEN b.C54>0 AND b.C74>0 THEN convert(char,convert(decimal(10,2),(b.C74*100/b.C54))) ELSE 'N/A' END AS C44, CASE WHEN b.C54>0 AND b.C77>0 THEN convert(char,convert(decimal(10,2),(b.C77*100/b.C54))) ELSE 'N/A' END AS C45, CASE WHEN b.C54>0 AND b.C80>0 THEN convert(char,convert(decimal(10,2),(b.C80*100/b.C54))) ELSE 'N/A' END AS C46, b.C51, b.C52, b.C53, b.C54, b.C55, b.C56, b.C57, b.C58, b.C59, b.C60, b.C61, b.C62, b.C63, b.C64, b.C65, b.C66, b.C67, b.C68, b.C69, b.C70, b.C71, b.C72, b.C73, b.C74, b.C75, b.C76, b.C77, b.C78, b.C79, b.C80, b.C81, b.C82, CASE WHEN b.C81>0 AND b.C82>0 THEN convert(char,convert(decimal(10,2),(b.C81/b.C82))) ELSE 'N/A' END AS C83, CASE WHEN b.C51>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C51/b.C82))) ELSE 'N/A' END AS C84, CASE WHEN b.C51>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C51/b.C81))) ELSE 'N/A' END AS C85, CASE WHEN b.C52>0 AND b.C51>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C82))) ELSE 'N/A' END AS C86, CASE WHEN b.C52>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C81))) ELSE 'N/A' END AS C87, CASE WHEN b.C52>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C51))) ELSE 'N/A' END AS C88, CASE WHEN b.C54>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C82))) ELSE 'N/A' END AS C89, CASE WHEN b.C54>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C81))) ELSE 'N/A' END AS C90, CASE WHEN b.C54>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C51))) ELSE 'N/A' END AS C49, CASE WHEN b.C54>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C52))) ELSE 'N/A' END AS C50, a.BranchId AS C91, a.BranchName AS C92, 'Till Date : '+rtrim(Convert(CHAR,a.TillDate,106))+' reported on : '+rtrim(Convert(CHAR,a.EntryTime,106))+' '+rtrim(Convert(CHAR,a.EntryTime,108))AS C93, (SELECT ReportValue AS CompanyName FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyName')AS C99, (SELECT ReportValue AS CompanyDetail1 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail1')AS C98, (SELECT ReportValue AS CompanyDetail2 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail2')AS C97, (SELECT ReportValue AS CompanyDetail3 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail3')AS C96, (SELECT ReportValue AS GroupHeadOfficeReportRDLC FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupHeadOfficeReportRDLC')AS C95 FROM DashBoardGroupLoanHeadOfficeSummaryReport a WITH(nolock) CROSS JOIN ( SELECT SUM(isnull(a.NoOfCenter,0))AS C51, SUM(isnull(a.NoOfMember,0))AS C52, SUM(isnull(a.NoOfActiveLoan,0))AS C53, SUM(isnull(a.OutstandingAmount,0))AS C54, SUM(isnull(a.NoOfTotalLoan,0))AS C55, SUM(isnull(a.TotalDisbursed,0))AS C56, SUM(isnull(a.ProcessingFee,0))AS C57, SUM(isnull(a.SecurityFee,0))AS C58, SUM(isnull(a.InsuranceFee,0))AS C59, SUM(isnull(a.OtherFee,0))AS C60, SUM(isnull(a.ServiceTax,0))AS C61, SUM(isnull(a.TotalFee,0))AS C62, SUM(isnull(a.ODNo,0))AS C63, SUM(isnull(a.ODAmount,0))AS C64, SUM(isnull(a.ODOutstanding,0))AS C65, SUM(isnull(a.OD30No,0))AS C66, SUM(isnull(a.OD30Amount,0))AS C67, SUM(isnull(a.OD30Outstanding,0))AS C68, SUM(isnull(a.OD60No,0))AS C69, SUM(isnull(a.OD60Amount,0))AS C70, SUM(isnull(a.OD60Outstanding,0))AS C71, SUM(isnull(a.OD90No,0))AS C72, SUM(isnull(a.OD90Amount,0))AS C73, SUM(isnull(a.OD90Outstanding,0))AS C74, SUM(isnull(a.OD180No,0))AS C75, SUM(isnull(a.OD180Amount,0))AS C76, SUM(isnull(a.OD180Outstanding,0))AS C77, SUM(isnull(a.OD181No,0))AS C78, SUM(isnull(a.OD181Amount,0))AS C79, SUM(isnull(a.OD181Outstanding,0))AS C80, SUM(isnull(a.NoOfOfficer,0))AS C81, Count(DISTINCT a.BranchId)AS C82 FROM DashBoardGroupLoanHeadOfficeSummaryReport a WITH(nolock) WHERE 1=1 )b WHERE 1=1 ORDER BY a.SrNo String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Divide by zero error encountered. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.Read() at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 02:34:00 PM PageName: GroupLoan_PrintRDLCPage String str: SELECT a.SrNo AS C0, isnull(a.NoOfOfficer,0)AS C2, isnull(a.NoOfCenter,0)AS C3, isnull(a.NoOfMember,0)AS C4, isnull(a.NoOfActiveLoan,0)AS C5, isnull(a.OutstandingAmount,0)AS C6, isnull(a.NoOfTotalLoan,0)AS C7, isnull(a.TotalDisbursed,0)AS C8, isnull(a.ProcessingFee,0)AS C9, isnull(a.SecurityFee,0)AS C10, isnull(a.InsuranceFee,0)AS C11, isnull(a.OtherFee,0)AS C12, isnull(a.ServiceTax,0)AS C13, isnull(a.TotalFee,0)AS C14, isnull(a.ODNo,0)AS C15, isnull(a.ODAmount,0)AS C16, isnull(a.ODOutstanding,0)AS C17, isnull(a.OD30No,0)AS C18, isnull(a.OD30Amount,0)AS C19, isnull(a.OD30Outstanding,0)AS C20, isnull(a.OD60No,0)AS C21, isnull(a.OD60Amount,0)AS C22, isnull(a.OD60Outstanding,0)AS C23, isnull(a.OD90No,0)AS C24, isnull(a.OD90Amount,0)AS C25, isnull(a.OD90Outstanding,0)AS C26, isnull(a.OD180No,0)AS C27, isnull(a.OD180Amount,0)AS C28, isnull(a.OD180Outstanding,0)AS C29, isnull(a.OD181No,0)AS C30, isnull(a.OD181Amount,0)AS C31, isnull(a.OD181Outstanding,0)AS C32, CASE WHEN b.C54>0 AND b.C65>0 THEN convert(char,convert(decimal(10,2),(b.C65*100/b.C54))) ELSE 'N/A' END AS C41, CASE WHEN b.C54>0 AND b.C68>0 THEN convert(char,convert(decimal(10,2),(b.C68*100/b.C54))) ELSE 'N/A' END AS C42, CASE WHEN b.C54>0 AND b.C71>0 THEN convert(char,convert(decimal(10,2),(b.C71*100/b.C54))) ELSE 'N/A' END AS C43, CASE WHEN b.C54>0 AND b.C74>0 THEN convert(char,convert(decimal(10,2),(b.C74*100/b.C54))) ELSE 'N/A' END AS C44, CASE WHEN b.C54>0 AND b.C77>0 THEN convert(char,convert(decimal(10,2),(b.C77*100/b.C54))) ELSE 'N/A' END AS C45, CASE WHEN b.C54>0 AND b.C80>0 THEN convert(char,convert(decimal(10,2),(b.C80*100/b.C54))) ELSE 'N/A' END AS C46, b.C51, b.C52, b.C53, b.C54, b.C55, b.C56, b.C57, b.C58, b.C59, b.C60, b.C61, b.C62, b.C63, b.C64, b.C65, b.C66, b.C67, b.C68, b.C69, b.C70, b.C71, b.C72, b.C73, b.C74, b.C75, b.C76, b.C77, b.C78, b.C79, b.C80, b.C81, b.C82, CASE WHEN b.C81>0 AND b.C82>0 THEN convert(char,convert(decimal(10,2),(b.C81/b.C82))) ELSE 'N/A' END AS C83, CASE WHEN b.C51>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C51/b.C82))) ELSE 'N/A' END AS C84, CASE WHEN b.C51>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C51/b.C81))) ELSE 'N/A' END AS C85, CASE WHEN b.C52>0 AND b.C51>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C82))) ELSE 'N/A' END AS C86, CASE WHEN b.C52>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C81))) ELSE 'N/A' END AS C87, CASE WHEN b.C52>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C51))) ELSE 'N/A' END AS C88, CASE WHEN b.C54>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C82))) ELSE 'N/A' END AS C89, CASE WHEN b.C54>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C81))) ELSE 'N/A' END AS C90, CASE WHEN b.C54>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C51))) ELSE 'N/A' END AS C49, CASE WHEN b.C54>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C52))) ELSE 'N/A' END AS C50, a.BranchId AS C91, a.BranchName AS C92, 'Till Date : '+rtrim(Convert(CHAR,a.TillDate,106))+' reported on : '+rtrim(Convert(CHAR,a.EntryTime,106))+' '+rtrim(Convert(CHAR,a.EntryTime,108))AS C93, (SELECT ReportValue AS CompanyName FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyName')AS C99, (SELECT ReportValue AS CompanyDetail1 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail1')AS C98, (SELECT ReportValue AS CompanyDetail2 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail2')AS C97, (SELECT ReportValue AS CompanyDetail3 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail3')AS C96, (SELECT ReportValue AS GroupHeadOfficeReportRDLC FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupHeadOfficeReportRDLC')AS C95 FROM DashBoardGroupLoanHeadOfficeSummaryReport a WITH(nolock) CROSS JOIN ( SELECT SUM(isnull(a.NoOfCenter,0))AS C51, SUM(isnull(a.NoOfMember,0))AS C52, SUM(isnull(a.NoOfActiveLoan,0))AS C53, SUM(isnull(a.OutstandingAmount,0))AS C54, SUM(isnull(a.NoOfTotalLoan,0))AS C55, SUM(isnull(a.TotalDisbursed,0))AS C56, SUM(isnull(a.ProcessingFee,0))AS C57, SUM(isnull(a.SecurityFee,0))AS C58, SUM(isnull(a.InsuranceFee,0))AS C59, SUM(isnull(a.OtherFee,0))AS C60, SUM(isnull(a.ServiceTax,0))AS C61, SUM(isnull(a.TotalFee,0))AS C62, SUM(isnull(a.ODNo,0))AS C63, SUM(isnull(a.ODAmount,0))AS C64, SUM(isnull(a.ODOutstanding,0))AS C65, SUM(isnull(a.OD30No,0))AS C66, SUM(isnull(a.OD30Amount,0))AS C67, SUM(isnull(a.OD30Outstanding,0))AS C68, SUM(isnull(a.OD60No,0))AS C69, SUM(isnull(a.OD60Amount,0))AS C70, SUM(isnull(a.OD60Outstanding,0))AS C71, SUM(isnull(a.OD90No,0))AS C72, SUM(isnull(a.OD90Amount,0))AS C73, SUM(isnull(a.OD90Outstanding,0))AS C74, SUM(isnull(a.OD180No,0))AS C75, SUM(isnull(a.OD180Amount,0))AS C76, SUM(isnull(a.OD180Outstanding,0))AS C77, SUM(isnull(a.OD181No,0))AS C78, SUM(isnull(a.OD181Amount,0))AS C79, SUM(isnull(a.OD181Outstanding,0))AS C80, SUM(isnull(a.NoOfOfficer,0))AS C81, Count(DISTINCT a.BranchId)AS C82 FROM DashBoardGroupLoanHeadOfficeSummaryReport a WITH(nolock) WHERE 1=1 )b WHERE 1=1 ORDER BY a.SrNo String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_uxyfjgek StackTrace: at GroupLoan_PrintRDLCPage.GroupHeadOfficeReport() TargetSite: Void GroupHeadOfficeReport() Time: 23/11/2025 02:34:18 PM PageName: IndividualLoan_IndvHeadOfficeReport String str: String sql: DECLARE @TillDate DATE; SET @TillDate='10/24/2025 12:00:00 AM'; DECLARE @FTable TABLE ( SrNo INT, BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), NoOfOfficer INT, NoOfCenter INT, NoOfMember INT, NoOfActiveLoan INT, OutstandingAmount DECIMAL(18,2), NoOfTotalLoan INT, TotalDisbursed DECIMAL(18,2), ProcessingFee DECIMAL(18,2), SecurityFee DECIMAL(18,2), InsuranceFee DECIMAL(18,2), OtherFee DECIMAL(18,2), ServiceTax DECIMAL(18,2), TotalFee DECIMAL(18,2), ODNo INT, ODAmount DECIMAL(18,2), ODOutstanding DECIMAL(18,2), OD30No INT, OD30Amount DECIMAL(18,2), OD30Outstanding DECIMAL(18,2), OD60No INT, OD60Amount DECIMAL(18,2), OD60Outstanding DECIMAL(18,2), OD90No INT, OD90Amount DECIMAL(18,2), OD90Outstanding DECIMAL(18,2), OD180No INT, OD180Amount DECIMAL(18,2), OD180Outstanding DECIMAL(18,2), OD181No INT, OD181Amount DECIMAL(18,2), OD181Outstanding DECIMAL(18,2) ); DECLARE @ODOSTable TABLE ( BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), LoanId VARCHAR(50), NoOfDays INT, ODAmount DECIMAL(18,2), BalanceAmount DECIMAL(18,2) ); INSERT INTO @ODOSTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, LoanId, NoOfDays, ODAmount, BalanceAmount ) SELECT a.BranchId, a.BranchName, a.LoanOfficerId, a.LoanOfficerName, a.LoanId, c.NoOfDays, c.ODAmount, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalanceAmount FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, SUM(Prin)AS PaidPrincipal FROM GroupLoanLedger WITH(nolock) WHERE PDatedateadd(day,-1,@TillDate) GROUP BY LoanId )c ON a.LoanId=c.LoanId WHERE a.DisburseDate<@TillDate AND a.LoanAmount-isnull(b.PaidPrincipal,0)>0 ; INSERT INTO @FTable ( BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfActiveLoan, OutstandingAmount ) SELECT BranchId, BranchName, Count(DISTINCT LoanOfficerId)AS NoOfOfficer, count(DISTINCT CenterId)AS NoOfCenter, count(DISTINCT LoanId)AS NoOfActiveLoan, SUM(BalanceAmount)AS OutstandingAmount FROM @ODOSTable WHERE 1=1 GROUP BY BranchId, BranchName ; UPDATE ta SET ta.NoOfMember=(SELECT count(1) FROM GroupLoanMemberDetail WITH(nolock) WHERE isnull(DropOutDate,'01/01/1900')!='01/01/1900' AND MemberJoinDate0 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD30No=tb.OD30No, ta.OD30Amount=tb.OD30Amount, ta.OD30Outstanding=tb.OD30Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD30No, SUM(a.ODAmount)AS OD30Amount, SUM(a.BalanceAmount)AS OD30Outstanding FROM @ODOSTable a WHERE a.NoOfDays>0 AND a.NoOfDays<31 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD60No=tb.OD60No, ta.OD60Amount=tb.OD60Amount, ta.OD60Outstanding=tb.OD60Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD60No, SUM(a.ODAmount)AS OD60Amount, SUM(a.BalanceAmount)AS OD60Outstanding FROM @ODOSTable a WHERE a.NoOfDays>30 AND a.NoOfDays<61 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD90No=tb.OD90No, ta.OD90Amount=tb.OD90Amount, ta.OD90Outstanding=tb.OD90Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD90No, SUM(a.ODAmount)AS OD90Amount, SUM(a.BalanceAmount)AS OD90Outstanding FROM @ODOSTable a WHERE a.NoOfDays>60 AND a.NoOfDays<91 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD180No=tb.OD180No, ta.OD180Amount=tb.OD180Amount, ta.OD180Outstanding=tb.OD180Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD180No, SUM(a.ODAmount)AS OD180Amount, SUM(a.BalanceAmount)AS OD180Outstanding FROM @ODOSTable a WHERE a.NoOfDays>90 AND a.NoOfDays<181 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD181No=tb.OD181No, ta.OD181Amount=tb.OD181Amount, ta.OD181Outstanding=tb.OD181Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD181No, SUM(a.ODAmount)AS OD181Amount, SUM(a.BalanceAmount)AS OD181Outstanding FROM @ODOSTable a WHERE a.NoOfDays>180 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; DELETE FROM DashBoardGroupLoanHeadOfficeSummaryReport ; INSERT INTO DashBoardGroupLoanHeadOfficeSummaryReport ( TillDate, EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding ) SELECT @TillDate AS TillDate, GETDATE() AS EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding FROM @FTable WHERE OutstandingAmount>0 ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 IndividualLoan_IndvHeadOfficeReport.UpdateHeadOfficerReport() TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 02:34:27 PM PageName: IndividualLoan_IndvHeadOfficeReport String str: String sql: DECLARE @TillDate DATE; SET @TillDate='11/6/2025 12:00:00 AM'; DECLARE @FTable TABLE ( SrNo INT, BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), NoOfOfficer INT, NoOfCenter INT, NoOfMember INT, NoOfActiveLoan INT, OutstandingAmount DECIMAL(18,2), NoOfTotalLoan INT, TotalDisbursed DECIMAL(18,2), ProcessingFee DECIMAL(18,2), SecurityFee DECIMAL(18,2), InsuranceFee DECIMAL(18,2), OtherFee DECIMAL(18,2), ServiceTax DECIMAL(18,2), TotalFee DECIMAL(18,2), ODNo INT, ODAmount DECIMAL(18,2), ODOutstanding DECIMAL(18,2), OD30No INT, OD30Amount DECIMAL(18,2), OD30Outstanding DECIMAL(18,2), OD60No INT, OD60Amount DECIMAL(18,2), OD60Outstanding DECIMAL(18,2), OD90No INT, OD90Amount DECIMAL(18,2), OD90Outstanding DECIMAL(18,2), OD180No INT, OD180Amount DECIMAL(18,2), OD180Outstanding DECIMAL(18,2), OD181No INT, OD181Amount DECIMAL(18,2), OD181Outstanding DECIMAL(18,2) ); DECLARE @ODOSTable TABLE ( BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), LoanId VARCHAR(50), NoOfDays INT, ODAmount DECIMAL(18,2), BalanceAmount DECIMAL(18,2) ); INSERT INTO @ODOSTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, LoanId, NoOfDays, ODAmount, BalanceAmount ) SELECT a.BranchId, a.BranchName, a.LoanOfficerId, a.LoanOfficerName, a.LoanId, c.NoOfDays, c.ODAmount, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalanceAmount FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, SUM(Prin)AS PaidPrincipal FROM GroupLoanLedger WITH(nolock) WHERE PDatedateadd(day,-1,@TillDate) GROUP BY LoanId )c ON a.LoanId=c.LoanId WHERE a.DisburseDate<@TillDate AND a.LoanAmount-isnull(b.PaidPrincipal,0)>0 ; INSERT INTO @FTable ( BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfActiveLoan, OutstandingAmount ) SELECT BranchId, BranchName, Count(DISTINCT LoanOfficerId)AS NoOfOfficer, count(DISTINCT CenterId)AS NoOfCenter, count(DISTINCT LoanId)AS NoOfActiveLoan, SUM(BalanceAmount)AS OutstandingAmount FROM @ODOSTable WHERE 1=1 GROUP BY BranchId, BranchName ; UPDATE ta SET ta.NoOfMember=(SELECT count(1) FROM GroupLoanMemberDetail WITH(nolock) WHERE isnull(DropOutDate,'01/01/1900')!='01/01/1900' AND MemberJoinDate0 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD30No=tb.OD30No, ta.OD30Amount=tb.OD30Amount, ta.OD30Outstanding=tb.OD30Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD30No, SUM(a.ODAmount)AS OD30Amount, SUM(a.BalanceAmount)AS OD30Outstanding FROM @ODOSTable a WHERE a.NoOfDays>0 AND a.NoOfDays<31 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD60No=tb.OD60No, ta.OD60Amount=tb.OD60Amount, ta.OD60Outstanding=tb.OD60Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD60No, SUM(a.ODAmount)AS OD60Amount, SUM(a.BalanceAmount)AS OD60Outstanding FROM @ODOSTable a WHERE a.NoOfDays>30 AND a.NoOfDays<61 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD90No=tb.OD90No, ta.OD90Amount=tb.OD90Amount, ta.OD90Outstanding=tb.OD90Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD90No, SUM(a.ODAmount)AS OD90Amount, SUM(a.BalanceAmount)AS OD90Outstanding FROM @ODOSTable a WHERE a.NoOfDays>60 AND a.NoOfDays<91 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD180No=tb.OD180No, ta.OD180Amount=tb.OD180Amount, ta.OD180Outstanding=tb.OD180Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD180No, SUM(a.ODAmount)AS OD180Amount, SUM(a.BalanceAmount)AS OD180Outstanding FROM @ODOSTable a WHERE a.NoOfDays>90 AND a.NoOfDays<181 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD181No=tb.OD181No, ta.OD181Amount=tb.OD181Amount, ta.OD181Outstanding=tb.OD181Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD181No, SUM(a.ODAmount)AS OD181Amount, SUM(a.BalanceAmount)AS OD181Outstanding FROM @ODOSTable a WHERE a.NoOfDays>180 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; DELETE FROM DashBoardGroupLoanHeadOfficeSummaryReport ; INSERT INTO DashBoardGroupLoanHeadOfficeSummaryReport ( TillDate, EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding ) SELECT @TillDate AS TillDate, GETDATE() AS EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding FROM @FTable WHERE OutstandingAmount>0 ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 IndividualLoan_IndvHeadOfficeReport.UpdateHeadOfficerReport() TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 02:34:32 PM PageName: IndividualLoan_IndvHeadOfficeReport String str: String sql: DECLARE @TillDate DATE; SET @TillDate='10/24/2025 12:00:00 AM'; DECLARE @FTable TABLE ( SrNo INT, BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), NoOfOfficer INT, NoOfCenter INT, NoOfMember INT, NoOfActiveLoan INT, OutstandingAmount DECIMAL(18,2), NoOfTotalLoan INT, TotalDisbursed DECIMAL(18,2), ProcessingFee DECIMAL(18,2), SecurityFee DECIMAL(18,2), InsuranceFee DECIMAL(18,2), OtherFee DECIMAL(18,2), ServiceTax DECIMAL(18,2), TotalFee DECIMAL(18,2), ODNo INT, ODAmount DECIMAL(18,2), ODOutstanding DECIMAL(18,2), OD30No INT, OD30Amount DECIMAL(18,2), OD30Outstanding DECIMAL(18,2), OD60No INT, OD60Amount DECIMAL(18,2), OD60Outstanding DECIMAL(18,2), OD90No INT, OD90Amount DECIMAL(18,2), OD90Outstanding DECIMAL(18,2), OD180No INT, OD180Amount DECIMAL(18,2), OD180Outstanding DECIMAL(18,2), OD181No INT, OD181Amount DECIMAL(18,2), OD181Outstanding DECIMAL(18,2) ); DECLARE @ODOSTable TABLE ( BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), LoanId VARCHAR(50), NoOfDays INT, ODAmount DECIMAL(18,2), BalanceAmount DECIMAL(18,2) ); INSERT INTO @ODOSTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, LoanId, NoOfDays, ODAmount, BalanceAmount ) SELECT a.BranchId, a.BranchName, a.LoanOfficerId, a.LoanOfficerName, a.LoanId, c.NoOfDays, c.ODAmount, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalanceAmount FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, SUM(Prin)AS PaidPrincipal FROM GroupLoanLedger WITH(nolock) WHERE PDatedateadd(day,-1,@TillDate) GROUP BY LoanId )c ON a.LoanId=c.LoanId WHERE a.DisburseDate<@TillDate AND a.LoanAmount-isnull(b.PaidPrincipal,0)>0 ; INSERT INTO @FTable ( BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfActiveLoan, OutstandingAmount ) SELECT BranchId, BranchName, Count(DISTINCT LoanOfficerId)AS NoOfOfficer, count(DISTINCT CenterId)AS NoOfCenter, count(DISTINCT LoanId)AS NoOfActiveLoan, SUM(BalanceAmount)AS OutstandingAmount FROM @ODOSTable WHERE 1=1 GROUP BY BranchId, BranchName ; UPDATE ta SET ta.NoOfMember=(SELECT count(1) FROM GroupLoanMemberDetail WITH(nolock) WHERE isnull(DropOutDate,'01/01/1900')!='01/01/1900' AND MemberJoinDate0 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD30No=tb.OD30No, ta.OD30Amount=tb.OD30Amount, ta.OD30Outstanding=tb.OD30Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD30No, SUM(a.ODAmount)AS OD30Amount, SUM(a.BalanceAmount)AS OD30Outstanding FROM @ODOSTable a WHERE a.NoOfDays>0 AND a.NoOfDays<31 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD60No=tb.OD60No, ta.OD60Amount=tb.OD60Amount, ta.OD60Outstanding=tb.OD60Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD60No, SUM(a.ODAmount)AS OD60Amount, SUM(a.BalanceAmount)AS OD60Outstanding FROM @ODOSTable a WHERE a.NoOfDays>30 AND a.NoOfDays<61 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD90No=tb.OD90No, ta.OD90Amount=tb.OD90Amount, ta.OD90Outstanding=tb.OD90Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD90No, SUM(a.ODAmount)AS OD90Amount, SUM(a.BalanceAmount)AS OD90Outstanding FROM @ODOSTable a WHERE a.NoOfDays>60 AND a.NoOfDays<91 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD180No=tb.OD180No, ta.OD180Amount=tb.OD180Amount, ta.OD180Outstanding=tb.OD180Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD180No, SUM(a.ODAmount)AS OD180Amount, SUM(a.BalanceAmount)AS OD180Outstanding FROM @ODOSTable a WHERE a.NoOfDays>90 AND a.NoOfDays<181 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD181No=tb.OD181No, ta.OD181Amount=tb.OD181Amount, ta.OD181Outstanding=tb.OD181Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD181No, SUM(a.ODAmount)AS OD181Amount, SUM(a.BalanceAmount)AS OD181Outstanding FROM @ODOSTable a WHERE a.NoOfDays>180 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; DELETE FROM DashBoardGroupLoanHeadOfficeSummaryReport ; INSERT INTO DashBoardGroupLoanHeadOfficeSummaryReport ( TillDate, EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding ) SELECT @TillDate AS TillDate, GETDATE() AS EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding FROM @FTable WHERE OutstandingAmount>0 ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 IndividualLoan_IndvHeadOfficeReport.UpdateHeadOfficerReport() TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 02:34:44 PM PageName: IndividualLoan_IndvHeadOfficeReport String str: String sql: DECLARE @TillDate DATE; SET @TillDate='10/30/2025 12:00:00 AM'; DECLARE @FTable TABLE ( SrNo INT, BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), NoOfOfficer INT, NoOfCenter INT, NoOfMember INT, NoOfActiveLoan INT, OutstandingAmount DECIMAL(18,2), NoOfTotalLoan INT, TotalDisbursed DECIMAL(18,2), ProcessingFee DECIMAL(18,2), SecurityFee DECIMAL(18,2), InsuranceFee DECIMAL(18,2), OtherFee DECIMAL(18,2), ServiceTax DECIMAL(18,2), TotalFee DECIMAL(18,2), ODNo INT, ODAmount DECIMAL(18,2), ODOutstanding DECIMAL(18,2), OD30No INT, OD30Amount DECIMAL(18,2), OD30Outstanding DECIMAL(18,2), OD60No INT, OD60Amount DECIMAL(18,2), OD60Outstanding DECIMAL(18,2), OD90No INT, OD90Amount DECIMAL(18,2), OD90Outstanding DECIMAL(18,2), OD180No INT, OD180Amount DECIMAL(18,2), OD180Outstanding DECIMAL(18,2), OD181No INT, OD181Amount DECIMAL(18,2), OD181Outstanding DECIMAL(18,2) ); DECLARE @ODOSTable TABLE ( BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), LoanId VARCHAR(50), NoOfDays INT, ODAmount DECIMAL(18,2), BalanceAmount DECIMAL(18,2) ); INSERT INTO @ODOSTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, LoanId, NoOfDays, ODAmount, BalanceAmount ) SELECT a.BranchId, a.BranchName, a.LoanOfficerId, a.LoanOfficerName, a.LoanId, c.NoOfDays, c.ODAmount, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalanceAmount FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, SUM(Prin)AS PaidPrincipal FROM GroupLoanLedger WITH(nolock) WHERE PDatedateadd(day,-1,@TillDate) GROUP BY LoanId )c ON a.LoanId=c.LoanId WHERE a.DisburseDate<@TillDate AND a.LoanAmount-isnull(b.PaidPrincipal,0)>0 ; INSERT INTO @FTable ( BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfActiveLoan, OutstandingAmount ) SELECT BranchId, BranchName, Count(DISTINCT LoanOfficerId)AS NoOfOfficer, count(DISTINCT CenterId)AS NoOfCenter, count(DISTINCT LoanId)AS NoOfActiveLoan, SUM(BalanceAmount)AS OutstandingAmount FROM @ODOSTable WHERE 1=1 GROUP BY BranchId, BranchName ; UPDATE ta SET ta.NoOfMember=(SELECT count(1) FROM GroupLoanMemberDetail WITH(nolock) WHERE isnull(DropOutDate,'01/01/1900')!='01/01/1900' AND MemberJoinDate0 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD30No=tb.OD30No, ta.OD30Amount=tb.OD30Amount, ta.OD30Outstanding=tb.OD30Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD30No, SUM(a.ODAmount)AS OD30Amount, SUM(a.BalanceAmount)AS OD30Outstanding FROM @ODOSTable a WHERE a.NoOfDays>0 AND a.NoOfDays<31 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD60No=tb.OD60No, ta.OD60Amount=tb.OD60Amount, ta.OD60Outstanding=tb.OD60Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD60No, SUM(a.ODAmount)AS OD60Amount, SUM(a.BalanceAmount)AS OD60Outstanding FROM @ODOSTable a WHERE a.NoOfDays>30 AND a.NoOfDays<61 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD90No=tb.OD90No, ta.OD90Amount=tb.OD90Amount, ta.OD90Outstanding=tb.OD90Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD90No, SUM(a.ODAmount)AS OD90Amount, SUM(a.BalanceAmount)AS OD90Outstanding FROM @ODOSTable a WHERE a.NoOfDays>60 AND a.NoOfDays<91 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD180No=tb.OD180No, ta.OD180Amount=tb.OD180Amount, ta.OD180Outstanding=tb.OD180Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD180No, SUM(a.ODAmount)AS OD180Amount, SUM(a.BalanceAmount)AS OD180Outstanding FROM @ODOSTable a WHERE a.NoOfDays>90 AND a.NoOfDays<181 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD181No=tb.OD181No, ta.OD181Amount=tb.OD181Amount, ta.OD181Outstanding=tb.OD181Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD181No, SUM(a.ODAmount)AS OD181Amount, SUM(a.BalanceAmount)AS OD181Outstanding FROM @ODOSTable a WHERE a.NoOfDays>180 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; DELETE FROM DashBoardGroupLoanHeadOfficeSummaryReport ; INSERT INTO DashBoardGroupLoanHeadOfficeSummaryReport ( TillDate, EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding ) SELECT @TillDate AS TillDate, GETDATE() AS EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding FROM @FTable WHERE OutstandingAmount>0 ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 IndividualLoan_IndvHeadOfficeReport.UpdateHeadOfficerReport() TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 02:39:22 PM PageName: DataTableResult String str: SELECT a.SrNo AS C0, isnull(a.NoOfOfficer,0)AS C2, isnull(a.NoOfCenter,0)AS C3, isnull(a.NoOfMember,0)AS C4, isnull(a.NoOfActiveLoan,0)AS C5, isnull(a.OutstandingAmount,0)AS C6, isnull(a.NoOfTotalLoan,0)AS C7, isnull(a.TotalDisbursed,0)AS C8, isnull(a.ProcessingFee,0)AS C9, isnull(a.SecurityFee,0)AS C10, isnull(a.InsuranceFee,0)AS C11, isnull(a.OtherFee,0)AS C12, isnull(a.ServiceTax,0)AS C13, isnull(a.TotalFee,0)AS C14, isnull(a.ODNo,0)AS C15, isnull(a.ODAmount,0)AS C16, isnull(a.ODOutstanding,0)AS C17, isnull(a.OD30No,0)AS C18, isnull(a.OD30Amount,0)AS C19, isnull(a.OD30Outstanding,0)AS C20, isnull(a.OD60No,0)AS C21, isnull(a.OD60Amount,0)AS C22, isnull(a.OD60Outstanding,0)AS C23, isnull(a.OD90No,0)AS C24, isnull(a.OD90Amount,0)AS C25, isnull(a.OD90Outstanding,0)AS C26, isnull(a.OD180No,0)AS C27, isnull(a.OD180Amount,0)AS C28, isnull(a.OD180Outstanding,0)AS C29, isnull(a.OD181No,0)AS C30, isnull(a.OD181Amount,0)AS C31, isnull(a.OD181Outstanding,0)AS C32, CASE WHEN b.C54>0 AND b.C65>0 THEN convert(char,convert(decimal(10,2),(b.C65*100/b.C54))) ELSE 'N/A' END AS C41, CASE WHEN b.C54>0 AND b.C68>0 THEN convert(char,convert(decimal(10,2),(b.C68*100/b.C54))) ELSE 'N/A' END AS C42, CASE WHEN b.C54>0 AND b.C71>0 THEN convert(char,convert(decimal(10,2),(b.C71*100/b.C54))) ELSE 'N/A' END AS C43, CASE WHEN b.C54>0 AND b.C74>0 THEN convert(char,convert(decimal(10,2),(b.C74*100/b.C54))) ELSE 'N/A' END AS C44, CASE WHEN b.C54>0 AND b.C77>0 THEN convert(char,convert(decimal(10,2),(b.C77*100/b.C54))) ELSE 'N/A' END AS C45, CASE WHEN b.C54>0 AND b.C80>0 THEN convert(char,convert(decimal(10,2),(b.C80*100/b.C54))) ELSE 'N/A' END AS C46, b.C51, b.C52, b.C53, b.C54, b.C55, b.C56, b.C57, b.C58, b.C59, b.C60, b.C61, b.C62, b.C63, b.C64, b.C65, b.C66, b.C67, b.C68, b.C69, b.C70, b.C71, b.C72, b.C73, b.C74, b.C75, b.C76, b.C77, b.C78, b.C79, b.C80, b.C81, b.C82, CASE WHEN b.C81>0 AND b.C82>0 THEN convert(char,convert(decimal(10,2),(b.C81/b.C82))) ELSE 'N/A' END AS C83, CASE WHEN b.C51>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C51/b.C82))) ELSE 'N/A' END AS C84, CASE WHEN b.C51>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C51/b.C81))) ELSE 'N/A' END AS C85, CASE WHEN b.C52>0 AND b.C51>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C82))) ELSE 'N/A' END AS C86, CASE WHEN b.C52>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C81))) ELSE 'N/A' END AS C87, CASE WHEN b.C52>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C51))) ELSE 'N/A' END AS C88, CASE WHEN b.C54>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C82))) ELSE 'N/A' END AS C89, CASE WHEN b.C54>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C81))) ELSE 'N/A' END AS C90, CASE WHEN b.C54>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C51))) ELSE 'N/A' END AS C49, CASE WHEN b.C54>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C52))) ELSE 'N/A' END AS C50, a.BranchId AS C91, a.BranchName AS C92, 'Till Date : '+rtrim(Convert(CHAR,a.TillDate,106))+' reported on : '+rtrim(Convert(CHAR,a.EntryTime,106))+' '+rtrim(Convert(CHAR,a.EntryTime,108))AS C93, (SELECT ReportValue AS CompanyName FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyName')AS C99, (SELECT ReportValue AS CompanyDetail1 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail1')AS C98, (SELECT ReportValue AS CompanyDetail2 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail2')AS C97, (SELECT ReportValue AS CompanyDetail3 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail3')AS C96, (SELECT ReportValue AS GroupHeadOfficeReportRDLC FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupHeadOfficeReportRDLC')AS C95 FROM DashBoardGroupLoanHeadOfficeSummaryReport a WITH(nolock) CROSS JOIN ( SELECT SUM(isnull(a.NoOfCenter,0))AS C51, SUM(isnull(a.NoOfMember,0))AS C52, SUM(isnull(a.NoOfActiveLoan,0))AS C53, SUM(isnull(a.OutstandingAmount,0))AS C54, SUM(isnull(a.NoOfTotalLoan,0))AS C55, SUM(isnull(a.TotalDisbursed,0))AS C56, SUM(isnull(a.ProcessingFee,0))AS C57, SUM(isnull(a.SecurityFee,0))AS C58, SUM(isnull(a.InsuranceFee,0))AS C59, SUM(isnull(a.OtherFee,0))AS C60, SUM(isnull(a.ServiceTax,0))AS C61, SUM(isnull(a.TotalFee,0))AS C62, SUM(isnull(a.ODNo,0))AS C63, SUM(isnull(a.ODAmount,0))AS C64, SUM(isnull(a.ODOutstanding,0))AS C65, SUM(isnull(a.OD30No,0))AS C66, SUM(isnull(a.OD30Amount,0))AS C67, SUM(isnull(a.OD30Outstanding,0))AS C68, SUM(isnull(a.OD60No,0))AS C69, SUM(isnull(a.OD60Amount,0))AS C70, SUM(isnull(a.OD60Outstanding,0))AS C71, SUM(isnull(a.OD90No,0))AS C72, SUM(isnull(a.OD90Amount,0))AS C73, SUM(isnull(a.OD90Outstanding,0))AS C74, SUM(isnull(a.OD180No,0))AS C75, SUM(isnull(a.OD180Amount,0))AS C76, SUM(isnull(a.OD180Outstanding,0))AS C77, SUM(isnull(a.OD181No,0))AS C78, SUM(isnull(a.OD181Amount,0))AS C79, SUM(isnull(a.OD181Outstanding,0))AS C80, SUM(isnull(a.NoOfOfficer,0))AS C81, Count(DISTINCT a.BranchId)AS C82 FROM DashBoardGroupLoanHeadOfficeSummaryReport a WITH(nolock) WHERE 1=1 )b WHERE 1=1 ORDER BY a.SrNo String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Divide by zero error encountered. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.Read() at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 02:39:22 PM PageName: GroupLoan_PrintRDLCPage String str: SELECT a.SrNo AS C0, isnull(a.NoOfOfficer,0)AS C2, isnull(a.NoOfCenter,0)AS C3, isnull(a.NoOfMember,0)AS C4, isnull(a.NoOfActiveLoan,0)AS C5, isnull(a.OutstandingAmount,0)AS C6, isnull(a.NoOfTotalLoan,0)AS C7, isnull(a.TotalDisbursed,0)AS C8, isnull(a.ProcessingFee,0)AS C9, isnull(a.SecurityFee,0)AS C10, isnull(a.InsuranceFee,0)AS C11, isnull(a.OtherFee,0)AS C12, isnull(a.ServiceTax,0)AS C13, isnull(a.TotalFee,0)AS C14, isnull(a.ODNo,0)AS C15, isnull(a.ODAmount,0)AS C16, isnull(a.ODOutstanding,0)AS C17, isnull(a.OD30No,0)AS C18, isnull(a.OD30Amount,0)AS C19, isnull(a.OD30Outstanding,0)AS C20, isnull(a.OD60No,0)AS C21, isnull(a.OD60Amount,0)AS C22, isnull(a.OD60Outstanding,0)AS C23, isnull(a.OD90No,0)AS C24, isnull(a.OD90Amount,0)AS C25, isnull(a.OD90Outstanding,0)AS C26, isnull(a.OD180No,0)AS C27, isnull(a.OD180Amount,0)AS C28, isnull(a.OD180Outstanding,0)AS C29, isnull(a.OD181No,0)AS C30, isnull(a.OD181Amount,0)AS C31, isnull(a.OD181Outstanding,0)AS C32, CASE WHEN b.C54>0 AND b.C65>0 THEN convert(char,convert(decimal(10,2),(b.C65*100/b.C54))) ELSE 'N/A' END AS C41, CASE WHEN b.C54>0 AND b.C68>0 THEN convert(char,convert(decimal(10,2),(b.C68*100/b.C54))) ELSE 'N/A' END AS C42, CASE WHEN b.C54>0 AND b.C71>0 THEN convert(char,convert(decimal(10,2),(b.C71*100/b.C54))) ELSE 'N/A' END AS C43, CASE WHEN b.C54>0 AND b.C74>0 THEN convert(char,convert(decimal(10,2),(b.C74*100/b.C54))) ELSE 'N/A' END AS C44, CASE WHEN b.C54>0 AND b.C77>0 THEN convert(char,convert(decimal(10,2),(b.C77*100/b.C54))) ELSE 'N/A' END AS C45, CASE WHEN b.C54>0 AND b.C80>0 THEN convert(char,convert(decimal(10,2),(b.C80*100/b.C54))) ELSE 'N/A' END AS C46, b.C51, b.C52, b.C53, b.C54, b.C55, b.C56, b.C57, b.C58, b.C59, b.C60, b.C61, b.C62, b.C63, b.C64, b.C65, b.C66, b.C67, b.C68, b.C69, b.C70, b.C71, b.C72, b.C73, b.C74, b.C75, b.C76, b.C77, b.C78, b.C79, b.C80, b.C81, b.C82, CASE WHEN b.C81>0 AND b.C82>0 THEN convert(char,convert(decimal(10,2),(b.C81/b.C82))) ELSE 'N/A' END AS C83, CASE WHEN b.C51>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C51/b.C82))) ELSE 'N/A' END AS C84, CASE WHEN b.C51>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C51/b.C81))) ELSE 'N/A' END AS C85, CASE WHEN b.C52>0 AND b.C51>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C82))) ELSE 'N/A' END AS C86, CASE WHEN b.C52>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C81))) ELSE 'N/A' END AS C87, CASE WHEN b.C52>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C52/b.C51))) ELSE 'N/A' END AS C88, CASE WHEN b.C54>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C82))) ELSE 'N/A' END AS C89, CASE WHEN b.C54>0 AND b.C52>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C81))) ELSE 'N/A' END AS C90, CASE WHEN b.C54>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C51))) ELSE 'N/A' END AS C49, CASE WHEN b.C54>0 AND b.C81>0 THEN convert(char,convert(decimal(10,2),(b.C54/b.C52))) ELSE 'N/A' END AS C50, a.BranchId AS C91, a.BranchName AS C92, 'Till Date : '+rtrim(Convert(CHAR,a.TillDate,106))+' reported on : '+rtrim(Convert(CHAR,a.EntryTime,106))+' '+rtrim(Convert(CHAR,a.EntryTime,108))AS C93, (SELECT ReportValue AS CompanyName FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyName')AS C99, (SELECT ReportValue AS CompanyDetail1 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail1')AS C98, (SELECT ReportValue AS CompanyDetail2 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail2')AS C97, (SELECT ReportValue AS CompanyDetail3 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail3')AS C96, (SELECT ReportValue AS GroupHeadOfficeReportRDLC FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupHeadOfficeReportRDLC')AS C95 FROM DashBoardGroupLoanHeadOfficeSummaryReport a WITH(nolock) CROSS JOIN ( SELECT SUM(isnull(a.NoOfCenter,0))AS C51, SUM(isnull(a.NoOfMember,0))AS C52, SUM(isnull(a.NoOfActiveLoan,0))AS C53, SUM(isnull(a.OutstandingAmount,0))AS C54, SUM(isnull(a.NoOfTotalLoan,0))AS C55, SUM(isnull(a.TotalDisbursed,0))AS C56, SUM(isnull(a.ProcessingFee,0))AS C57, SUM(isnull(a.SecurityFee,0))AS C58, SUM(isnull(a.InsuranceFee,0))AS C59, SUM(isnull(a.OtherFee,0))AS C60, SUM(isnull(a.ServiceTax,0))AS C61, SUM(isnull(a.TotalFee,0))AS C62, SUM(isnull(a.ODNo,0))AS C63, SUM(isnull(a.ODAmount,0))AS C64, SUM(isnull(a.ODOutstanding,0))AS C65, SUM(isnull(a.OD30No,0))AS C66, SUM(isnull(a.OD30Amount,0))AS C67, SUM(isnull(a.OD30Outstanding,0))AS C68, SUM(isnull(a.OD60No,0))AS C69, SUM(isnull(a.OD60Amount,0))AS C70, SUM(isnull(a.OD60Outstanding,0))AS C71, SUM(isnull(a.OD90No,0))AS C72, SUM(isnull(a.OD90Amount,0))AS C73, SUM(isnull(a.OD90Outstanding,0))AS C74, SUM(isnull(a.OD180No,0))AS C75, SUM(isnull(a.OD180Amount,0))AS C76, SUM(isnull(a.OD180Outstanding,0))AS C77, SUM(isnull(a.OD181No,0))AS C78, SUM(isnull(a.OD181Amount,0))AS C79, SUM(isnull(a.OD181Outstanding,0))AS C80, SUM(isnull(a.NoOfOfficer,0))AS C81, Count(DISTINCT a.BranchId)AS C82 FROM DashBoardGroupLoanHeadOfficeSummaryReport a WITH(nolock) WHERE 1=1 )b WHERE 1=1 ORDER BY a.SrNo String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_uxyfjgek StackTrace: at GroupLoan_PrintRDLCPage.GroupHeadOfficeReport() TargetSite: Void GroupHeadOfficeReport() Time: 23/11/2025 03:00:35 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 03:00:35 PM PageName: IndividualLoan_IndvExtraPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l2ncb3ku StackTrace: at IndividualLoan_IndvExtraPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 03:00:53 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 03:00:53 PM PageName: IndividualLoan_IndvExtraPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l2ncb3ku StackTrace: at IndividualLoan_IndvExtraPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 03:01:02 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 03:01:02 PM PageName: IndividualLoan_IndvExtraPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l2ncb3ku StackTrace: at IndividualLoan_IndvExtraPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 03:09:00 PM PageName: IndividualLoan_IndvHeadOfficeReport String str: String sql: DECLARE @TillDate DATE; SET @TillDate='9/28/2025 12:00:00 AM'; DECLARE @FTable TABLE ( SrNo INT, BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), NoOfOfficer INT, NoOfCenter INT, NoOfMember INT, NoOfActiveLoan INT, OutstandingAmount DECIMAL(18,2), NoOfTotalLoan INT, TotalDisbursed DECIMAL(18,2), ProcessingFee DECIMAL(18,2), SecurityFee DECIMAL(18,2), InsuranceFee DECIMAL(18,2), OtherFee DECIMAL(18,2), ServiceTax DECIMAL(18,2), TotalFee DECIMAL(18,2), ODNo INT, ODAmount DECIMAL(18,2), ODOutstanding DECIMAL(18,2), OD30No INT, OD30Amount DECIMAL(18,2), OD30Outstanding DECIMAL(18,2), OD60No INT, OD60Amount DECIMAL(18,2), OD60Outstanding DECIMAL(18,2), OD90No INT, OD90Amount DECIMAL(18,2), OD90Outstanding DECIMAL(18,2), OD180No INT, OD180Amount DECIMAL(18,2), OD180Outstanding DECIMAL(18,2), OD181No INT, OD181Amount DECIMAL(18,2), OD181Outstanding DECIMAL(18,2) ); DECLARE @ODOSTable TABLE ( BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), LoanId VARCHAR(50), NoOfDays INT, ODAmount DECIMAL(18,2), BalanceAmount DECIMAL(18,2) ); INSERT INTO @ODOSTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, LoanId, NoOfDays, ODAmount, BalanceAmount ) SELECT a.BranchId, a.BranchName, a.LoanOfficerId, a.LoanOfficerName, a.LoanId, c.NoOfDays, c.ODAmount, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalanceAmount FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, SUM(Prin)AS PaidPrincipal FROM GroupLoanLedger WITH(nolock) WHERE PDatedateadd(day,-1,@TillDate) GROUP BY LoanId )c ON a.LoanId=c.LoanId WHERE a.DisburseDate<@TillDate AND a.LoanAmount-isnull(b.PaidPrincipal,0)>0 ; INSERT INTO @FTable ( BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfActiveLoan, OutstandingAmount ) SELECT BranchId, BranchName, Count(DISTINCT LoanOfficerId)AS NoOfOfficer, count(DISTINCT CenterId)AS NoOfCenter, count(DISTINCT LoanId)AS NoOfActiveLoan, SUM(BalanceAmount)AS OutstandingAmount FROM @ODOSTable WHERE 1=1 GROUP BY BranchId, BranchName ; UPDATE ta SET ta.NoOfMember=(SELECT count(1) FROM GroupLoanMemberDetail WITH(nolock) WHERE isnull(DropOutDate,'01/01/1900')!='01/01/1900' AND MemberJoinDate0 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD30No=tb.OD30No, ta.OD30Amount=tb.OD30Amount, ta.OD30Outstanding=tb.OD30Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD30No, SUM(a.ODAmount)AS OD30Amount, SUM(a.BalanceAmount)AS OD30Outstanding FROM @ODOSTable a WHERE a.NoOfDays>0 AND a.NoOfDays<31 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD60No=tb.OD60No, ta.OD60Amount=tb.OD60Amount, ta.OD60Outstanding=tb.OD60Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD60No, SUM(a.ODAmount)AS OD60Amount, SUM(a.BalanceAmount)AS OD60Outstanding FROM @ODOSTable a WHERE a.NoOfDays>30 AND a.NoOfDays<61 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD90No=tb.OD90No, ta.OD90Amount=tb.OD90Amount, ta.OD90Outstanding=tb.OD90Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD90No, SUM(a.ODAmount)AS OD90Amount, SUM(a.BalanceAmount)AS OD90Outstanding FROM @ODOSTable a WHERE a.NoOfDays>60 AND a.NoOfDays<91 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD180No=tb.OD180No, ta.OD180Amount=tb.OD180Amount, ta.OD180Outstanding=tb.OD180Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD180No, SUM(a.ODAmount)AS OD180Amount, SUM(a.BalanceAmount)AS OD180Outstanding FROM @ODOSTable a WHERE a.NoOfDays>90 AND a.NoOfDays<181 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD181No=tb.OD181No, ta.OD181Amount=tb.OD181Amount, ta.OD181Outstanding=tb.OD181Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD181No, SUM(a.ODAmount)AS OD181Amount, SUM(a.BalanceAmount)AS OD181Outstanding FROM @ODOSTable a WHERE a.NoOfDays>180 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; DELETE FROM DashBoardGroupLoanHeadOfficeSummaryReport ; INSERT INTO DashBoardGroupLoanHeadOfficeSummaryReport ( TillDate, EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding ) SELECT @TillDate AS TillDate, GETDATE() AS EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding FROM @FTable WHERE OutstandingAmount>0 ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 IndividualLoan_IndvHeadOfficeReport.UpdateHeadOfficerReport() TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 03:09:15 PM PageName: IndividualLoan_IndvHeadOfficeReport String str: String sql: DECLARE @TillDate DATE; SET @TillDate='10/14/2025 12:00:00 AM'; DECLARE @FTable TABLE ( SrNo INT, BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), NoOfOfficer INT, NoOfCenter INT, NoOfMember INT, NoOfActiveLoan INT, OutstandingAmount DECIMAL(18,2), NoOfTotalLoan INT, TotalDisbursed DECIMAL(18,2), ProcessingFee DECIMAL(18,2), SecurityFee DECIMAL(18,2), InsuranceFee DECIMAL(18,2), OtherFee DECIMAL(18,2), ServiceTax DECIMAL(18,2), TotalFee DECIMAL(18,2), ODNo INT, ODAmount DECIMAL(18,2), ODOutstanding DECIMAL(18,2), OD30No INT, OD30Amount DECIMAL(18,2), OD30Outstanding DECIMAL(18,2), OD60No INT, OD60Amount DECIMAL(18,2), OD60Outstanding DECIMAL(18,2), OD90No INT, OD90Amount DECIMAL(18,2), OD90Outstanding DECIMAL(18,2), OD180No INT, OD180Amount DECIMAL(18,2), OD180Outstanding DECIMAL(18,2), OD181No INT, OD181Amount DECIMAL(18,2), OD181Outstanding DECIMAL(18,2) ); DECLARE @ODOSTable TABLE ( BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), LoanId VARCHAR(50), NoOfDays INT, ODAmount DECIMAL(18,2), BalanceAmount DECIMAL(18,2) ); INSERT INTO @ODOSTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, LoanId, NoOfDays, ODAmount, BalanceAmount ) SELECT a.BranchId, a.BranchName, a.LoanOfficerId, a.LoanOfficerName, a.LoanId, c.NoOfDays, c.ODAmount, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalanceAmount FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, SUM(Prin)AS PaidPrincipal FROM GroupLoanLedger WITH(nolock) WHERE PDatedateadd(day,-1,@TillDate) GROUP BY LoanId )c ON a.LoanId=c.LoanId WHERE a.DisburseDate<@TillDate AND a.LoanAmount-isnull(b.PaidPrincipal,0)>0 ; INSERT INTO @FTable ( BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfActiveLoan, OutstandingAmount ) SELECT BranchId, BranchName, Count(DISTINCT LoanOfficerId)AS NoOfOfficer, count(DISTINCT CenterId)AS NoOfCenter, count(DISTINCT LoanId)AS NoOfActiveLoan, SUM(BalanceAmount)AS OutstandingAmount FROM @ODOSTable WHERE 1=1 GROUP BY BranchId, BranchName ; UPDATE ta SET ta.NoOfMember=(SELECT count(1) FROM GroupLoanMemberDetail WITH(nolock) WHERE isnull(DropOutDate,'01/01/1900')!='01/01/1900' AND MemberJoinDate0 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD30No=tb.OD30No, ta.OD30Amount=tb.OD30Amount, ta.OD30Outstanding=tb.OD30Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD30No, SUM(a.ODAmount)AS OD30Amount, SUM(a.BalanceAmount)AS OD30Outstanding FROM @ODOSTable a WHERE a.NoOfDays>0 AND a.NoOfDays<31 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD60No=tb.OD60No, ta.OD60Amount=tb.OD60Amount, ta.OD60Outstanding=tb.OD60Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD60No, SUM(a.ODAmount)AS OD60Amount, SUM(a.BalanceAmount)AS OD60Outstanding FROM @ODOSTable a WHERE a.NoOfDays>30 AND a.NoOfDays<61 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD90No=tb.OD90No, ta.OD90Amount=tb.OD90Amount, ta.OD90Outstanding=tb.OD90Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD90No, SUM(a.ODAmount)AS OD90Amount, SUM(a.BalanceAmount)AS OD90Outstanding FROM @ODOSTable a WHERE a.NoOfDays>60 AND a.NoOfDays<91 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD180No=tb.OD180No, ta.OD180Amount=tb.OD180Amount, ta.OD180Outstanding=tb.OD180Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD180No, SUM(a.ODAmount)AS OD180Amount, SUM(a.BalanceAmount)AS OD180Outstanding FROM @ODOSTable a WHERE a.NoOfDays>90 AND a.NoOfDays<181 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD181No=tb.OD181No, ta.OD181Amount=tb.OD181Amount, ta.OD181Outstanding=tb.OD181Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD181No, SUM(a.ODAmount)AS OD181Amount, SUM(a.BalanceAmount)AS OD181Outstanding FROM @ODOSTable a WHERE a.NoOfDays>180 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; DELETE FROM DashBoardGroupLoanHeadOfficeSummaryReport ; INSERT INTO DashBoardGroupLoanHeadOfficeSummaryReport ( TillDate, EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding ) SELECT @TillDate AS TillDate, GETDATE() AS EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding FROM @FTable WHERE OutstandingAmount>0 ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 IndividualLoan_IndvHeadOfficeReport.UpdateHeadOfficerReport() TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 03:10:26 PM PageName: IndividualLoan_IndvBranchOfficeReport String str: String sql: DECLARE @TillDate DATE, @BranchId VARCHAR(20); SET @TillDate='11/23/2025 12:00:00 AM'; SET @BranchId='100' ; DECLARE @FTable TABLE ( SrNo INT, BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), NoOfOfficer INT, NoOfCenter INT, NoOfMember INT, NoOfActiveLoan INT, OutstandingAmount DECIMAL(18,2), NoOfTotalLoan INT, TotalDisbursed DECIMAL(18,2), ProcessingFee DECIMAL(18,2), SecurityFee DECIMAL(18,2), InsuranceFee DECIMAL(18,2), OtherFee DECIMAL(18,2), ServiceTax DECIMAL(18,2), TotalFee DECIMAL(18,2), ODNo INT, ODAmount DECIMAL(18,2), ODOutstanding DECIMAL(18,2), OD30No INT, OD30Amount DECIMAL(18,2), OD30Outstanding DECIMAL(18,2), OD60No INT, OD60Amount DECIMAL(18,2), OD60Outstanding DECIMAL(18,2), OD90No INT, OD90Amount DECIMAL(18,2), OD90Outstanding DECIMAL(18,2), OD180No INT, OD180Amount DECIMAL(18,2), OD180Outstanding DECIMAL(18,2), OD181No INT, OD181Amount DECIMAL(18,2), OD181Outstanding DECIMAL(18,2) ); DECLARE @ODOSTable TABLE ( BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), LoanId VARCHAR(50), NoOfDays INT, ODAmount DECIMAL(18,2), BalanceAmount DECIMAL(18,2) ); INSERT INTO @ODOSTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, LoanId, NoOfDays, ODAmount, BalanceAmount ) SELECT a.BranchId, a.BranchName, a.LoanOfficerId, a.LoanOfficerName, a.LoanId, c.NoOfDays, c.ODAmount, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalanceAmount FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, SUM(Prin)AS PaidPrincipal FROM GroupLoanLedger WITH(nolock) WHERE PDatedateadd(day,-1,@TillDate) GROUP BY LoanId )c ON a.LoanId=c.LoanId WHERE a.BranchId=@BranchId AND a.DisburseDate<@TillDate AND a.LoanAmount-isnull(b.PaidPrincipal,0)>0 ; INSERT INTO @FTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, NoOfCenter, NoOfActiveLoan, OutstandingAmount ) SELECT BranchId, BranchName, LoanOfficerId, LoanOfficerName, count(DISTINCT CenterId)AS NoOfCenter, count(DISTINCT LoanId)AS NoOfActiveLoan, SUM(BalanceAmount)AS OutstandingAmount FROM @ODOSTable WHERE 1=1 GROUP BY BranchId, BranchName, LoanOfficerId, LoanOfficerName ; UPDATE ta SET ta.NoOfMember=(SELECT count(1) FROM GroupLoanMemberDetail WITH(nolock) WHERE isnull(DropOutDate,'01/01/1900')!='01/01/1900' AND MemberJoinDate0 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD30No=tb.OD30No, ta.OD30Amount=tb.OD30Amount, ta.OD30Outstanding=tb.OD30Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD30No, SUM(a.ODAmount)AS OD30Amount, SUM(a.BalanceAmount)AS OD30Outstanding FROM @ODOSTable a WHERE a.NoOfDays>0 AND a.NoOfDays<31 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD60No=tb.OD60No, ta.OD60Amount=tb.OD60Amount, ta.OD60Outstanding=tb.OD60Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD60No, SUM(a.ODAmount)AS OD60Amount, SUM(a.BalanceAmount)AS OD60Outstanding FROM @ODOSTable a WHERE a.NoOfDays>30 AND a.NoOfDays<61 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD90No=tb.OD90No, ta.OD90Amount=tb.OD90Amount, ta.OD90Outstanding=tb.OD90Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD90No, SUM(a.ODAmount)AS OD90Amount, SUM(a.BalanceAmount)AS OD90Outstanding FROM @ODOSTable a WHERE a.NoOfDays>60 AND a.NoOfDays<91 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD180No=tb.OD180No, ta.OD180Amount=tb.OD180Amount, ta.OD180Outstanding=tb.OD180Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD180No, SUM(a.ODAmount)AS OD180Amount, SUM(a.BalanceAmount)AS OD180Outstanding FROM @ODOSTable a WHERE a.NoOfDays>90 AND a.NoOfDays<181 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD181No=tb.OD181No, ta.OD181Amount=tb.OD181Amount, ta.OD181Outstanding=tb.OD181Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD181No, SUM(a.ODAmount)AS OD181Amount, SUM(a.BalanceAmount)AS OD181Outstanding FROM @ODOSTable a WHERE a.NoOfDays>180 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; DELETE FROM DashBoardGroupLoanBranchOfficeSummaryReport WHERE BranchId=@BranchId ; INSERT INTO DashBoardGroupLoanBranchOfficeSummaryReport ( BranchId, BranchName, TillDate, EntryTime, LoanOfficerId, LoanOfficerName, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding ) SELECT BranchId, BranchName, @TillDate AS TillDate, GETDATE() AS EntryTime, LoanOfficerId, LoanOfficerName, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding FROM @FTable WHERE OutstandingAmount>0 ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 IndividualLoan_IndvBranchOfficeReport.UpdateBranchOfficerReport() TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 03:10:35 PM PageName: IndividualLoan_IndvBranchOfficeReport String str: String sql: DECLARE @TillDate DATE, @BranchId VARCHAR(20); SET @TillDate='11/24/2025 12:00:00 AM'; SET @BranchId='100' ; DECLARE @FTable TABLE ( SrNo INT, BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), NoOfOfficer INT, NoOfCenter INT, NoOfMember INT, NoOfActiveLoan INT, OutstandingAmount DECIMAL(18,2), NoOfTotalLoan INT, TotalDisbursed DECIMAL(18,2), ProcessingFee DECIMAL(18,2), SecurityFee DECIMAL(18,2), InsuranceFee DECIMAL(18,2), OtherFee DECIMAL(18,2), ServiceTax DECIMAL(18,2), TotalFee DECIMAL(18,2), ODNo INT, ODAmount DECIMAL(18,2), ODOutstanding DECIMAL(18,2), OD30No INT, OD30Amount DECIMAL(18,2), OD30Outstanding DECIMAL(18,2), OD60No INT, OD60Amount DECIMAL(18,2), OD60Outstanding DECIMAL(18,2), OD90No INT, OD90Amount DECIMAL(18,2), OD90Outstanding DECIMAL(18,2), OD180No INT, OD180Amount DECIMAL(18,2), OD180Outstanding DECIMAL(18,2), OD181No INT, OD181Amount DECIMAL(18,2), OD181Outstanding DECIMAL(18,2) ); DECLARE @ODOSTable TABLE ( BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), LoanId VARCHAR(50), NoOfDays INT, ODAmount DECIMAL(18,2), BalanceAmount DECIMAL(18,2) ); INSERT INTO @ODOSTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, LoanId, NoOfDays, ODAmount, BalanceAmount ) SELECT a.BranchId, a.BranchName, a.LoanOfficerId, a.LoanOfficerName, a.LoanId, c.NoOfDays, c.ODAmount, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalanceAmount FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, SUM(Prin)AS PaidPrincipal FROM GroupLoanLedger WITH(nolock) WHERE PDatedateadd(day,-1,@TillDate) GROUP BY LoanId )c ON a.LoanId=c.LoanId WHERE a.BranchId=@BranchId AND a.DisburseDate<@TillDate AND a.LoanAmount-isnull(b.PaidPrincipal,0)>0 ; INSERT INTO @FTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, NoOfCenter, NoOfActiveLoan, OutstandingAmount ) SELECT BranchId, BranchName, LoanOfficerId, LoanOfficerName, count(DISTINCT CenterId)AS NoOfCenter, count(DISTINCT LoanId)AS NoOfActiveLoan, SUM(BalanceAmount)AS OutstandingAmount FROM @ODOSTable WHERE 1=1 GROUP BY BranchId, BranchName, LoanOfficerId, LoanOfficerName ; UPDATE ta SET ta.NoOfMember=(SELECT count(1) FROM GroupLoanMemberDetail WITH(nolock) WHERE isnull(DropOutDate,'01/01/1900')!='01/01/1900' AND MemberJoinDate0 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD30No=tb.OD30No, ta.OD30Amount=tb.OD30Amount, ta.OD30Outstanding=tb.OD30Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD30No, SUM(a.ODAmount)AS OD30Amount, SUM(a.BalanceAmount)AS OD30Outstanding FROM @ODOSTable a WHERE a.NoOfDays>0 AND a.NoOfDays<31 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD60No=tb.OD60No, ta.OD60Amount=tb.OD60Amount, ta.OD60Outstanding=tb.OD60Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD60No, SUM(a.ODAmount)AS OD60Amount, SUM(a.BalanceAmount)AS OD60Outstanding FROM @ODOSTable a WHERE a.NoOfDays>30 AND a.NoOfDays<61 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD90No=tb.OD90No, ta.OD90Amount=tb.OD90Amount, ta.OD90Outstanding=tb.OD90Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD90No, SUM(a.ODAmount)AS OD90Amount, SUM(a.BalanceAmount)AS OD90Outstanding FROM @ODOSTable a WHERE a.NoOfDays>60 AND a.NoOfDays<91 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD180No=tb.OD180No, ta.OD180Amount=tb.OD180Amount, ta.OD180Outstanding=tb.OD180Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD180No, SUM(a.ODAmount)AS OD180Amount, SUM(a.BalanceAmount)AS OD180Outstanding FROM @ODOSTable a WHERE a.NoOfDays>90 AND a.NoOfDays<181 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD181No=tb.OD181No, ta.OD181Amount=tb.OD181Amount, ta.OD181Outstanding=tb.OD181Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD181No, SUM(a.ODAmount)AS OD181Amount, SUM(a.BalanceAmount)AS OD181Outstanding FROM @ODOSTable a WHERE a.NoOfDays>180 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; DELETE FROM DashBoardGroupLoanBranchOfficeSummaryReport WHERE BranchId=@BranchId ; INSERT INTO DashBoardGroupLoanBranchOfficeSummaryReport ( BranchId, BranchName, TillDate, EntryTime, LoanOfficerId, LoanOfficerName, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding ) SELECT BranchId, BranchName, @TillDate AS TillDate, GETDATE() AS EntryTime, LoanOfficerId, LoanOfficerName, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding FROM @FTable WHERE OutstandingAmount>0 ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 IndividualLoan_IndvBranchOfficeReport.UpdateBranchOfficerReport() TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 03:10:47 PM PageName: IndividualLoan_IndvBranchOfficeReport String str: String sql: DECLARE @TillDate DATE, @BranchId VARCHAR(20); SET @TillDate='11/23/2025 12:00:00 AM'; SET @BranchId='100' ; DECLARE @FTable TABLE ( SrNo INT, BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), NoOfOfficer INT, NoOfCenter INT, NoOfMember INT, NoOfActiveLoan INT, OutstandingAmount DECIMAL(18,2), NoOfTotalLoan INT, TotalDisbursed DECIMAL(18,2), ProcessingFee DECIMAL(18,2), SecurityFee DECIMAL(18,2), InsuranceFee DECIMAL(18,2), OtherFee DECIMAL(18,2), ServiceTax DECIMAL(18,2), TotalFee DECIMAL(18,2), ODNo INT, ODAmount DECIMAL(18,2), ODOutstanding DECIMAL(18,2), OD30No INT, OD30Amount DECIMAL(18,2), OD30Outstanding DECIMAL(18,2), OD60No INT, OD60Amount DECIMAL(18,2), OD60Outstanding DECIMAL(18,2), OD90No INT, OD90Amount DECIMAL(18,2), OD90Outstanding DECIMAL(18,2), OD180No INT, OD180Amount DECIMAL(18,2), OD180Outstanding DECIMAL(18,2), OD181No INT, OD181Amount DECIMAL(18,2), OD181Outstanding DECIMAL(18,2) ); DECLARE @ODOSTable TABLE ( BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), LoanId VARCHAR(50), NoOfDays INT, ODAmount DECIMAL(18,2), BalanceAmount DECIMAL(18,2) ); INSERT INTO @ODOSTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, LoanId, NoOfDays, ODAmount, BalanceAmount ) SELECT a.BranchId, a.BranchName, a.LoanOfficerId, a.LoanOfficerName, a.LoanId, c.NoOfDays, c.ODAmount, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalanceAmount FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, SUM(Prin)AS PaidPrincipal FROM GroupLoanLedger WITH(nolock) WHERE PDatedateadd(day,-1,@TillDate) GROUP BY LoanId )c ON a.LoanId=c.LoanId WHERE a.BranchId=@BranchId AND a.DisburseDate<@TillDate AND a.LoanAmount-isnull(b.PaidPrincipal,0)>0 ; INSERT INTO @FTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, NoOfCenter, NoOfActiveLoan, OutstandingAmount ) SELECT BranchId, BranchName, LoanOfficerId, LoanOfficerName, count(DISTINCT CenterId)AS NoOfCenter, count(DISTINCT LoanId)AS NoOfActiveLoan, SUM(BalanceAmount)AS OutstandingAmount FROM @ODOSTable WHERE 1=1 GROUP BY BranchId, BranchName, LoanOfficerId, LoanOfficerName ; UPDATE ta SET ta.NoOfMember=(SELECT count(1) FROM GroupLoanMemberDetail WITH(nolock) WHERE isnull(DropOutDate,'01/01/1900')!='01/01/1900' AND MemberJoinDate0 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD30No=tb.OD30No, ta.OD30Amount=tb.OD30Amount, ta.OD30Outstanding=tb.OD30Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD30No, SUM(a.ODAmount)AS OD30Amount, SUM(a.BalanceAmount)AS OD30Outstanding FROM @ODOSTable a WHERE a.NoOfDays>0 AND a.NoOfDays<31 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD60No=tb.OD60No, ta.OD60Amount=tb.OD60Amount, ta.OD60Outstanding=tb.OD60Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD60No, SUM(a.ODAmount)AS OD60Amount, SUM(a.BalanceAmount)AS OD60Outstanding FROM @ODOSTable a WHERE a.NoOfDays>30 AND a.NoOfDays<61 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD90No=tb.OD90No, ta.OD90Amount=tb.OD90Amount, ta.OD90Outstanding=tb.OD90Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD90No, SUM(a.ODAmount)AS OD90Amount, SUM(a.BalanceAmount)AS OD90Outstanding FROM @ODOSTable a WHERE a.NoOfDays>60 AND a.NoOfDays<91 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD180No=tb.OD180No, ta.OD180Amount=tb.OD180Amount, ta.OD180Outstanding=tb.OD180Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD180No, SUM(a.ODAmount)AS OD180Amount, SUM(a.BalanceAmount)AS OD180Outstanding FROM @ODOSTable a WHERE a.NoOfDays>90 AND a.NoOfDays<181 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD181No=tb.OD181No, ta.OD181Amount=tb.OD181Amount, ta.OD181Outstanding=tb.OD181Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD181No, SUM(a.ODAmount)AS OD181Amount, SUM(a.BalanceAmount)AS OD181Outstanding FROM @ODOSTable a WHERE a.NoOfDays>180 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; DELETE FROM DashBoardGroupLoanBranchOfficeSummaryReport WHERE BranchId=@BranchId ; INSERT INTO DashBoardGroupLoanBranchOfficeSummaryReport ( BranchId, BranchName, TillDate, EntryTime, LoanOfficerId, LoanOfficerName, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding ) SELECT BranchId, BranchName, @TillDate AS TillDate, GETDATE() AS EntryTime, LoanOfficerId, LoanOfficerName, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding FROM @FTable WHERE OutstandingAmount>0 ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 IndividualLoan_IndvBranchOfficeReport.UpdateBranchOfficerReport() TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 03:12:40 PM PageName: IndividualLoan_IndvBranchOfficeReport String str: String sql: DECLARE @TillDate DATE, @BranchId VARCHAR(20); SET @TillDate='11/23/2025 12:00:00 AM'; SET @BranchId='100' ; DECLARE @FTable TABLE ( SrNo INT, BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), NoOfOfficer INT, NoOfCenter INT, NoOfMember INT, NoOfActiveLoan INT, OutstandingAmount DECIMAL(18,2), NoOfTotalLoan INT, TotalDisbursed DECIMAL(18,2), ProcessingFee DECIMAL(18,2), SecurityFee DECIMAL(18,2), InsuranceFee DECIMAL(18,2), OtherFee DECIMAL(18,2), ServiceTax DECIMAL(18,2), TotalFee DECIMAL(18,2), ODNo INT, ODAmount DECIMAL(18,2), ODOutstanding DECIMAL(18,2), OD30No INT, OD30Amount DECIMAL(18,2), OD30Outstanding DECIMAL(18,2), OD60No INT, OD60Amount DECIMAL(18,2), OD60Outstanding DECIMAL(18,2), OD90No INT, OD90Amount DECIMAL(18,2), OD90Outstanding DECIMAL(18,2), OD180No INT, OD180Amount DECIMAL(18,2), OD180Outstanding DECIMAL(18,2), OD181No INT, OD181Amount DECIMAL(18,2), OD181Outstanding DECIMAL(18,2) ); DECLARE @ODOSTable TABLE ( BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), LoanId VARCHAR(50), NoOfDays INT, ODAmount DECIMAL(18,2), BalanceAmount DECIMAL(18,2) ); INSERT INTO @ODOSTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, LoanId, NoOfDays, ODAmount, BalanceAmount ) SELECT a.BranchId, a.BranchName, a.LoanOfficerId, a.LoanOfficerName, a.LoanId, c.NoOfDays, c.ODAmount, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalanceAmount FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, SUM(Prin)AS PaidPrincipal FROM GroupLoanLedger WITH(nolock) WHERE PDatedateadd(day,-1,@TillDate) GROUP BY LoanId )c ON a.LoanId=c.LoanId WHERE a.BranchId=@BranchId AND a.DisburseDate<@TillDate AND a.LoanAmount-isnull(b.PaidPrincipal,0)>0 ; INSERT INTO @FTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, NoOfCenter, NoOfActiveLoan, OutstandingAmount ) SELECT BranchId, BranchName, LoanOfficerId, LoanOfficerName, count(DISTINCT CenterId)AS NoOfCenter, count(DISTINCT LoanId)AS NoOfActiveLoan, SUM(BalanceAmount)AS OutstandingAmount FROM @ODOSTable WHERE 1=1 GROUP BY BranchId, BranchName, LoanOfficerId, LoanOfficerName ; UPDATE ta SET ta.NoOfMember=(SELECT count(1) FROM GroupLoanMemberDetail WITH(nolock) WHERE isnull(DropOutDate,'01/01/1900')!='01/01/1900' AND MemberJoinDate0 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD30No=tb.OD30No, ta.OD30Amount=tb.OD30Amount, ta.OD30Outstanding=tb.OD30Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD30No, SUM(a.ODAmount)AS OD30Amount, SUM(a.BalanceAmount)AS OD30Outstanding FROM @ODOSTable a WHERE a.NoOfDays>0 AND a.NoOfDays<31 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD60No=tb.OD60No, ta.OD60Amount=tb.OD60Amount, ta.OD60Outstanding=tb.OD60Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD60No, SUM(a.ODAmount)AS OD60Amount, SUM(a.BalanceAmount)AS OD60Outstanding FROM @ODOSTable a WHERE a.NoOfDays>30 AND a.NoOfDays<61 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD90No=tb.OD90No, ta.OD90Amount=tb.OD90Amount, ta.OD90Outstanding=tb.OD90Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD90No, SUM(a.ODAmount)AS OD90Amount, SUM(a.BalanceAmount)AS OD90Outstanding FROM @ODOSTable a WHERE a.NoOfDays>60 AND a.NoOfDays<91 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD180No=tb.OD180No, ta.OD180Amount=tb.OD180Amount, ta.OD180Outstanding=tb.OD180Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD180No, SUM(a.ODAmount)AS OD180Amount, SUM(a.BalanceAmount)AS OD180Outstanding FROM @ODOSTable a WHERE a.NoOfDays>90 AND a.NoOfDays<181 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD181No=tb.OD181No, ta.OD181Amount=tb.OD181Amount, ta.OD181Outstanding=tb.OD181Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD181No, SUM(a.ODAmount)AS OD181Amount, SUM(a.BalanceAmount)AS OD181Outstanding FROM @ODOSTable a WHERE a.NoOfDays>180 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; DELETE FROM DashBoardGroupLoanBranchOfficeSummaryReport WHERE BranchId=@BranchId ; INSERT INTO DashBoardGroupLoanBranchOfficeSummaryReport ( BranchId, BranchName, TillDate, EntryTime, LoanOfficerId, LoanOfficerName, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding ) SELECT BranchId, BranchName, @TillDate AS TillDate, GETDATE() AS EntryTime, LoanOfficerId, LoanOfficerName, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding FROM @FTable WHERE OutstandingAmount>0 ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 IndividualLoan_IndvBranchOfficeReport.UpdateBranchOfficerReport() TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 03:12:43 PM PageName: IndividualLoan_IndvBranchOfficeReport String str: String sql: DECLARE @TillDate DATE, @BranchId VARCHAR(20); SET @TillDate='11/23/2025 12:00:00 AM'; SET @BranchId='100' ; DECLARE @FTable TABLE ( SrNo INT, BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), NoOfOfficer INT, NoOfCenter INT, NoOfMember INT, NoOfActiveLoan INT, OutstandingAmount DECIMAL(18,2), NoOfTotalLoan INT, TotalDisbursed DECIMAL(18,2), ProcessingFee DECIMAL(18,2), SecurityFee DECIMAL(18,2), InsuranceFee DECIMAL(18,2), OtherFee DECIMAL(18,2), ServiceTax DECIMAL(18,2), TotalFee DECIMAL(18,2), ODNo INT, ODAmount DECIMAL(18,2), ODOutstanding DECIMAL(18,2), OD30No INT, OD30Amount DECIMAL(18,2), OD30Outstanding DECIMAL(18,2), OD60No INT, OD60Amount DECIMAL(18,2), OD60Outstanding DECIMAL(18,2), OD90No INT, OD90Amount DECIMAL(18,2), OD90Outstanding DECIMAL(18,2), OD180No INT, OD180Amount DECIMAL(18,2), OD180Outstanding DECIMAL(18,2), OD181No INT, OD181Amount DECIMAL(18,2), OD181Outstanding DECIMAL(18,2) ); DECLARE @ODOSTable TABLE ( BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), LoanId VARCHAR(50), NoOfDays INT, ODAmount DECIMAL(18,2), BalanceAmount DECIMAL(18,2) ); INSERT INTO @ODOSTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, LoanId, NoOfDays, ODAmount, BalanceAmount ) SELECT a.BranchId, a.BranchName, a.LoanOfficerId, a.LoanOfficerName, a.LoanId, c.NoOfDays, c.ODAmount, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalanceAmount FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, SUM(Prin)AS PaidPrincipal FROM GroupLoanLedger WITH(nolock) WHERE PDatedateadd(day,-1,@TillDate) GROUP BY LoanId )c ON a.LoanId=c.LoanId WHERE a.BranchId=@BranchId AND a.DisburseDate<@TillDate AND a.LoanAmount-isnull(b.PaidPrincipal,0)>0 ; INSERT INTO @FTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, NoOfCenter, NoOfActiveLoan, OutstandingAmount ) SELECT BranchId, BranchName, LoanOfficerId, LoanOfficerName, count(DISTINCT CenterId)AS NoOfCenter, count(DISTINCT LoanId)AS NoOfActiveLoan, SUM(BalanceAmount)AS OutstandingAmount FROM @ODOSTable WHERE 1=1 GROUP BY BranchId, BranchName, LoanOfficerId, LoanOfficerName ; UPDATE ta SET ta.NoOfMember=(SELECT count(1) FROM GroupLoanMemberDetail WITH(nolock) WHERE isnull(DropOutDate,'01/01/1900')!='01/01/1900' AND MemberJoinDate0 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD30No=tb.OD30No, ta.OD30Amount=tb.OD30Amount, ta.OD30Outstanding=tb.OD30Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD30No, SUM(a.ODAmount)AS OD30Amount, SUM(a.BalanceAmount)AS OD30Outstanding FROM @ODOSTable a WHERE a.NoOfDays>0 AND a.NoOfDays<31 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD60No=tb.OD60No, ta.OD60Amount=tb.OD60Amount, ta.OD60Outstanding=tb.OD60Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD60No, SUM(a.ODAmount)AS OD60Amount, SUM(a.BalanceAmount)AS OD60Outstanding FROM @ODOSTable a WHERE a.NoOfDays>30 AND a.NoOfDays<61 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD90No=tb.OD90No, ta.OD90Amount=tb.OD90Amount, ta.OD90Outstanding=tb.OD90Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD90No, SUM(a.ODAmount)AS OD90Amount, SUM(a.BalanceAmount)AS OD90Outstanding FROM @ODOSTable a WHERE a.NoOfDays>60 AND a.NoOfDays<91 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD180No=tb.OD180No, ta.OD180Amount=tb.OD180Amount, ta.OD180Outstanding=tb.OD180Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD180No, SUM(a.ODAmount)AS OD180Amount, SUM(a.BalanceAmount)AS OD180Outstanding FROM @ODOSTable a WHERE a.NoOfDays>90 AND a.NoOfDays<181 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; UPDATE ta SET ta.OD181No=tb.OD181No, ta.OD181Amount=tb.OD181Amount, ta.OD181Outstanding=tb.OD181Outstanding FROM @FTable ta INNER JOIN ( SELECT a.LoanOfficerId, count(DISTINCT a.LoanId)AS OD181No, SUM(a.ODAmount)AS OD181Amount, SUM(a.BalanceAmount)AS OD181Outstanding FROM @ODOSTable a WHERE a.NoOfDays>180 GROUP BY a.LoanOfficerId )tb ON ta.LoanOfficerId=tb.LoanOfficerId ; DELETE FROM DashBoardGroupLoanBranchOfficeSummaryReport WHERE BranchId=@BranchId ; INSERT INTO DashBoardGroupLoanBranchOfficeSummaryReport ( BranchId, BranchName, TillDate, EntryTime, LoanOfficerId, LoanOfficerName, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding ) SELECT BranchId, BranchName, @TillDate AS TillDate, GETDATE() AS EntryTime, LoanOfficerId, LoanOfficerName, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding FROM @FTable WHERE OutstandingAmount>0 ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 IndividualLoan_IndvBranchOfficeReport.UpdateBranchOfficerReport() TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 03:21:31 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 03:21:31 PM PageName: IndividualLoan_IndvExtraPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l2ncb3ku StackTrace: at IndividualLoan_IndvExtraPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 03:21:42 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 03:21:42 PM PageName: IndividualLoan_IndvExtraPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l2ncb3ku StackTrace: at IndividualLoan_IndvExtraPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 03:31:39 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Paid' AND DDate<=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 03:31:39 PM PageName: IndividualLoan_IndvODPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Paid' AND DDate<=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_0e3qb2yy StackTrace: at IndividualLoan_IndvODPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 03:37:03 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Paid' AND DDate<=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 03:37:03 PM PageName: IndividualLoan_IndvODPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Paid' AND DDate<=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_0e3qb2yy StackTrace: at IndividualLoan_IndvODPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 03:50:50 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Paid' AND DDate<=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='101' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 03:50:50 PM PageName: IndividualLoan_IndvODPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Paid' AND DDate<=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='101' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_0e3qb2yy StackTrace: at IndividualLoan_IndvODPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 04:06:58 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Paid' AND DDate<=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='101' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 04:06:58 PM PageName: IndividualLoan_IndvODPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Paid' AND DDate<=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='101' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_0e3qb2yy StackTrace: at IndividualLoan_IndvODPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 04:07:04 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Paid' AND DDate<=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='101' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 04:07:04 PM PageName: IndividualLoan_IndvODPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Paid' AND DDate<=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='101' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_0e3qb2yy StackTrace: at IndividualLoan_IndvODPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 04:08:41 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Paid' AND DDate<=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00150' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 04:08:41 PM PageName: IndividualLoan_IndvODPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Paid' AND DDate<=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00150' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_0e3qb2yy StackTrace: at IndividualLoan_IndvODPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 04:24:32 PM PageName: DataTableResult String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=dateadd(day,-datepart(day,@FDate)+1,@FDate); DECLARE @TTable TABLE ( LoanId VARCHAR(50), Year INT, Month INT, Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Year, Month, Prin, Intt, Total ) SELECT b.LoanId, Datepart(year,a.DDate)AS Year, Datepart(month, a.DDate)AS Month, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, Datepart(year,a.DDate), Datepart(month, a.DDate); UPDATE a SET a.Dated=rtrim(convert(CHAR,a.Month))+'/01/'+rtrim(convert(CHAR,a.Year)) FROM @TTable a; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId,(SELECT SUM(Total)AS Total FROM @TTable WHERE Dateddateadd(month,24,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='100' AND ld.LoanOfficerId='EMP00146' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), NoOfOfficer VARCHAR(20), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'No Of Officer', 'No Of Center', 'No Of Loan', 'before '+datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,1,@ODate))+'-'+datename(year,dateadd(month,1,@ODate)), datename(month,dateadd(month,2,@ODate))+'-'+datename(year,dateadd(month,2,@ODate)), datename(month,dateadd(month,3,@ODate))+'-'+datename(year,dateadd(month,3,@ODate)), datename(month,dateadd(month,4,@ODate))+'-'+datename(year,dateadd(month,4,@ODate)), datename(month,dateadd(month,5,@ODate))+'-'+datename(year,dateadd(month,5,@ODate)), datename(month,dateadd(month,6,@ODate))+'-'+datename(year,dateadd(month,6,@ODate)), datename(month,dateadd(month,7,@ODate))+'-'+datename(year,dateadd(month,7,@ODate)), datename(month,dateadd(month,8,@ODate))+'-'+datename(year,dateadd(month,8,@ODate)), datename(month,dateadd(month,9,@ODate))+'-'+datename(year,dateadd(month,9,@ODate)), datename(month,dateadd(month,10,@ODate))+'-'+datename(year,dateadd(month,10,@ODate)), datename(month,dateadd(month,11,@ODate))+'-'+datename(year,dateadd(month,11,@ODate)), datename(month,dateadd(month,12,@ODate))+'-'+datename(year,dateadd(month,12,@ODate)), datename(month,dateadd(month,13,@ODate))+'-'+datename(year,dateadd(month,13,@ODate)), datename(month,dateadd(month,14,@ODate))+'-'+datename(year,dateadd(month,14,@ODate)), datename(month,dateadd(month,15,@ODate))+'-'+datename(year,dateadd(month,15,@ODate)), datename(month,dateadd(month,16,@ODate))+'-'+datename(year,dateadd(month,16,@ODate)), datename(month,dateadd(month,17,@ODate))+'-'+datename(year,dateadd(month,17,@ODate)), datename(month,dateadd(month,18,@ODate))+'-'+datename(year,dateadd(month,18,@ODate)), datename(month,dateadd(month,19,@ODate))+'-'+datename(year,dateadd(month,19,@ODate)), datename(month,dateadd(month,20,@ODate))+'-'+datename(year,dateadd(month,20,@ODate)), datename(month,dateadd(month,21,@ODate))+'-'+datename(year,dateadd(month,21,@ODate)), datename(month,dateadd(month,22,@ODate))+'-'+datename(year,dateadd(month,22,@ODate)), datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'after '+datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'Total' ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')' AS BranchName, Count(DISTINCT a.OfficerId)AS NoOfOfficer, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')' ORDER BY a.BranchName+' ('+a.BranchId+')' ; INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfOfficer,0)))AS NoOfOfficer, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.NoOfOfficer, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 04:24:32 PM PageName: IndividualLoan_IndvFutureDemandReport String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=dateadd(day,-datepart(day,@FDate)+1,@FDate); DECLARE @TTable TABLE ( LoanId VARCHAR(50), Year INT, Month INT, Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Year, Month, Prin, Intt, Total ) SELECT b.LoanId, Datepart(year,a.DDate)AS Year, Datepart(month, a.DDate)AS Month, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, Datepart(year,a.DDate), Datepart(month, a.DDate); UPDATE a SET a.Dated=rtrim(convert(CHAR,a.Month))+'/01/'+rtrim(convert(CHAR,a.Year)) FROM @TTable a; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId,(SELECT SUM(Total)AS Total FROM @TTable WHERE Dateddateadd(month,24,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='100' AND ld.LoanOfficerId='EMP00146' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), NoOfOfficer VARCHAR(20), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'No Of Officer', 'No Of Center', 'No Of Loan', 'before '+datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,1,@ODate))+'-'+datename(year,dateadd(month,1,@ODate)), datename(month,dateadd(month,2,@ODate))+'-'+datename(year,dateadd(month,2,@ODate)), datename(month,dateadd(month,3,@ODate))+'-'+datename(year,dateadd(month,3,@ODate)), datename(month,dateadd(month,4,@ODate))+'-'+datename(year,dateadd(month,4,@ODate)), datename(month,dateadd(month,5,@ODate))+'-'+datename(year,dateadd(month,5,@ODate)), datename(month,dateadd(month,6,@ODate))+'-'+datename(year,dateadd(month,6,@ODate)), datename(month,dateadd(month,7,@ODate))+'-'+datename(year,dateadd(month,7,@ODate)), datename(month,dateadd(month,8,@ODate))+'-'+datename(year,dateadd(month,8,@ODate)), datename(month,dateadd(month,9,@ODate))+'-'+datename(year,dateadd(month,9,@ODate)), datename(month,dateadd(month,10,@ODate))+'-'+datename(year,dateadd(month,10,@ODate)), datename(month,dateadd(month,11,@ODate))+'-'+datename(year,dateadd(month,11,@ODate)), datename(month,dateadd(month,12,@ODate))+'-'+datename(year,dateadd(month,12,@ODate)), datename(month,dateadd(month,13,@ODate))+'-'+datename(year,dateadd(month,13,@ODate)), datename(month,dateadd(month,14,@ODate))+'-'+datename(year,dateadd(month,14,@ODate)), datename(month,dateadd(month,15,@ODate))+'-'+datename(year,dateadd(month,15,@ODate)), datename(month,dateadd(month,16,@ODate))+'-'+datename(year,dateadd(month,16,@ODate)), datename(month,dateadd(month,17,@ODate))+'-'+datename(year,dateadd(month,17,@ODate)), datename(month,dateadd(month,18,@ODate))+'-'+datename(year,dateadd(month,18,@ODate)), datename(month,dateadd(month,19,@ODate))+'-'+datename(year,dateadd(month,19,@ODate)), datename(month,dateadd(month,20,@ODate))+'-'+datename(year,dateadd(month,20,@ODate)), datename(month,dateadd(month,21,@ODate))+'-'+datename(year,dateadd(month,21,@ODate)), datename(month,dateadd(month,22,@ODate))+'-'+datename(year,dateadd(month,22,@ODate)), datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'after '+datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'Total' ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')' AS BranchName, Count(DISTINCT a.OfficerId)AS NoOfOfficer, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')' ORDER BY a.BranchName+' ('+a.BranchId+')' ; INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfOfficer,0)))AS NoOfOfficer, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.NoOfOfficer, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l1hhjunr StackTrace: at IndividualLoan_IndvFutureDemandReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 04:26:43 PM PageName: DataTableResult String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=dateadd(day,-datepart(day,@FDate)+1,@FDate); DECLARE @TTable TABLE ( LoanId VARCHAR(50), Year INT, Month INT, Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Year, Month, Prin, Intt, Total ) SELECT b.LoanId, Datepart(year,a.DDate)AS Year, Datepart(month, a.DDate)AS Month, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, Datepart(year,a.DDate), Datepart(month, a.DDate); UPDATE a SET a.Dated=rtrim(convert(CHAR,a.Month))+'/01/'+rtrim(convert(CHAR,a.Year)) FROM @TTable a; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId,(SELECT SUM(Total)AS Total FROM @TTable WHERE Dateddateadd(month,24,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='100' AND ld.LoanOfficerId='EMP00146' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), NoOfOfficer VARCHAR(20), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'No Of Officer', 'No Of Center', 'No Of Loan', 'before '+datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,1,@ODate))+'-'+datename(year,dateadd(month,1,@ODate)), datename(month,dateadd(month,2,@ODate))+'-'+datename(year,dateadd(month,2,@ODate)), datename(month,dateadd(month,3,@ODate))+'-'+datename(year,dateadd(month,3,@ODate)), datename(month,dateadd(month,4,@ODate))+'-'+datename(year,dateadd(month,4,@ODate)), datename(month,dateadd(month,5,@ODate))+'-'+datename(year,dateadd(month,5,@ODate)), datename(month,dateadd(month,6,@ODate))+'-'+datename(year,dateadd(month,6,@ODate)), datename(month,dateadd(month,7,@ODate))+'-'+datename(year,dateadd(month,7,@ODate)), datename(month,dateadd(month,8,@ODate))+'-'+datename(year,dateadd(month,8,@ODate)), datename(month,dateadd(month,9,@ODate))+'-'+datename(year,dateadd(month,9,@ODate)), datename(month,dateadd(month,10,@ODate))+'-'+datename(year,dateadd(month,10,@ODate)), datename(month,dateadd(month,11,@ODate))+'-'+datename(year,dateadd(month,11,@ODate)), datename(month,dateadd(month,12,@ODate))+'-'+datename(year,dateadd(month,12,@ODate)), datename(month,dateadd(month,13,@ODate))+'-'+datename(year,dateadd(month,13,@ODate)), datename(month,dateadd(month,14,@ODate))+'-'+datename(year,dateadd(month,14,@ODate)), datename(month,dateadd(month,15,@ODate))+'-'+datename(year,dateadd(month,15,@ODate)), datename(month,dateadd(month,16,@ODate))+'-'+datename(year,dateadd(month,16,@ODate)), datename(month,dateadd(month,17,@ODate))+'-'+datename(year,dateadd(month,17,@ODate)), datename(month,dateadd(month,18,@ODate))+'-'+datename(year,dateadd(month,18,@ODate)), datename(month,dateadd(month,19,@ODate))+'-'+datename(year,dateadd(month,19,@ODate)), datename(month,dateadd(month,20,@ODate))+'-'+datename(year,dateadd(month,20,@ODate)), datename(month,dateadd(month,21,@ODate))+'-'+datename(year,dateadd(month,21,@ODate)), datename(month,dateadd(month,22,@ODate))+'-'+datename(year,dateadd(month,22,@ODate)), datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'after '+datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'Total' ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')' AS BranchName, Count(DISTINCT a.OfficerId)AS NoOfOfficer, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')' ORDER BY a.BranchName+' ('+a.BranchId+')' ; INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfOfficer,0)))AS NoOfOfficer, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.NoOfOfficer, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 04:26:43 PM PageName: IndividualLoan_IndvFutureDemandReport String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=dateadd(day,-datepart(day,@FDate)+1,@FDate); DECLARE @TTable TABLE ( LoanId VARCHAR(50), Year INT, Month INT, Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Year, Month, Prin, Intt, Total ) SELECT b.LoanId, Datepart(year,a.DDate)AS Year, Datepart(month, a.DDate)AS Month, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, Datepart(year,a.DDate), Datepart(month, a.DDate); UPDATE a SET a.Dated=rtrim(convert(CHAR,a.Month))+'/01/'+rtrim(convert(CHAR,a.Year)) FROM @TTable a; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId,(SELECT SUM(Total)AS Total FROM @TTable WHERE Dateddateadd(month,24,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='100' AND ld.LoanOfficerId='EMP00146' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), NoOfOfficer VARCHAR(20), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'No Of Officer', 'No Of Center', 'No Of Loan', 'before '+datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,1,@ODate))+'-'+datename(year,dateadd(month,1,@ODate)), datename(month,dateadd(month,2,@ODate))+'-'+datename(year,dateadd(month,2,@ODate)), datename(month,dateadd(month,3,@ODate))+'-'+datename(year,dateadd(month,3,@ODate)), datename(month,dateadd(month,4,@ODate))+'-'+datename(year,dateadd(month,4,@ODate)), datename(month,dateadd(month,5,@ODate))+'-'+datename(year,dateadd(month,5,@ODate)), datename(month,dateadd(month,6,@ODate))+'-'+datename(year,dateadd(month,6,@ODate)), datename(month,dateadd(month,7,@ODate))+'-'+datename(year,dateadd(month,7,@ODate)), datename(month,dateadd(month,8,@ODate))+'-'+datename(year,dateadd(month,8,@ODate)), datename(month,dateadd(month,9,@ODate))+'-'+datename(year,dateadd(month,9,@ODate)), datename(month,dateadd(month,10,@ODate))+'-'+datename(year,dateadd(month,10,@ODate)), datename(month,dateadd(month,11,@ODate))+'-'+datename(year,dateadd(month,11,@ODate)), datename(month,dateadd(month,12,@ODate))+'-'+datename(year,dateadd(month,12,@ODate)), datename(month,dateadd(month,13,@ODate))+'-'+datename(year,dateadd(month,13,@ODate)), datename(month,dateadd(month,14,@ODate))+'-'+datename(year,dateadd(month,14,@ODate)), datename(month,dateadd(month,15,@ODate))+'-'+datename(year,dateadd(month,15,@ODate)), datename(month,dateadd(month,16,@ODate))+'-'+datename(year,dateadd(month,16,@ODate)), datename(month,dateadd(month,17,@ODate))+'-'+datename(year,dateadd(month,17,@ODate)), datename(month,dateadd(month,18,@ODate))+'-'+datename(year,dateadd(month,18,@ODate)), datename(month,dateadd(month,19,@ODate))+'-'+datename(year,dateadd(month,19,@ODate)), datename(month,dateadd(month,20,@ODate))+'-'+datename(year,dateadd(month,20,@ODate)), datename(month,dateadd(month,21,@ODate))+'-'+datename(year,dateadd(month,21,@ODate)), datename(month,dateadd(month,22,@ODate))+'-'+datename(year,dateadd(month,22,@ODate)), datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'after '+datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'Total' ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')' AS BranchName, Count(DISTINCT a.OfficerId)AS NoOfOfficer, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')' ORDER BY a.BranchName+' ('+a.BranchId+')' ; INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfOfficer,0)))AS NoOfOfficer, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.NoOfOfficer, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l1hhjunr StackTrace: at IndividualLoan_IndvFutureDemandReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 04:27:02 PM PageName: DataTableResult String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=dateadd(day,-datepart(day,@FDate)+1,@FDate); DECLARE @TTable TABLE ( LoanId VARCHAR(50), Year INT, Month INT, Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Year, Month, Prin, Intt, Total ) SELECT b.LoanId, Datepart(year,a.DDate)AS Year, Datepart(month, a.DDate)AS Month, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, Datepart(year,a.DDate), Datepart(month, a.DDate); UPDATE a SET a.Dated=rtrim(convert(CHAR,a.Month))+'/01/'+rtrim(convert(CHAR,a.Year)) FROM @TTable a; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId,(SELECT SUM(Total)AS Total FROM @TTable WHERE Dateddateadd(month,24,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='100' AND ld.LoanOfficerId='EMP00146' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FFTable ( BranchName, OfficerId, OfficerName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'OfficerId', 'Officer Name', 'No Of Center', 'No Of Loan', 'before '+datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,1,@ODate))+'-'+datename(year,dateadd(month,1,@ODate)), datename(month,dateadd(month,2,@ODate))+'-'+datename(year,dateadd(month,2,@ODate)), datename(month,dateadd(month,3,@ODate))+'-'+datename(year,dateadd(month,3,@ODate)), datename(month,dateadd(month,4,@ODate))+'-'+datename(year,dateadd(month,4,@ODate)), datename(month,dateadd(month,5,@ODate))+'-'+datename(year,dateadd(month,5,@ODate)), datename(month,dateadd(month,6,@ODate))+'-'+datename(year,dateadd(month,6,@ODate)), datename(month,dateadd(month,7,@ODate))+'-'+datename(year,dateadd(month,7,@ODate)), datename(month,dateadd(month,8,@ODate))+'-'+datename(year,dateadd(month,8,@ODate)), datename(month,dateadd(month,9,@ODate))+'-'+datename(year,dateadd(month,9,@ODate)), datename(month,dateadd(month,10,@ODate))+'-'+datename(year,dateadd(month,10,@ODate)), datename(month,dateadd(month,11,@ODate))+'-'+datename(year,dateadd(month,11,@ODate)), datename(month,dateadd(month,12,@ODate))+'-'+datename(year,dateadd(month,12,@ODate)), datename(month,dateadd(month,13,@ODate))+'-'+datename(year,dateadd(month,13,@ODate)), datename(month,dateadd(month,14,@ODate))+'-'+datename(year,dateadd(month,14,@ODate)), datename(month,dateadd(month,15,@ODate))+'-'+datename(year,dateadd(month,15,@ODate)), datename(month,dateadd(month,16,@ODate))+'-'+datename(year,dateadd(month,16,@ODate)), datename(month,dateadd(month,17,@ODate))+'-'+datename(year,dateadd(month,17,@ODate)), datename(month,dateadd(month,18,@ODate))+'-'+datename(year,dateadd(month,18,@ODate)), datename(month,dateadd(month,19,@ODate))+'-'+datename(year,dateadd(month,19,@ODate)), datename(month,dateadd(month,20,@ODate))+'-'+datename(year,dateadd(month,20,@ODate)), datename(month,dateadd(month,21,@ODate))+'-'+datename(year,dateadd(month,21,@ODate)), datename(month,dateadd(month,22,@ODate))+'-'+datename(year,dateadd(month,22,@ODate)), datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'after '+datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'Total' ); INSERT INTO @FFTable ( BranchName, OfficerId, OfficerName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.OfficerId, a.OfficerName, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')', a.OfficerId, a.OfficerName ORDER BY a.BranchName+' ('+a.BranchId+')', a.OfficerName ; INSERT INTO @FFTable ( BranchName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.OfficerId, a.OfficerName, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 04:27:02 PM PageName: IndividualLoan_IndvFutureDemandReport String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=dateadd(day,-datepart(day,@FDate)+1,@FDate); DECLARE @TTable TABLE ( LoanId VARCHAR(50), Year INT, Month INT, Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Year, Month, Prin, Intt, Total ) SELECT b.LoanId, Datepart(year,a.DDate)AS Year, Datepart(month, a.DDate)AS Month, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, Datepart(year,a.DDate), Datepart(month, a.DDate); UPDATE a SET a.Dated=rtrim(convert(CHAR,a.Month))+'/01/'+rtrim(convert(CHAR,a.Year)) FROM @TTable a; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId,(SELECT SUM(Total)AS Total FROM @TTable WHERE Dateddateadd(month,24,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='100' AND ld.LoanOfficerId='EMP00146' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FFTable ( BranchName, OfficerId, OfficerName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'OfficerId', 'Officer Name', 'No Of Center', 'No Of Loan', 'before '+datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,1,@ODate))+'-'+datename(year,dateadd(month,1,@ODate)), datename(month,dateadd(month,2,@ODate))+'-'+datename(year,dateadd(month,2,@ODate)), datename(month,dateadd(month,3,@ODate))+'-'+datename(year,dateadd(month,3,@ODate)), datename(month,dateadd(month,4,@ODate))+'-'+datename(year,dateadd(month,4,@ODate)), datename(month,dateadd(month,5,@ODate))+'-'+datename(year,dateadd(month,5,@ODate)), datename(month,dateadd(month,6,@ODate))+'-'+datename(year,dateadd(month,6,@ODate)), datename(month,dateadd(month,7,@ODate))+'-'+datename(year,dateadd(month,7,@ODate)), datename(month,dateadd(month,8,@ODate))+'-'+datename(year,dateadd(month,8,@ODate)), datename(month,dateadd(month,9,@ODate))+'-'+datename(year,dateadd(month,9,@ODate)), datename(month,dateadd(month,10,@ODate))+'-'+datename(year,dateadd(month,10,@ODate)), datename(month,dateadd(month,11,@ODate))+'-'+datename(year,dateadd(month,11,@ODate)), datename(month,dateadd(month,12,@ODate))+'-'+datename(year,dateadd(month,12,@ODate)), datename(month,dateadd(month,13,@ODate))+'-'+datename(year,dateadd(month,13,@ODate)), datename(month,dateadd(month,14,@ODate))+'-'+datename(year,dateadd(month,14,@ODate)), datename(month,dateadd(month,15,@ODate))+'-'+datename(year,dateadd(month,15,@ODate)), datename(month,dateadd(month,16,@ODate))+'-'+datename(year,dateadd(month,16,@ODate)), datename(month,dateadd(month,17,@ODate))+'-'+datename(year,dateadd(month,17,@ODate)), datename(month,dateadd(month,18,@ODate))+'-'+datename(year,dateadd(month,18,@ODate)), datename(month,dateadd(month,19,@ODate))+'-'+datename(year,dateadd(month,19,@ODate)), datename(month,dateadd(month,20,@ODate))+'-'+datename(year,dateadd(month,20,@ODate)), datename(month,dateadd(month,21,@ODate))+'-'+datename(year,dateadd(month,21,@ODate)), datename(month,dateadd(month,22,@ODate))+'-'+datename(year,dateadd(month,22,@ODate)), datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'after '+datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'Total' ); INSERT INTO @FFTable ( BranchName, OfficerId, OfficerName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.OfficerId, a.OfficerName, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')', a.OfficerId, a.OfficerName ORDER BY a.BranchName+' ('+a.BranchId+')', a.OfficerName ; INSERT INTO @FFTable ( BranchName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.OfficerId, a.OfficerName, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l1hhjunr StackTrace: at IndividualLoan_IndvFutureDemandReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 04:27:31 PM PageName: DataTableResult String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=@FDate; DECLARE @TTable TABLE ( LoanId VARCHAR(50), Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Dated, Prin, Intt, Total ) SELECT b.LoanId, a.DDate, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, a.DDate; DECLARE @FTable TABLE ( SrNo INT IDENTITY(0,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FTable ( BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'OfficerId', 'Officer Name', 'CenterId', 'Center Name', 'MemberId', 'Member Name', 'LoanId', 'before '+convert(CHAR,@ODate,106), rtrim(convert(CHAR,dateadd(day,0,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,6,@ODate),106)), rtrim(convert(CHAR,dateadd(day,7,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,13,@ODate),106)), rtrim(convert(CHAR,dateadd(day,14,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,20,@ODate),106)), rtrim(convert(CHAR,dateadd(day,21,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,27,@ODate),106)), rtrim(convert(CHAR,dateadd(day,28,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,34,@ODate),106)), rtrim(convert(CHAR,dateadd(day,35,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,41,@ODate),106)), rtrim(convert(CHAR,dateadd(day,42,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,48,@ODate),106)), rtrim(convert(CHAR,dateadd(day,49,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,55,@ODate),106)), rtrim(convert(CHAR,dateadd(day,56,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,62,@ODate),106)), rtrim(convert(CHAR,dateadd(day,63,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,69,@ODate),106)), rtrim(convert(CHAR,dateadd(day,70,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,76,@ODate),106)), rtrim(convert(CHAR,dateadd(day,77,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,83,@ODate),106)), rtrim(convert(CHAR,dateadd(day,84,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,90,@ODate),106)), rtrim(convert(CHAR,dateadd(day,91,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,97,@ODate),106)), rtrim(convert(CHAR,dateadd(day,98,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,104,@ODate),106)), rtrim(convert(CHAR,dateadd(day,105,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,111,@ODate),106)), rtrim(convert(CHAR,dateadd(day,112,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,118,@ODate),106)), rtrim(convert(CHAR,dateadd(day,119,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,125,@ODate),106)), rtrim(convert(CHAR,dateadd(day,126,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,132,@ODate),106)), rtrim(convert(CHAR,dateadd(day,133,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,139,@ODate),106)), rtrim(convert(CHAR,dateadd(day,140,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,146,@ODate),106)), rtrim(convert(CHAR,dateadd(day,147,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,153,@ODate),106)), rtrim(convert(CHAR,dateadd(day,154,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,160,@ODate),106)), rtrim(convert(CHAR,dateadd(day,161,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'after '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'Total' ); INSERT INTO @FTable ( BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchName+' ('+ld.BranchId+')'AS BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId, (SELECT SUM(Total)AS Total FROM @TTable WHERE Dated=dateadd(day,0,@ODate) AND Dated=dateadd(day,7,@ODate) AND Dated=dateadd(day,14,@ODate) AND Dated=dateadd(day,21,@ODate) AND Dated=dateadd(day,28,@ODate) AND Dated=dateadd(day,35,@ODate) AND Dated=dateadd(day,42,@ODate) AND Dated=dateadd(day,49,@ODate) AND Dated=dateadd(day,56,@ODate) AND Dated=dateadd(day,63,@ODate) AND Dated=dateadd(day,70,@ODate) AND Dated=dateadd(day,77,@ODate) AND Dated=dateadd(day,84,@ODate) AND Dated=dateadd(day,91,@ODate) AND Dated=dateadd(day,98,@ODate) AND Dated=dateadd(day,105,@ODate) AND Dated=dateadd(day,112,@ODate) AND Dated=dateadd(day,119,@ODate) AND Dated=dateadd(day,126,@ODate) AND Dated=dateadd(day,133,@ODate) AND Dated=dateadd(day,140,@ODate) AND Dated=dateadd(day,147,@ODate) AND Dated=dateadd(day,154,@ODate) AND Dated=dateadd(day,161,@ODate) AND Dated=dateadd(day,168,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='100' AND ld.LoanOfficerId='EMP00146' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ;INSERT INTO @FTable ( BranchName, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; SELECT a.SrNo, a.BranchName, a.OfficerId, a.OfficerName, a.MemberId, a.MemberName, a.LoanId, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FTable a WHERE 1=1 ORDER BY a.SrNo String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: There are fewer columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 04:27:31 PM PageName: IndividualLoan_IndvFutureDemandReport String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=@FDate; DECLARE @TTable TABLE ( LoanId VARCHAR(50), Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Dated, Prin, Intt, Total ) SELECT b.LoanId, a.DDate, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, a.DDate; DECLARE @FTable TABLE ( SrNo INT IDENTITY(0,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FTable ( BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'OfficerId', 'Officer Name', 'CenterId', 'Center Name', 'MemberId', 'Member Name', 'LoanId', 'before '+convert(CHAR,@ODate,106), rtrim(convert(CHAR,dateadd(day,0,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,6,@ODate),106)), rtrim(convert(CHAR,dateadd(day,7,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,13,@ODate),106)), rtrim(convert(CHAR,dateadd(day,14,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,20,@ODate),106)), rtrim(convert(CHAR,dateadd(day,21,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,27,@ODate),106)), rtrim(convert(CHAR,dateadd(day,28,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,34,@ODate),106)), rtrim(convert(CHAR,dateadd(day,35,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,41,@ODate),106)), rtrim(convert(CHAR,dateadd(day,42,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,48,@ODate),106)), rtrim(convert(CHAR,dateadd(day,49,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,55,@ODate),106)), rtrim(convert(CHAR,dateadd(day,56,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,62,@ODate),106)), rtrim(convert(CHAR,dateadd(day,63,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,69,@ODate),106)), rtrim(convert(CHAR,dateadd(day,70,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,76,@ODate),106)), rtrim(convert(CHAR,dateadd(day,77,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,83,@ODate),106)), rtrim(convert(CHAR,dateadd(day,84,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,90,@ODate),106)), rtrim(convert(CHAR,dateadd(day,91,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,97,@ODate),106)), rtrim(convert(CHAR,dateadd(day,98,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,104,@ODate),106)), rtrim(convert(CHAR,dateadd(day,105,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,111,@ODate),106)), rtrim(convert(CHAR,dateadd(day,112,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,118,@ODate),106)), rtrim(convert(CHAR,dateadd(day,119,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,125,@ODate),106)), rtrim(convert(CHAR,dateadd(day,126,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,132,@ODate),106)), rtrim(convert(CHAR,dateadd(day,133,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,139,@ODate),106)), rtrim(convert(CHAR,dateadd(day,140,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,146,@ODate),106)), rtrim(convert(CHAR,dateadd(day,147,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,153,@ODate),106)), rtrim(convert(CHAR,dateadd(day,154,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,160,@ODate),106)), rtrim(convert(CHAR,dateadd(day,161,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'after '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'Total' ); INSERT INTO @FTable ( BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchName+' ('+ld.BranchId+')'AS BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId, (SELECT SUM(Total)AS Total FROM @TTable WHERE Dated=dateadd(day,0,@ODate) AND Dated=dateadd(day,7,@ODate) AND Dated=dateadd(day,14,@ODate) AND Dated=dateadd(day,21,@ODate) AND Dated=dateadd(day,28,@ODate) AND Dated=dateadd(day,35,@ODate) AND Dated=dateadd(day,42,@ODate) AND Dated=dateadd(day,49,@ODate) AND Dated=dateadd(day,56,@ODate) AND Dated=dateadd(day,63,@ODate) AND Dated=dateadd(day,70,@ODate) AND Dated=dateadd(day,77,@ODate) AND Dated=dateadd(day,84,@ODate) AND Dated=dateadd(day,91,@ODate) AND Dated=dateadd(day,98,@ODate) AND Dated=dateadd(day,105,@ODate) AND Dated=dateadd(day,112,@ODate) AND Dated=dateadd(day,119,@ODate) AND Dated=dateadd(day,126,@ODate) AND Dated=dateadd(day,133,@ODate) AND Dated=dateadd(day,140,@ODate) AND Dated=dateadd(day,147,@ODate) AND Dated=dateadd(day,154,@ODate) AND Dated=dateadd(day,161,@ODate) AND Dated=dateadd(day,168,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='100' AND ld.LoanOfficerId='EMP00146' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ;INSERT INTO @FTable ( BranchName, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; SELECT a.SrNo, a.BranchName, a.OfficerId, a.OfficerName, a.MemberId, a.MemberName, a.LoanId, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FTable a WHERE 1=1 ORDER BY a.SrNo String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l1hhjunr StackTrace: at IndividualLoan_IndvFutureDemandReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 04:27:37 PM PageName: DataTableResult String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=@FDate; DECLARE @TTable TABLE ( LoanId VARCHAR(50), Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Dated, Prin, Intt, Total ) SELECT b.LoanId, a.DDate, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, a.DDate; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId, (SELECT SUM(Total)AS Total FROM @TTable WHERE Dated=dateadd(day,0,@ODate) AND Dated=dateadd(day,7,@ODate) AND Dated=dateadd(day,14,@ODate) AND Dated=dateadd(day,21,@ODate) AND Dated=dateadd(day,28,@ODate) AND Dated=dateadd(day,35,@ODate) AND Dated=dateadd(day,42,@ODate) AND Dated=dateadd(day,49,@ODate) AND Dated=dateadd(day,56,@ODate) AND Dated=dateadd(day,63,@ODate) AND Dated=dateadd(day,70,@ODate) AND Dated=dateadd(day,77,@ODate) AND Dated=dateadd(day,84,@ODate) AND Dated=dateadd(day,91,@ODate) AND Dated=dateadd(day,98,@ODate) AND Dated=dateadd(day,105,@ODate) AND Dated=dateadd(day,112,@ODate) AND Dated=dateadd(day,119,@ODate) AND Dated=dateadd(day,126,@ODate) AND Dated=dateadd(day,133,@ODate) AND Dated=dateadd(day,140,@ODate) AND Dated=dateadd(day,147,@ODate) AND Dated=dateadd(day,154,@ODate) AND Dated=dateadd(day,161,@ODate) AND Dated=dateadd(day,168,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='100' AND ld.LoanOfficerId='EMP00146' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), NoOfOfficer VARCHAR(20), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'No Of Officer', 'No Of Center', 'No Of Loan', 'before '+convert(CHAR,@ODate,106), rtrim(convert(CHAR,dateadd(day,0,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,6,@ODate),106)), rtrim(convert(CHAR,dateadd(day,7,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,13,@ODate),106)), rtrim(convert(CHAR,dateadd(day,14,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,20,@ODate),106)), rtrim(convert(CHAR,dateadd(day,21,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,27,@ODate),106)), rtrim(convert(CHAR,dateadd(day,28,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,34,@ODate),106)), rtrim(convert(CHAR,dateadd(day,35,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,41,@ODate),106)), rtrim(convert(CHAR,dateadd(day,42,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,48,@ODate),106)), rtrim(convert(CHAR,dateadd(day,49,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,55,@ODate),106)), rtrim(convert(CHAR,dateadd(day,56,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,62,@ODate),106)), rtrim(convert(CHAR,dateadd(day,63,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,69,@ODate),106)), rtrim(convert(CHAR,dateadd(day,70,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,76,@ODate),106)), rtrim(convert(CHAR,dateadd(day,77,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,83,@ODate),106)), rtrim(convert(CHAR,dateadd(day,84,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,90,@ODate),106)), rtrim(convert(CHAR,dateadd(day,91,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,97,@ODate),106)), rtrim(convert(CHAR,dateadd(day,98,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,104,@ODate),106)), rtrim(convert(CHAR,dateadd(day,105,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,111,@ODate),106)), rtrim(convert(CHAR,dateadd(day,112,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,118,@ODate),106)), rtrim(convert(CHAR,dateadd(day,119,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,125,@ODate),106)), rtrim(convert(CHAR,dateadd(day,126,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,132,@ODate),106)), rtrim(convert(CHAR,dateadd(day,133,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,139,@ODate),106)), rtrim(convert(CHAR,dateadd(day,140,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,146,@ODate),106)), rtrim(convert(CHAR,dateadd(day,147,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,153,@ODate),106)), rtrim(convert(CHAR,dateadd(day,154,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,160,@ODate),106)), rtrim(convert(CHAR,dateadd(day,161,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'after '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'Total' ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')' AS BranchName, Count(DISTINCT a.OfficerId)AS NoOfOfficer, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')' ORDER BY a.BranchName+' ('+a.BranchId+')' ; INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfOfficer,0)))AS NoOfOfficer, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.NoOfOfficer, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 04:27:37 PM PageName: IndividualLoan_IndvFutureDemandReport String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=@FDate; DECLARE @TTable TABLE ( LoanId VARCHAR(50), Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Dated, Prin, Intt, Total ) SELECT b.LoanId, a.DDate, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, a.DDate; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId, (SELECT SUM(Total)AS Total FROM @TTable WHERE Dated=dateadd(day,0,@ODate) AND Dated=dateadd(day,7,@ODate) AND Dated=dateadd(day,14,@ODate) AND Dated=dateadd(day,21,@ODate) AND Dated=dateadd(day,28,@ODate) AND Dated=dateadd(day,35,@ODate) AND Dated=dateadd(day,42,@ODate) AND Dated=dateadd(day,49,@ODate) AND Dated=dateadd(day,56,@ODate) AND Dated=dateadd(day,63,@ODate) AND Dated=dateadd(day,70,@ODate) AND Dated=dateadd(day,77,@ODate) AND Dated=dateadd(day,84,@ODate) AND Dated=dateadd(day,91,@ODate) AND Dated=dateadd(day,98,@ODate) AND Dated=dateadd(day,105,@ODate) AND Dated=dateadd(day,112,@ODate) AND Dated=dateadd(day,119,@ODate) AND Dated=dateadd(day,126,@ODate) AND Dated=dateadd(day,133,@ODate) AND Dated=dateadd(day,140,@ODate) AND Dated=dateadd(day,147,@ODate) AND Dated=dateadd(day,154,@ODate) AND Dated=dateadd(day,161,@ODate) AND Dated=dateadd(day,168,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='100' AND ld.LoanOfficerId='EMP00146' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), NoOfOfficer VARCHAR(20), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'No Of Officer', 'No Of Center', 'No Of Loan', 'before '+convert(CHAR,@ODate,106), rtrim(convert(CHAR,dateadd(day,0,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,6,@ODate),106)), rtrim(convert(CHAR,dateadd(day,7,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,13,@ODate),106)), rtrim(convert(CHAR,dateadd(day,14,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,20,@ODate),106)), rtrim(convert(CHAR,dateadd(day,21,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,27,@ODate),106)), rtrim(convert(CHAR,dateadd(day,28,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,34,@ODate),106)), rtrim(convert(CHAR,dateadd(day,35,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,41,@ODate),106)), rtrim(convert(CHAR,dateadd(day,42,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,48,@ODate),106)), rtrim(convert(CHAR,dateadd(day,49,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,55,@ODate),106)), rtrim(convert(CHAR,dateadd(day,56,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,62,@ODate),106)), rtrim(convert(CHAR,dateadd(day,63,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,69,@ODate),106)), rtrim(convert(CHAR,dateadd(day,70,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,76,@ODate),106)), rtrim(convert(CHAR,dateadd(day,77,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,83,@ODate),106)), rtrim(convert(CHAR,dateadd(day,84,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,90,@ODate),106)), rtrim(convert(CHAR,dateadd(day,91,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,97,@ODate),106)), rtrim(convert(CHAR,dateadd(day,98,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,104,@ODate),106)), rtrim(convert(CHAR,dateadd(day,105,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,111,@ODate),106)), rtrim(convert(CHAR,dateadd(day,112,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,118,@ODate),106)), rtrim(convert(CHAR,dateadd(day,119,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,125,@ODate),106)), rtrim(convert(CHAR,dateadd(day,126,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,132,@ODate),106)), rtrim(convert(CHAR,dateadd(day,133,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,139,@ODate),106)), rtrim(convert(CHAR,dateadd(day,140,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,146,@ODate),106)), rtrim(convert(CHAR,dateadd(day,147,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,153,@ODate),106)), rtrim(convert(CHAR,dateadd(day,154,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,160,@ODate),106)), rtrim(convert(CHAR,dateadd(day,161,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'after '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'Total' ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')' AS BranchName, Count(DISTINCT a.OfficerId)AS NoOfOfficer, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')' ORDER BY a.BranchName+' ('+a.BranchId+')' ; INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfOfficer,0)))AS NoOfOfficer, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.NoOfOfficer, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l1hhjunr StackTrace: at IndividualLoan_IndvFutureDemandReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 04:27:52 PM PageName: DataTableResult String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=@FDate; DECLARE @TTable TABLE ( LoanId VARCHAR(50), Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Dated, Prin, Intt, Total ) SELECT b.LoanId, a.DDate, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, a.DDate; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId, (SELECT SUM(Total)AS Total FROM @TTable WHERE Dated=dateadd(day,0,@ODate) AND Dated=dateadd(day,7,@ODate) AND Dated=dateadd(day,14,@ODate) AND Dated=dateadd(day,21,@ODate) AND Dated=dateadd(day,28,@ODate) AND Dated=dateadd(day,35,@ODate) AND Dated=dateadd(day,42,@ODate) AND Dated=dateadd(day,49,@ODate) AND Dated=dateadd(day,56,@ODate) AND Dated=dateadd(day,63,@ODate) AND Dated=dateadd(day,70,@ODate) AND Dated=dateadd(day,77,@ODate) AND Dated=dateadd(day,84,@ODate) AND Dated=dateadd(day,91,@ODate) AND Dated=dateadd(day,98,@ODate) AND Dated=dateadd(day,105,@ODate) AND Dated=dateadd(day,112,@ODate) AND Dated=dateadd(day,119,@ODate) AND Dated=dateadd(day,126,@ODate) AND Dated=dateadd(day,133,@ODate) AND Dated=dateadd(day,140,@ODate) AND Dated=dateadd(day,147,@ODate) AND Dated=dateadd(day,154,@ODate) AND Dated=dateadd(day,161,@ODate) AND Dated=dateadd(day,168,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='101' AND ld.LoanOfficerId='EMP00147' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), NoOfOfficer VARCHAR(20), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'No Of Officer', 'No Of Center', 'No Of Loan', 'before '+convert(CHAR,@ODate,106), rtrim(convert(CHAR,dateadd(day,0,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,6,@ODate),106)), rtrim(convert(CHAR,dateadd(day,7,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,13,@ODate),106)), rtrim(convert(CHAR,dateadd(day,14,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,20,@ODate),106)), rtrim(convert(CHAR,dateadd(day,21,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,27,@ODate),106)), rtrim(convert(CHAR,dateadd(day,28,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,34,@ODate),106)), rtrim(convert(CHAR,dateadd(day,35,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,41,@ODate),106)), rtrim(convert(CHAR,dateadd(day,42,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,48,@ODate),106)), rtrim(convert(CHAR,dateadd(day,49,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,55,@ODate),106)), rtrim(convert(CHAR,dateadd(day,56,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,62,@ODate),106)), rtrim(convert(CHAR,dateadd(day,63,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,69,@ODate),106)), rtrim(convert(CHAR,dateadd(day,70,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,76,@ODate),106)), rtrim(convert(CHAR,dateadd(day,77,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,83,@ODate),106)), rtrim(convert(CHAR,dateadd(day,84,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,90,@ODate),106)), rtrim(convert(CHAR,dateadd(day,91,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,97,@ODate),106)), rtrim(convert(CHAR,dateadd(day,98,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,104,@ODate),106)), rtrim(convert(CHAR,dateadd(day,105,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,111,@ODate),106)), rtrim(convert(CHAR,dateadd(day,112,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,118,@ODate),106)), rtrim(convert(CHAR,dateadd(day,119,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,125,@ODate),106)), rtrim(convert(CHAR,dateadd(day,126,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,132,@ODate),106)), rtrim(convert(CHAR,dateadd(day,133,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,139,@ODate),106)), rtrim(convert(CHAR,dateadd(day,140,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,146,@ODate),106)), rtrim(convert(CHAR,dateadd(day,147,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,153,@ODate),106)), rtrim(convert(CHAR,dateadd(day,154,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,160,@ODate),106)), rtrim(convert(CHAR,dateadd(day,161,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'after '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'Total' ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')' AS BranchName, Count(DISTINCT a.OfficerId)AS NoOfOfficer, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')' ORDER BY a.BranchName+' ('+a.BranchId+')' ; INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfOfficer,0)))AS NoOfOfficer, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.NoOfOfficer, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 04:27:52 PM PageName: IndividualLoan_IndvFutureDemandReport String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=@FDate; DECLARE @TTable TABLE ( LoanId VARCHAR(50), Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Dated, Prin, Intt, Total ) SELECT b.LoanId, a.DDate, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, a.DDate; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId, (SELECT SUM(Total)AS Total FROM @TTable WHERE Dated=dateadd(day,0,@ODate) AND Dated=dateadd(day,7,@ODate) AND Dated=dateadd(day,14,@ODate) AND Dated=dateadd(day,21,@ODate) AND Dated=dateadd(day,28,@ODate) AND Dated=dateadd(day,35,@ODate) AND Dated=dateadd(day,42,@ODate) AND Dated=dateadd(day,49,@ODate) AND Dated=dateadd(day,56,@ODate) AND Dated=dateadd(day,63,@ODate) AND Dated=dateadd(day,70,@ODate) AND Dated=dateadd(day,77,@ODate) AND Dated=dateadd(day,84,@ODate) AND Dated=dateadd(day,91,@ODate) AND Dated=dateadd(day,98,@ODate) AND Dated=dateadd(day,105,@ODate) AND Dated=dateadd(day,112,@ODate) AND Dated=dateadd(day,119,@ODate) AND Dated=dateadd(day,126,@ODate) AND Dated=dateadd(day,133,@ODate) AND Dated=dateadd(day,140,@ODate) AND Dated=dateadd(day,147,@ODate) AND Dated=dateadd(day,154,@ODate) AND Dated=dateadd(day,161,@ODate) AND Dated=dateadd(day,168,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='101' AND ld.LoanOfficerId='EMP00147' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), NoOfOfficer VARCHAR(20), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'No Of Officer', 'No Of Center', 'No Of Loan', 'before '+convert(CHAR,@ODate,106), rtrim(convert(CHAR,dateadd(day,0,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,6,@ODate),106)), rtrim(convert(CHAR,dateadd(day,7,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,13,@ODate),106)), rtrim(convert(CHAR,dateadd(day,14,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,20,@ODate),106)), rtrim(convert(CHAR,dateadd(day,21,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,27,@ODate),106)), rtrim(convert(CHAR,dateadd(day,28,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,34,@ODate),106)), rtrim(convert(CHAR,dateadd(day,35,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,41,@ODate),106)), rtrim(convert(CHAR,dateadd(day,42,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,48,@ODate),106)), rtrim(convert(CHAR,dateadd(day,49,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,55,@ODate),106)), rtrim(convert(CHAR,dateadd(day,56,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,62,@ODate),106)), rtrim(convert(CHAR,dateadd(day,63,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,69,@ODate),106)), rtrim(convert(CHAR,dateadd(day,70,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,76,@ODate),106)), rtrim(convert(CHAR,dateadd(day,77,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,83,@ODate),106)), rtrim(convert(CHAR,dateadd(day,84,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,90,@ODate),106)), rtrim(convert(CHAR,dateadd(day,91,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,97,@ODate),106)), rtrim(convert(CHAR,dateadd(day,98,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,104,@ODate),106)), rtrim(convert(CHAR,dateadd(day,105,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,111,@ODate),106)), rtrim(convert(CHAR,dateadd(day,112,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,118,@ODate),106)), rtrim(convert(CHAR,dateadd(day,119,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,125,@ODate),106)), rtrim(convert(CHAR,dateadd(day,126,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,132,@ODate),106)), rtrim(convert(CHAR,dateadd(day,133,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,139,@ODate),106)), rtrim(convert(CHAR,dateadd(day,140,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,146,@ODate),106)), rtrim(convert(CHAR,dateadd(day,147,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,153,@ODate),106)), rtrim(convert(CHAR,dateadd(day,154,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,160,@ODate),106)), rtrim(convert(CHAR,dateadd(day,161,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'after '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'Total' ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')' AS BranchName, Count(DISTINCT a.OfficerId)AS NoOfOfficer, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')' ORDER BY a.BranchName+' ('+a.BranchId+')' ; INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfOfficer,0)))AS NoOfOfficer, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.NoOfOfficer, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l1hhjunr StackTrace: at IndividualLoan_IndvFutureDemandReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 04:28:41 PM PageName: DataTableResult String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=@FDate; DECLARE @TTable TABLE ( LoanId VARCHAR(50), Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Dated, Prin, Intt, Total ) SELECT b.LoanId, a.DDate, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, a.DDate; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId, (SELECT SUM(Total)AS Total FROM @TTable WHERE Dated=dateadd(day,0,@ODate) AND Dated=dateadd(day,7,@ODate) AND Dated=dateadd(day,14,@ODate) AND Dated=dateadd(day,21,@ODate) AND Dated=dateadd(day,28,@ODate) AND Dated=dateadd(day,35,@ODate) AND Dated=dateadd(day,42,@ODate) AND Dated=dateadd(day,49,@ODate) AND Dated=dateadd(day,56,@ODate) AND Dated=dateadd(day,63,@ODate) AND Dated=dateadd(day,70,@ODate) AND Dated=dateadd(day,77,@ODate) AND Dated=dateadd(day,84,@ODate) AND Dated=dateadd(day,91,@ODate) AND Dated=dateadd(day,98,@ODate) AND Dated=dateadd(day,105,@ODate) AND Dated=dateadd(day,112,@ODate) AND Dated=dateadd(day,119,@ODate) AND Dated=dateadd(day,126,@ODate) AND Dated=dateadd(day,133,@ODate) AND Dated=dateadd(day,140,@ODate) AND Dated=dateadd(day,147,@ODate) AND Dated=dateadd(day,154,@ODate) AND Dated=dateadd(day,161,@ODate) AND Dated=dateadd(day,168,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='101' AND ld.LoanOfficerId='EMP00147' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), NoOfOfficer VARCHAR(20), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'No Of Officer', 'No Of Center', 'No Of Loan', 'before '+convert(CHAR,@ODate,106), rtrim(convert(CHAR,dateadd(day,0,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,6,@ODate),106)), rtrim(convert(CHAR,dateadd(day,7,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,13,@ODate),106)), rtrim(convert(CHAR,dateadd(day,14,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,20,@ODate),106)), rtrim(convert(CHAR,dateadd(day,21,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,27,@ODate),106)), rtrim(convert(CHAR,dateadd(day,28,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,34,@ODate),106)), rtrim(convert(CHAR,dateadd(day,35,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,41,@ODate),106)), rtrim(convert(CHAR,dateadd(day,42,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,48,@ODate),106)), rtrim(convert(CHAR,dateadd(day,49,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,55,@ODate),106)), rtrim(convert(CHAR,dateadd(day,56,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,62,@ODate),106)), rtrim(convert(CHAR,dateadd(day,63,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,69,@ODate),106)), rtrim(convert(CHAR,dateadd(day,70,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,76,@ODate),106)), rtrim(convert(CHAR,dateadd(day,77,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,83,@ODate),106)), rtrim(convert(CHAR,dateadd(day,84,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,90,@ODate),106)), rtrim(convert(CHAR,dateadd(day,91,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,97,@ODate),106)), rtrim(convert(CHAR,dateadd(day,98,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,104,@ODate),106)), rtrim(convert(CHAR,dateadd(day,105,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,111,@ODate),106)), rtrim(convert(CHAR,dateadd(day,112,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,118,@ODate),106)), rtrim(convert(CHAR,dateadd(day,119,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,125,@ODate),106)), rtrim(convert(CHAR,dateadd(day,126,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,132,@ODate),106)), rtrim(convert(CHAR,dateadd(day,133,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,139,@ODate),106)), rtrim(convert(CHAR,dateadd(day,140,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,146,@ODate),106)), rtrim(convert(CHAR,dateadd(day,147,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,153,@ODate),106)), rtrim(convert(CHAR,dateadd(day,154,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,160,@ODate),106)), rtrim(convert(CHAR,dateadd(day,161,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'after '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'Total' ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')' AS BranchName, Count(DISTINCT a.OfficerId)AS NoOfOfficer, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')' ORDER BY a.BranchName+' ('+a.BranchId+')' ; INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfOfficer,0)))AS NoOfOfficer, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.NoOfOfficer, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 04:28:41 PM PageName: IndividualLoan_IndvFutureDemandReport String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=@FDate; DECLARE @TTable TABLE ( LoanId VARCHAR(50), Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Dated, Prin, Intt, Total ) SELECT b.LoanId, a.DDate, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, a.DDate; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId, (SELECT SUM(Total)AS Total FROM @TTable WHERE Dated=dateadd(day,0,@ODate) AND Dated=dateadd(day,7,@ODate) AND Dated=dateadd(day,14,@ODate) AND Dated=dateadd(day,21,@ODate) AND Dated=dateadd(day,28,@ODate) AND Dated=dateadd(day,35,@ODate) AND Dated=dateadd(day,42,@ODate) AND Dated=dateadd(day,49,@ODate) AND Dated=dateadd(day,56,@ODate) AND Dated=dateadd(day,63,@ODate) AND Dated=dateadd(day,70,@ODate) AND Dated=dateadd(day,77,@ODate) AND Dated=dateadd(day,84,@ODate) AND Dated=dateadd(day,91,@ODate) AND Dated=dateadd(day,98,@ODate) AND Dated=dateadd(day,105,@ODate) AND Dated=dateadd(day,112,@ODate) AND Dated=dateadd(day,119,@ODate) AND Dated=dateadd(day,126,@ODate) AND Dated=dateadd(day,133,@ODate) AND Dated=dateadd(day,140,@ODate) AND Dated=dateadd(day,147,@ODate) AND Dated=dateadd(day,154,@ODate) AND Dated=dateadd(day,161,@ODate) AND Dated=dateadd(day,168,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='101' AND ld.LoanOfficerId='EMP00147' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), NoOfOfficer VARCHAR(20), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'No Of Officer', 'No Of Center', 'No Of Loan', 'before '+convert(CHAR,@ODate,106), rtrim(convert(CHAR,dateadd(day,0,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,6,@ODate),106)), rtrim(convert(CHAR,dateadd(day,7,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,13,@ODate),106)), rtrim(convert(CHAR,dateadd(day,14,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,20,@ODate),106)), rtrim(convert(CHAR,dateadd(day,21,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,27,@ODate),106)), rtrim(convert(CHAR,dateadd(day,28,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,34,@ODate),106)), rtrim(convert(CHAR,dateadd(day,35,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,41,@ODate),106)), rtrim(convert(CHAR,dateadd(day,42,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,48,@ODate),106)), rtrim(convert(CHAR,dateadd(day,49,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,55,@ODate),106)), rtrim(convert(CHAR,dateadd(day,56,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,62,@ODate),106)), rtrim(convert(CHAR,dateadd(day,63,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,69,@ODate),106)), rtrim(convert(CHAR,dateadd(day,70,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,76,@ODate),106)), rtrim(convert(CHAR,dateadd(day,77,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,83,@ODate),106)), rtrim(convert(CHAR,dateadd(day,84,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,90,@ODate),106)), rtrim(convert(CHAR,dateadd(day,91,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,97,@ODate),106)), rtrim(convert(CHAR,dateadd(day,98,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,104,@ODate),106)), rtrim(convert(CHAR,dateadd(day,105,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,111,@ODate),106)), rtrim(convert(CHAR,dateadd(day,112,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,118,@ODate),106)), rtrim(convert(CHAR,dateadd(day,119,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,125,@ODate),106)), rtrim(convert(CHAR,dateadd(day,126,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,132,@ODate),106)), rtrim(convert(CHAR,dateadd(day,133,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,139,@ODate),106)), rtrim(convert(CHAR,dateadd(day,140,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,146,@ODate),106)), rtrim(convert(CHAR,dateadd(day,147,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,153,@ODate),106)), rtrim(convert(CHAR,dateadd(day,154,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,160,@ODate),106)), rtrim(convert(CHAR,dateadd(day,161,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'after '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'Total' ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')' AS BranchName, Count(DISTINCT a.OfficerId)AS NoOfOfficer, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')' ORDER BY a.BranchName+' ('+a.BranchId+')' ; INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfOfficer,0)))AS NoOfOfficer, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.NoOfOfficer, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l1hhjunr StackTrace: at IndividualLoan_IndvFutureDemandReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 04:29:16 PM PageName: DataTableResult String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=@FDate; DECLARE @TTable TABLE ( LoanId VARCHAR(50), Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Dated, Prin, Intt, Total ) SELECT b.LoanId, a.DDate, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, a.DDate; DECLARE @FTable TABLE ( SrNo INT IDENTITY(0,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FTable ( BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'OfficerId', 'Officer Name', 'CenterId', 'Center Name', 'MemberId', 'Member Name', 'LoanId', 'before '+convert(CHAR,@ODate,106), rtrim(convert(CHAR,dateadd(day,0,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,6,@ODate),106)), rtrim(convert(CHAR,dateadd(day,7,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,13,@ODate),106)), rtrim(convert(CHAR,dateadd(day,14,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,20,@ODate),106)), rtrim(convert(CHAR,dateadd(day,21,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,27,@ODate),106)), rtrim(convert(CHAR,dateadd(day,28,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,34,@ODate),106)), rtrim(convert(CHAR,dateadd(day,35,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,41,@ODate),106)), rtrim(convert(CHAR,dateadd(day,42,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,48,@ODate),106)), rtrim(convert(CHAR,dateadd(day,49,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,55,@ODate),106)), rtrim(convert(CHAR,dateadd(day,56,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,62,@ODate),106)), rtrim(convert(CHAR,dateadd(day,63,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,69,@ODate),106)), rtrim(convert(CHAR,dateadd(day,70,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,76,@ODate),106)), rtrim(convert(CHAR,dateadd(day,77,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,83,@ODate),106)), rtrim(convert(CHAR,dateadd(day,84,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,90,@ODate),106)), rtrim(convert(CHAR,dateadd(day,91,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,97,@ODate),106)), rtrim(convert(CHAR,dateadd(day,98,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,104,@ODate),106)), rtrim(convert(CHAR,dateadd(day,105,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,111,@ODate),106)), rtrim(convert(CHAR,dateadd(day,112,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,118,@ODate),106)), rtrim(convert(CHAR,dateadd(day,119,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,125,@ODate),106)), rtrim(convert(CHAR,dateadd(day,126,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,132,@ODate),106)), rtrim(convert(CHAR,dateadd(day,133,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,139,@ODate),106)), rtrim(convert(CHAR,dateadd(day,140,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,146,@ODate),106)), rtrim(convert(CHAR,dateadd(day,147,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,153,@ODate),106)), rtrim(convert(CHAR,dateadd(day,154,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,160,@ODate),106)), rtrim(convert(CHAR,dateadd(day,161,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'after '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'Total' ); INSERT INTO @FTable ( BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchName+' ('+ld.BranchId+')'AS BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId, (SELECT SUM(Total)AS Total FROM @TTable WHERE Dated=dateadd(day,0,@ODate) AND Dated=dateadd(day,7,@ODate) AND Dated=dateadd(day,14,@ODate) AND Dated=dateadd(day,21,@ODate) AND Dated=dateadd(day,28,@ODate) AND Dated=dateadd(day,35,@ODate) AND Dated=dateadd(day,42,@ODate) AND Dated=dateadd(day,49,@ODate) AND Dated=dateadd(day,56,@ODate) AND Dated=dateadd(day,63,@ODate) AND Dated=dateadd(day,70,@ODate) AND Dated=dateadd(day,77,@ODate) AND Dated=dateadd(day,84,@ODate) AND Dated=dateadd(day,91,@ODate) AND Dated=dateadd(day,98,@ODate) AND Dated=dateadd(day,105,@ODate) AND Dated=dateadd(day,112,@ODate) AND Dated=dateadd(day,119,@ODate) AND Dated=dateadd(day,126,@ODate) AND Dated=dateadd(day,133,@ODate) AND Dated=dateadd(day,140,@ODate) AND Dated=dateadd(day,147,@ODate) AND Dated=dateadd(day,154,@ODate) AND Dated=dateadd(day,161,@ODate) AND Dated=dateadd(day,168,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='101' AND ld.LoanOfficerId='EMP00147' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ;INSERT INTO @FTable ( BranchName, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; SELECT a.SrNo, a.BranchName, a.OfficerId, a.OfficerName, a.MemberId, a.MemberName, a.LoanId, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FTable a WHERE 1=1 ORDER BY a.SrNo String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: There are fewer columns in the INSERT statement than values specified in the VALUES clause. The number of values in the VALUES clause must match the number of columns specified in the INSERT statement. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 04:29:16 PM PageName: IndividualLoan_IndvFutureDemandReport String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=@FDate; DECLARE @TTable TABLE ( LoanId VARCHAR(50), Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Dated, Prin, Intt, Total ) SELECT b.LoanId, a.DDate, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, a.DDate; DECLARE @FTable TABLE ( SrNo INT IDENTITY(0,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FTable ( BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'OfficerId', 'Officer Name', 'CenterId', 'Center Name', 'MemberId', 'Member Name', 'LoanId', 'before '+convert(CHAR,@ODate,106), rtrim(convert(CHAR,dateadd(day,0,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,6,@ODate),106)), rtrim(convert(CHAR,dateadd(day,7,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,13,@ODate),106)), rtrim(convert(CHAR,dateadd(day,14,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,20,@ODate),106)), rtrim(convert(CHAR,dateadd(day,21,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,27,@ODate),106)), rtrim(convert(CHAR,dateadd(day,28,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,34,@ODate),106)), rtrim(convert(CHAR,dateadd(day,35,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,41,@ODate),106)), rtrim(convert(CHAR,dateadd(day,42,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,48,@ODate),106)), rtrim(convert(CHAR,dateadd(day,49,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,55,@ODate),106)), rtrim(convert(CHAR,dateadd(day,56,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,62,@ODate),106)), rtrim(convert(CHAR,dateadd(day,63,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,69,@ODate),106)), rtrim(convert(CHAR,dateadd(day,70,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,76,@ODate),106)), rtrim(convert(CHAR,dateadd(day,77,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,83,@ODate),106)), rtrim(convert(CHAR,dateadd(day,84,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,90,@ODate),106)), rtrim(convert(CHAR,dateadd(day,91,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,97,@ODate),106)), rtrim(convert(CHAR,dateadd(day,98,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,104,@ODate),106)), rtrim(convert(CHAR,dateadd(day,105,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,111,@ODate),106)), rtrim(convert(CHAR,dateadd(day,112,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,118,@ODate),106)), rtrim(convert(CHAR,dateadd(day,119,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,125,@ODate),106)), rtrim(convert(CHAR,dateadd(day,126,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,132,@ODate),106)), rtrim(convert(CHAR,dateadd(day,133,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,139,@ODate),106)), rtrim(convert(CHAR,dateadd(day,140,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,146,@ODate),106)), rtrim(convert(CHAR,dateadd(day,147,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,153,@ODate),106)), rtrim(convert(CHAR,dateadd(day,154,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,160,@ODate),106)), rtrim(convert(CHAR,dateadd(day,161,@ODate),106))+' to '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'after '+rtrim(convert(CHAR,dateadd(day,167,@ODate),106)), 'Total' ); INSERT INTO @FTable ( BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchName+' ('+ld.BranchId+')'AS BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId, (SELECT SUM(Total)AS Total FROM @TTable WHERE Dated=dateadd(day,0,@ODate) AND Dated=dateadd(day,7,@ODate) AND Dated=dateadd(day,14,@ODate) AND Dated=dateadd(day,21,@ODate) AND Dated=dateadd(day,28,@ODate) AND Dated=dateadd(day,35,@ODate) AND Dated=dateadd(day,42,@ODate) AND Dated=dateadd(day,49,@ODate) AND Dated=dateadd(day,56,@ODate) AND Dated=dateadd(day,63,@ODate) AND Dated=dateadd(day,70,@ODate) AND Dated=dateadd(day,77,@ODate) AND Dated=dateadd(day,84,@ODate) AND Dated=dateadd(day,91,@ODate) AND Dated=dateadd(day,98,@ODate) AND Dated=dateadd(day,105,@ODate) AND Dated=dateadd(day,112,@ODate) AND Dated=dateadd(day,119,@ODate) AND Dated=dateadd(day,126,@ODate) AND Dated=dateadd(day,133,@ODate) AND Dated=dateadd(day,140,@ODate) AND Dated=dateadd(day,147,@ODate) AND Dated=dateadd(day,154,@ODate) AND Dated=dateadd(day,161,@ODate) AND Dated=dateadd(day,168,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='101' AND ld.LoanOfficerId='EMP00147' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ;INSERT INTO @FTable ( BranchName, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; SELECT a.SrNo, a.BranchName, a.OfficerId, a.OfficerName, a.MemberId, a.MemberName, a.LoanId, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FTable a WHERE 1=1 ORDER BY a.SrNo String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l1hhjunr StackTrace: at IndividualLoan_IndvFutureDemandReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 04:37:23 PM PageName: DataTableResult String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=dateadd(day,-datepart(day,@FDate)+1,@FDate); DECLARE @TTable TABLE ( LoanId VARCHAR(50), Year INT, Month INT, Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Year, Month, Prin, Intt, Total ) SELECT b.LoanId, Datepart(year,a.DDate)AS Year, Datepart(month, a.DDate)AS Month, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, Datepart(year,a.DDate), Datepart(month, a.DDate); UPDATE a SET a.Dated=rtrim(convert(CHAR,a.Month))+'/01/'+rtrim(convert(CHAR,a.Year)) FROM @TTable a; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId,(SELECT SUM(Total)AS Total FROM @TTable WHERE Dateddateadd(month,24,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='101' AND ld.LoanOfficerId='EMP00147' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FFTable ( BranchName, OfficerId, OfficerName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'OfficerId', 'Officer Name', 'No Of Center', 'No Of Loan', 'before '+datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,1,@ODate))+'-'+datename(year,dateadd(month,1,@ODate)), datename(month,dateadd(month,2,@ODate))+'-'+datename(year,dateadd(month,2,@ODate)), datename(month,dateadd(month,3,@ODate))+'-'+datename(year,dateadd(month,3,@ODate)), datename(month,dateadd(month,4,@ODate))+'-'+datename(year,dateadd(month,4,@ODate)), datename(month,dateadd(month,5,@ODate))+'-'+datename(year,dateadd(month,5,@ODate)), datename(month,dateadd(month,6,@ODate))+'-'+datename(year,dateadd(month,6,@ODate)), datename(month,dateadd(month,7,@ODate))+'-'+datename(year,dateadd(month,7,@ODate)), datename(month,dateadd(month,8,@ODate))+'-'+datename(year,dateadd(month,8,@ODate)), datename(month,dateadd(month,9,@ODate))+'-'+datename(year,dateadd(month,9,@ODate)), datename(month,dateadd(month,10,@ODate))+'-'+datename(year,dateadd(month,10,@ODate)), datename(month,dateadd(month,11,@ODate))+'-'+datename(year,dateadd(month,11,@ODate)), datename(month,dateadd(month,12,@ODate))+'-'+datename(year,dateadd(month,12,@ODate)), datename(month,dateadd(month,13,@ODate))+'-'+datename(year,dateadd(month,13,@ODate)), datename(month,dateadd(month,14,@ODate))+'-'+datename(year,dateadd(month,14,@ODate)), datename(month,dateadd(month,15,@ODate))+'-'+datename(year,dateadd(month,15,@ODate)), datename(month,dateadd(month,16,@ODate))+'-'+datename(year,dateadd(month,16,@ODate)), datename(month,dateadd(month,17,@ODate))+'-'+datename(year,dateadd(month,17,@ODate)), datename(month,dateadd(month,18,@ODate))+'-'+datename(year,dateadd(month,18,@ODate)), datename(month,dateadd(month,19,@ODate))+'-'+datename(year,dateadd(month,19,@ODate)), datename(month,dateadd(month,20,@ODate))+'-'+datename(year,dateadd(month,20,@ODate)), datename(month,dateadd(month,21,@ODate))+'-'+datename(year,dateadd(month,21,@ODate)), datename(month,dateadd(month,22,@ODate))+'-'+datename(year,dateadd(month,22,@ODate)), datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'after '+datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'Total' ); INSERT INTO @FFTable ( BranchName, OfficerId, OfficerName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.OfficerId, a.OfficerName, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')', a.OfficerId, a.OfficerName ORDER BY a.BranchName+' ('+a.BranchId+')', a.OfficerName ; INSERT INTO @FFTable ( BranchName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.OfficerId, a.OfficerName, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 04:37:23 PM PageName: IndividualLoan_IndvFutureDemandReport String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=dateadd(day,-datepart(day,@FDate)+1,@FDate); DECLARE @TTable TABLE ( LoanId VARCHAR(50), Year INT, Month INT, Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Year, Month, Prin, Intt, Total ) SELECT b.LoanId, Datepart(year,a.DDate)AS Year, Datepart(month, a.DDate)AS Month, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, Datepart(year,a.DDate), Datepart(month, a.DDate); UPDATE a SET a.Dated=rtrim(convert(CHAR,a.Month))+'/01/'+rtrim(convert(CHAR,a.Year)) FROM @TTable a; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId,(SELECT SUM(Total)AS Total FROM @TTable WHERE Dateddateadd(month,24,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='101' AND ld.LoanOfficerId='EMP00147' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FFTable ( BranchName, OfficerId, OfficerName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'OfficerId', 'Officer Name', 'No Of Center', 'No Of Loan', 'before '+datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,1,@ODate))+'-'+datename(year,dateadd(month,1,@ODate)), datename(month,dateadd(month,2,@ODate))+'-'+datename(year,dateadd(month,2,@ODate)), datename(month,dateadd(month,3,@ODate))+'-'+datename(year,dateadd(month,3,@ODate)), datename(month,dateadd(month,4,@ODate))+'-'+datename(year,dateadd(month,4,@ODate)), datename(month,dateadd(month,5,@ODate))+'-'+datename(year,dateadd(month,5,@ODate)), datename(month,dateadd(month,6,@ODate))+'-'+datename(year,dateadd(month,6,@ODate)), datename(month,dateadd(month,7,@ODate))+'-'+datename(year,dateadd(month,7,@ODate)), datename(month,dateadd(month,8,@ODate))+'-'+datename(year,dateadd(month,8,@ODate)), datename(month,dateadd(month,9,@ODate))+'-'+datename(year,dateadd(month,9,@ODate)), datename(month,dateadd(month,10,@ODate))+'-'+datename(year,dateadd(month,10,@ODate)), datename(month,dateadd(month,11,@ODate))+'-'+datename(year,dateadd(month,11,@ODate)), datename(month,dateadd(month,12,@ODate))+'-'+datename(year,dateadd(month,12,@ODate)), datename(month,dateadd(month,13,@ODate))+'-'+datename(year,dateadd(month,13,@ODate)), datename(month,dateadd(month,14,@ODate))+'-'+datename(year,dateadd(month,14,@ODate)), datename(month,dateadd(month,15,@ODate))+'-'+datename(year,dateadd(month,15,@ODate)), datename(month,dateadd(month,16,@ODate))+'-'+datename(year,dateadd(month,16,@ODate)), datename(month,dateadd(month,17,@ODate))+'-'+datename(year,dateadd(month,17,@ODate)), datename(month,dateadd(month,18,@ODate))+'-'+datename(year,dateadd(month,18,@ODate)), datename(month,dateadd(month,19,@ODate))+'-'+datename(year,dateadd(month,19,@ODate)), datename(month,dateadd(month,20,@ODate))+'-'+datename(year,dateadd(month,20,@ODate)), datename(month,dateadd(month,21,@ODate))+'-'+datename(year,dateadd(month,21,@ODate)), datename(month,dateadd(month,22,@ODate))+'-'+datename(year,dateadd(month,22,@ODate)), datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'after '+datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'Total' ); INSERT INTO @FFTable ( BranchName, OfficerId, OfficerName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.OfficerId, a.OfficerName, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')', a.OfficerId, a.OfficerName ORDER BY a.BranchName+' ('+a.BranchId+')', a.OfficerName ; INSERT INTO @FFTable ( BranchName, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.OfficerId, a.OfficerName, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l1hhjunr StackTrace: at IndividualLoan_IndvFutureDemandReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 04:37:27 PM PageName: DataTableResult String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=dateadd(day,-datepart(day,@FDate)+1,@FDate); DECLARE @TTable TABLE ( LoanId VARCHAR(50), Year INT, Month INT, Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Year, Month, Prin, Intt, Total ) SELECT b.LoanId, Datepart(year,a.DDate)AS Year, Datepart(month, a.DDate)AS Month, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, Datepart(year,a.DDate), Datepart(month, a.DDate); UPDATE a SET a.Dated=rtrim(convert(CHAR,a.Month))+'/01/'+rtrim(convert(CHAR,a.Year)) FROM @TTable a; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId,(SELECT SUM(Total)AS Total FROM @TTable WHERE Dateddateadd(month,24,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='101' AND ld.LoanOfficerId='EMP00147' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), NoOfOfficer VARCHAR(20), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'No Of Officer', 'No Of Center', 'No Of Loan', 'before '+datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,1,@ODate))+'-'+datename(year,dateadd(month,1,@ODate)), datename(month,dateadd(month,2,@ODate))+'-'+datename(year,dateadd(month,2,@ODate)), datename(month,dateadd(month,3,@ODate))+'-'+datename(year,dateadd(month,3,@ODate)), datename(month,dateadd(month,4,@ODate))+'-'+datename(year,dateadd(month,4,@ODate)), datename(month,dateadd(month,5,@ODate))+'-'+datename(year,dateadd(month,5,@ODate)), datename(month,dateadd(month,6,@ODate))+'-'+datename(year,dateadd(month,6,@ODate)), datename(month,dateadd(month,7,@ODate))+'-'+datename(year,dateadd(month,7,@ODate)), datename(month,dateadd(month,8,@ODate))+'-'+datename(year,dateadd(month,8,@ODate)), datename(month,dateadd(month,9,@ODate))+'-'+datename(year,dateadd(month,9,@ODate)), datename(month,dateadd(month,10,@ODate))+'-'+datename(year,dateadd(month,10,@ODate)), datename(month,dateadd(month,11,@ODate))+'-'+datename(year,dateadd(month,11,@ODate)), datename(month,dateadd(month,12,@ODate))+'-'+datename(year,dateadd(month,12,@ODate)), datename(month,dateadd(month,13,@ODate))+'-'+datename(year,dateadd(month,13,@ODate)), datename(month,dateadd(month,14,@ODate))+'-'+datename(year,dateadd(month,14,@ODate)), datename(month,dateadd(month,15,@ODate))+'-'+datename(year,dateadd(month,15,@ODate)), datename(month,dateadd(month,16,@ODate))+'-'+datename(year,dateadd(month,16,@ODate)), datename(month,dateadd(month,17,@ODate))+'-'+datename(year,dateadd(month,17,@ODate)), datename(month,dateadd(month,18,@ODate))+'-'+datename(year,dateadd(month,18,@ODate)), datename(month,dateadd(month,19,@ODate))+'-'+datename(year,dateadd(month,19,@ODate)), datename(month,dateadd(month,20,@ODate))+'-'+datename(year,dateadd(month,20,@ODate)), datename(month,dateadd(month,21,@ODate))+'-'+datename(year,dateadd(month,21,@ODate)), datename(month,dateadd(month,22,@ODate))+'-'+datename(year,dateadd(month,22,@ODate)), datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'after '+datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'Total' ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')' AS BranchName, Count(DISTINCT a.OfficerId)AS NoOfOfficer, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')' ORDER BY a.BranchName+' ('+a.BranchId+')' ; INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfOfficer,0)))AS NoOfOfficer, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.NoOfOfficer, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 04:37:27 PM PageName: IndividualLoan_IndvFutureDemandReport String str: DECLARE @FDate DATE; SET @FDate='11/23/2025 12:00:00 AM'; DECLARE @ODate DATE=dateadd(day,-datepart(day,@FDate)+1,@FDate); DECLARE @TTable TABLE ( LoanId VARCHAR(50), Year INT, Month INT, Dated DATE, Prin DECIMAL(10,2), Intt DECIMAL(10,2), Total DECIMAL(10,2) ); INSERT INTO @TTable ( LoanId, Year, Month, Prin, Intt, Total ) SELECT b.LoanId, Datepart(year,a.DDate)AS Year, Datepart(month, a.DDate)AS Month, SUM(a.Total)AS Prin, SUM(a.Total)AS Intt, SUM(a.Total)AS Total FROM GroupLoanLedger a WITH(nolock) INNER JOIN GroupLoanAccount b WITH(nolock) ON a.LoanId=b.LoanId WHERE a.PStatus='Due' GROUP BY b.LoanId, Datepart(year,a.DDate), Datepart(month, a.DDate); UPDATE a SET a.Dated=rtrim(convert(CHAR,a.Month))+'/01/'+rtrim(convert(CHAR,a.Year)) FROM @TTable a; DECLARE @FTable TABLE ( SrNo INT IDENTITY(1,1), BranchId VARCHAR(20), BranchName VARCHAR(100), OfficerId VARCHAR(20), OfficerName VARCHAR(100), MemberId VARCHAR(20), MemberName VARCHAR(100), LoanId VARCHAR(50), Month0 VARCHAR(25), Month1 VARCHAR(25), Month2 VARCHAR(25), Month3 VARCHAR(25), Month4 VARCHAR(25), Month5 VARCHAR(25), Month6 VARCHAR(25), Month7 VARCHAR(25), Month8 VARCHAR(25), Month9 VARCHAR(25), Month10 VARCHAR(25), Month11 VARCHAR(25), Month12 VARCHAR(25), Month13 VARCHAR(25), Month14 VARCHAR(25), Month15 VARCHAR(25), Month16 VARCHAR(25), Month17 VARCHAR(25), Month18 VARCHAR(25), Month19 VARCHAR(25), Month20 VARCHAR(25), Month21 VARCHAR(25), Month22 VARCHAR(25), Month23 VARCHAR(25), Month24 VARCHAR(25), Month25 VARCHAR(25), Total VARCHAR(25) ); INSERT INTO @FTable ( BranchId, BranchName, OfficerId, OfficerName, MemberId, MemberName, LoanId, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId AS OfficerId, ld.LoanOfficerName AS OfficerName, ld.MemberId, ld.MemberName, ld.LoanId,(SELECT SUM(Total)AS Total FROM @TTable WHERE Dateddateadd(month,24,@ODate) AND LoanId=ld.LoanId)AS Month25, 0 AS Total FROM GroupLoanAccount ld WITH(nolock) WHERE 1=1 AND ld.LoanStatus='LoanDisbursed' AND ld.BranchId='101' AND ld.LoanOfficerId='EMP00147' ORDER BY ld.BranchName, ld.LoanOfficerName, ld.MemberId, ld.MemberName, ld.LoanId ; UPDATE a SET a.Total=convert(DECIMAL(10,2),isnull(a.Month0,0))+convert(DECIMAL(10,2),isnull(a.Month1,0))+convert(DECIMAL(10,2),isnull(a.Month2,0))+convert(DECIMAL(10,2),isnull(a.Month3,0))+convert(DECIMAL(10,2),isnull(a.Month4,0))+convert(DECIMAL(10,2),isnull(a.Month5,0))+convert(DECIMAL(10,2),isnull(a.Month6,0))+convert(DECIMAL(10,2),isnull(a.Month7,0))+convert(DECIMAL(10,2),isnull(a.Month8,0))+convert(DECIMAL(10,2),isnull(a.Month9,0))+convert(DECIMAL(10,2),isnull(a.Month10,0))+convert(DECIMAL(10,2),isnull(a.Month11,0))+convert(DECIMAL(10,2),isnull(a.Month12,0))+convert(DECIMAL(10,2),isnull(a.Month13,0))+convert(DECIMAL(10,2),isnull(a.Month14,0))+convert(DECIMAL(10,2),isnull(a.Month15,0))+convert(DECIMAL(10,2),isnull(a.Month16,0))+convert(DECIMAL(10,2),isnull(a.Month17,0))+convert(DECIMAL(10,2),isnull(a.Month18,0))+convert(DECIMAL(10,2),isnull(a.Month19,0))+convert(DECIMAL(10,2),isnull(a.Month20,0))+convert(DECIMAL(10,2),isnull(a.Month21,0))+convert(DECIMAL(10,2),isnull(a.Month22,0))+convert(DECIMAL(10,2),isnull(a.Month23,0))+convert(DECIMAL(10,2),isnull(a.Month24,0))+convert(DECIMAL(10,2),isnull(a.Month25,0)) FROM @FTable a WHERE a.SrNo>0 ; DECLARE @FFTable TABLE ( SrNo INT IDENTITY(1,1), BranchName VARCHAR(100), NoOfOfficer VARCHAR(20), NoOfCenter VARCHAR(20), NoOfLoan VARCHAR(20), Month0 VARCHAR(30), Month1 VARCHAR(30), Month2 VARCHAR(30), Month3 VARCHAR(30), Month4 VARCHAR(30), Month5 VARCHAR(30), Month6 VARCHAR(30), Month7 VARCHAR(30), Month8 VARCHAR(30), Month9 VARCHAR(30), Month10 VARCHAR(30), Month11 VARCHAR(30), Month12 VARCHAR(30), Month13 VARCHAR(30), Month14 VARCHAR(30), Month15 VARCHAR(30), Month16 VARCHAR(30), Month17 VARCHAR(30), Month18 VARCHAR(30), Month19 VARCHAR(30), Month20 VARCHAR(30), Month21 VARCHAR(30), Month22 VARCHAR(30), Month23 VARCHAR(30), Month24 VARCHAR(30), Month25 VARCHAR(30), Total VARCHAR(30) ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25, Total ) VALUES( 'Branch Name', 'No Of Officer', 'No Of Center', 'No Of Loan', 'before '+datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,0,@ODate))+'-'+datename(year,dateadd(month,0,@ODate)), datename(month,dateadd(month,1,@ODate))+'-'+datename(year,dateadd(month,1,@ODate)), datename(month,dateadd(month,2,@ODate))+'-'+datename(year,dateadd(month,2,@ODate)), datename(month,dateadd(month,3,@ODate))+'-'+datename(year,dateadd(month,3,@ODate)), datename(month,dateadd(month,4,@ODate))+'-'+datename(year,dateadd(month,4,@ODate)), datename(month,dateadd(month,5,@ODate))+'-'+datename(year,dateadd(month,5,@ODate)), datename(month,dateadd(month,6,@ODate))+'-'+datename(year,dateadd(month,6,@ODate)), datename(month,dateadd(month,7,@ODate))+'-'+datename(year,dateadd(month,7,@ODate)), datename(month,dateadd(month,8,@ODate))+'-'+datename(year,dateadd(month,8,@ODate)), datename(month,dateadd(month,9,@ODate))+'-'+datename(year,dateadd(month,9,@ODate)), datename(month,dateadd(month,10,@ODate))+'-'+datename(year,dateadd(month,10,@ODate)), datename(month,dateadd(month,11,@ODate))+'-'+datename(year,dateadd(month,11,@ODate)), datename(month,dateadd(month,12,@ODate))+'-'+datename(year,dateadd(month,12,@ODate)), datename(month,dateadd(month,13,@ODate))+'-'+datename(year,dateadd(month,13,@ODate)), datename(month,dateadd(month,14,@ODate))+'-'+datename(year,dateadd(month,14,@ODate)), datename(month,dateadd(month,15,@ODate))+'-'+datename(year,dateadd(month,15,@ODate)), datename(month,dateadd(month,16,@ODate))+'-'+datename(year,dateadd(month,16,@ODate)), datename(month,dateadd(month,17,@ODate))+'-'+datename(year,dateadd(month,17,@ODate)), datename(month,dateadd(month,18,@ODate))+'-'+datename(year,dateadd(month,18,@ODate)), datename(month,dateadd(month,19,@ODate))+'-'+datename(year,dateadd(month,19,@ODate)), datename(month,dateadd(month,20,@ODate))+'-'+datename(year,dateadd(month,20,@ODate)), datename(month,dateadd(month,21,@ODate))+'-'+datename(year,dateadd(month,21,@ODate)), datename(month,dateadd(month,22,@ODate))+'-'+datename(year,dateadd(month,22,@ODate)), datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'after '+datename(month,dateadd(month,23,@ODate))+'-'+datename(year,dateadd(month,23,@ODate)), 'Total' ); INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT a.BranchName+' ('+a.BranchId+')' AS BranchName, Count(DISTINCT a.OfficerId)AS NoOfOfficer, Count(DISTINCT a.CenterId)AS NoOfCenter, Count(DISTINCT a.LoanId)AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FTable a WHERE a.SrNo>1 GROUP BY a.BranchName+' ('+a.BranchId+')' ORDER BY a.BranchName+' ('+a.BranchId+')' ; INSERT INTO @FFTable ( BranchName, NoOfOfficer, NoOfCenter, NoOfLoan, Month0, Month1, Month2, Month3, Month4, Month5, Month6, Month7, Month8, Month9, Month10, Month11, Month12, Month13, Month14, Month15, Month16, Month17, Month18, Month19, Month20, Month21, Month22, Month23, Month24, Month25 ) SELECT 'Total'AS BranchName, SUM(convert(INT,isnull(a.NoOfOfficer,0)))AS NoOfOfficer, SUM(convert(INT,isnull(a.NoOfCenter,0)))AS NoOfCenter, SUM(convert(INT,isnull(a.NoOfLoan,0)))AS NoOfLoan, SUM(convert(DECIMAL(10,2),isnull(a.Month0,0)))AS Month0, SUM(convert(DECIMAL(10,2),isnull(a.Month1,0)))AS Month1, SUM(convert(DECIMAL(10,2),isnull(a.Month2,0)))AS Month2, SUM(convert(DECIMAL(10,2),isnull(a.Month3,0)))AS Month3, SUM(convert(DECIMAL(10,2),isnull(a.Month4,0)))AS Month4, SUM(convert(DECIMAL(10,2),isnull(a.Month5,0)))AS Month5, SUM(convert(DECIMAL(10,2),isnull(a.Month6,0)))AS Month6, SUM(convert(DECIMAL(10,2),isnull(a.Month7,0)))AS Month7, SUM(convert(DECIMAL(10,2),isnull(a.Month8,0)))AS Month8, SUM(convert(DECIMAL(10,2),isnull(a.Month9,0)))AS Month9, SUM(convert(DECIMAL(10,2),isnull(a.Month10,0)))AS Month10, SUM(convert(DECIMAL(10,2),isnull(a.Month11,0)))AS Month11, SUM(convert(DECIMAL(10,2),isnull(a.Month12,0)))AS Month12, SUM(convert(DECIMAL(10,2),isnull(a.Month13,0)))AS Month13, SUM(convert(DECIMAL(10,2),isnull(a.Month14,0)))AS Month14, SUM(convert(DECIMAL(10,2),isnull(a.Month15,0)))AS Month15, SUM(convert(DECIMAL(10,2),isnull(a.Month16,0)))AS Month16, SUM(convert(DECIMAL(10,2),isnull(a.Month17,0)))AS Month17, SUM(convert(DECIMAL(10,2),isnull(a.Month18,0)))AS Month18, SUM(convert(DECIMAL(10,2),isnull(a.Month19,0)))AS Month19, SUM(convert(DECIMAL(10,2),isnull(a.Month20,0)))AS Month20, SUM(convert(DECIMAL(10,2),isnull(a.Month21,0)))AS Month21, SUM(convert(DECIMAL(10,2),isnull(a.Month22,0)))AS Month22, SUM(convert(DECIMAL(10,2),isnull(a.Month23,0)))AS Month23, SUM(convert(DECIMAL(10,2),isnull(a.Month24,0)))AS Month24, SUM(convert(DECIMAL(10,2),isnull(a.Month25,0)))AS Month25 FROM @FFTable a WHERE a.SrNo>1 ; SELECT a.SrNo, a.BranchName, a.NoOfOfficer, a.NoOfCenter, a.NoOfLoan, a.Month0, a.Month1, a.Month2, a.Month3, a.Month4, a.Month5, a.Month6, a.Month7, a.Month8, a.Month9, a.Month10, a.Month11, a.Month12, a.Month13, a.Month14, a.Month15, a.Month16, a.Month17, a.Month18, a.Month19, a.Month20, a.Month21, a.Month22, a.Month23, a.Month24, a.Month25, a.Total FROM @FFTable a WHERE 1=1 ORDER BY a.SrNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l1hhjunr StackTrace: at IndividualLoan_IndvFutureDemandReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 04:39:41 PM PageName: IndividualLoan_IndvHeadOfficeReport String str: String sql: DECLARE @TillDate DATE; SET @TillDate='10/24/2025 12:00:00 AM'; DECLARE @FTable TABLE ( SrNo INT, BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), NoOfOfficer INT, NoOfCenter INT, NoOfMember INT, NoOfActiveLoan INT, OutstandingAmount DECIMAL(18,2), NoOfTotalLoan INT, TotalDisbursed DECIMAL(18,2), ProcessingFee DECIMAL(18,2), SecurityFee DECIMAL(18,2), InsuranceFee DECIMAL(18,2), OtherFee DECIMAL(18,2), ServiceTax DECIMAL(18,2), TotalFee DECIMAL(18,2), ODNo INT, ODAmount DECIMAL(18,2), ODOutstanding DECIMAL(18,2), OD30No INT, OD30Amount DECIMAL(18,2), OD30Outstanding DECIMAL(18,2), OD60No INT, OD60Amount DECIMAL(18,2), OD60Outstanding DECIMAL(18,2), OD90No INT, OD90Amount DECIMAL(18,2), OD90Outstanding DECIMAL(18,2), OD180No INT, OD180Amount DECIMAL(18,2), OD180Outstanding DECIMAL(18,2), OD181No INT, OD181Amount DECIMAL(18,2), OD181Outstanding DECIMAL(18,2) ); DECLARE @ODOSTable TABLE ( BranchId VARCHAR(20), BranchName VARCHAR(50), LoanOfficerId VARCHAR(20), LoanOfficerName VARCHAR(50), LoanId VARCHAR(50), NoOfDays INT, ODAmount DECIMAL(18,2), BalanceAmount DECIMAL(18,2) ); INSERT INTO @ODOSTable ( BranchId, BranchName, LoanOfficerId, LoanOfficerName, LoanId, NoOfDays, ODAmount, BalanceAmount ) SELECT a.BranchId, a.BranchName, a.LoanOfficerId, a.LoanOfficerName, a.LoanId, c.NoOfDays, c.ODAmount, a.LoanAmount-isnull(b.PaidPrincipal,0)AS BalanceAmount FROM GroupLoanAccount a WITH(nolock) LEFT JOIN ( SELECT LoanId, SUM(Prin)AS PaidPrincipal FROM GroupLoanLedger WITH(nolock) WHERE PDatedateadd(day,-1,@TillDate) GROUP BY LoanId )c ON a.LoanId=c.LoanId WHERE a.DisburseDate<@TillDate AND a.LoanAmount-isnull(b.PaidPrincipal,0)>0 ; INSERT INTO @FTable ( BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfActiveLoan, OutstandingAmount ) SELECT BranchId, BranchName, Count(DISTINCT LoanOfficerId)AS NoOfOfficer, count(DISTINCT CenterId)AS NoOfCenter, count(DISTINCT LoanId)AS NoOfActiveLoan, SUM(BalanceAmount)AS OutstandingAmount FROM @ODOSTable WHERE 1=1 GROUP BY BranchId, BranchName ; UPDATE ta SET ta.NoOfMember=(SELECT count(1) FROM GroupLoanMemberDetail WITH(nolock) WHERE isnull(DropOutDate,'01/01/1900')!='01/01/1900' AND MemberJoinDate0 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD30No=tb.OD30No, ta.OD30Amount=tb.OD30Amount, ta.OD30Outstanding=tb.OD30Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD30No, SUM(a.ODAmount)AS OD30Amount, SUM(a.BalanceAmount)AS OD30Outstanding FROM @ODOSTable a WHERE a.NoOfDays>0 AND a.NoOfDays<31 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD60No=tb.OD60No, ta.OD60Amount=tb.OD60Amount, ta.OD60Outstanding=tb.OD60Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD60No, SUM(a.ODAmount)AS OD60Amount, SUM(a.BalanceAmount)AS OD60Outstanding FROM @ODOSTable a WHERE a.NoOfDays>30 AND a.NoOfDays<61 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD90No=tb.OD90No, ta.OD90Amount=tb.OD90Amount, ta.OD90Outstanding=tb.OD90Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD90No, SUM(a.ODAmount)AS OD90Amount, SUM(a.BalanceAmount)AS OD90Outstanding FROM @ODOSTable a WHERE a.NoOfDays>60 AND a.NoOfDays<91 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD180No=tb.OD180No, ta.OD180Amount=tb.OD180Amount, ta.OD180Outstanding=tb.OD180Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD180No, SUM(a.ODAmount)AS OD180Amount, SUM(a.BalanceAmount)AS OD180Outstanding FROM @ODOSTable a WHERE a.NoOfDays>90 AND a.NoOfDays<181 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; UPDATE ta SET ta.OD181No=tb.OD181No, ta.OD181Amount=tb.OD181Amount, ta.OD181Outstanding=tb.OD181Outstanding FROM @FTable ta INNER JOIN ( SELECT a.BranchId, count(DISTINCT a.LoanId)AS OD181No, SUM(a.ODAmount)AS OD181Amount, SUM(a.BalanceAmount)AS OD181Outstanding FROM @ODOSTable a WHERE a.NoOfDays>180 GROUP BY a.BranchId )tb ON ta.BranchId=tb.BranchId ; DELETE FROM DashBoardGroupLoanHeadOfficeSummaryReport ; INSERT INTO DashBoardGroupLoanHeadOfficeSummaryReport ( TillDate, EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding ) SELECT @TillDate AS TillDate, GETDATE() AS EntryTime, BranchId, BranchName, NoOfOfficer, NoOfCenter, NoOfMember, NoOfActiveLoan, OutstandingAmount, NoOfTotalLoan, TotalDisbursed, ProcessingFee, SecurityFee, InsuranceFee, OtherFee, ServiceTax, TotalFee, ODNo, ODAmount, ODOutstanding, OD30No, OD30Amount, OD30Outstanding, OD60No, OD60Amount, OD60Outstanding, OD90No, OD90Amount, OD90Outstanding, OD180No, OD180Amount, OD180Outstanding, OD181No, OD181Amount, OD181Outstanding FROM @FTable WHERE OutstandingAmount>0 ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 IndividualLoan_IndvHeadOfficeReport.UpdateHeadOfficerReport() TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 04:47:33 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='102' AND a.LoanOfficerId='EMP00143' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 04:47:33 PM PageName: IndividualLoan_IndvExtraPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='102' AND a.LoanOfficerId='EMP00143' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l2ncb3ku StackTrace: at IndividualLoan_IndvExtraPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 04:47:47 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 04:47:47 PM PageName: IndividualLoan_IndvExtraPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l2ncb3ku StackTrace: at IndividualLoan_IndvExtraPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 05:06:40 PM PageName: GroupLoan_BranchCenterFormationDetail String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_ehq0r4vs StackTrace: at GroupLoan_BranchCenterFormationDetail.grdData_Sorting(Object sender, GridViewSortEventArgs e) TargetSite: Void grdData_Sorting(System.Object, System.Web.UI.WebControls.GridViewSortEventArgs) Time: 23/11/2025 05:06:43 PM PageName: GroupLoan_BranchCenterFormationDetail String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_ehq0r4vs StackTrace: at GroupLoan_BranchCenterFormationDetail.grdData_Sorting(Object sender, GridViewSortEventArgs e) TargetSite: Void grdData_Sorting(System.Object, System.Web.UI.WebControls.GridViewSortEventArgs) Time: 23/11/2025 05:09:44 PM PageName: GroupLoan_PrintGroupMemberCibilEquifaxHTML String str: SELECT a.SrNo, a.MemberId, a.MemberName, a.MemberType, a.CibilPersonName, a.ReqFileName, a.ResFileName, rtrim(Convert(CHAR,a.EntryTime,106))+' '+rtrim(Convert(CHAR,a.EntryTime,108))AS EntryTime, a.EntryUser, a.EquifaxScoreName, a.EquifaxScoreValue, a.ScoreDetailName, a.ScoreDetailType, a.ScoreDetailValue, a.ScoreDetail1Code, a.ScoreDetail1Description, a.ScoreDetail2Code, a.ScoreDetail2Description, a.ONoOfOpenAccount, a.ONoOfPastDueAccount, a.OTotalOutstanding, a.OTotalInstallment, a.RNoOfOpenAccount, a.RNoOfPastDueAccount, a.RTotalOutstanding, a.RTotalInstallment, a.RTotalSanctionAmount, a.RTotalAccount, a.RTotalPastDueAmount, a.RMaxDaysPastDue, a.RNoOfLoanWithReportedEMI, a.RTotalWriteOffAmount, a.RTotalHighCredit, a.ROldestAccount, a.RRecentAccount, a.MNoOfOpenAccount, a.MNoOfPastDueAccount, a.MTotalOutstanding, a.MTotalInstallment, a.MTotalSanctionAmount, a.MTotalAccount, a.MTotalPastDueAmount, a.MMaxDaysPastDue, a.MNoOfLoanWithReportedEMI, a.MTotalWriteOffAmount, a.MTotalHighCredit, a.MOldestAccount, a.MRecentAccount, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyPhysical')+(SELECT replace(replace(ReportValue,'~',''),'/','\') FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupMemberKYCFolder')AS MemberCibilFolder FROM GroupMemberCibilEquifax a WITH(nolock) WHERE a.SrNo='10' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Could not find file 'C:\inetpub\vhosts\valourinfotech.in\grouploan.valourinfotech.in\UploadedDocs\GroupMemberKYC\M103000059\M103000059MemEquiRes638865424648988816.txt'. Source: mscorlib StackTrace: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost) at System.IO.StreamReader..ctor(String path, Encoding encoding) at System.IO.File.InternalReadAllLines(String path, Encoding encoding) at GroupLoan_PrintGroupMemberCibilEquifaxHTML.ViewCBDetail(String SrNo) TargetSite: Void WinIOError(Int32, System.String) Time: 23/11/2025 05:11:18 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 05:11:18 PM PageName: IndividualLoan_IndvExtraPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l2ncb3ku StackTrace: at IndividualLoan_IndvExtraPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 05:18:41 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 05:18:41 PM PageName: IndividualLoan_IndvExtraPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l2ncb3ku StackTrace: at IndividualLoan_IndvExtraPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 05:19:08 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 05:19:08 PM PageName: IndividualLoan_IndvExtraPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l2ncb3ku StackTrace: at IndividualLoan_IndvExtraPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 05:28:54 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 05:28:54 PM PageName: IndividualLoan_IndvExtraPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00146' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l2ncb3ku StackTrace: at IndividualLoan_IndvExtraPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 05:29:00 PM PageName: DataTableResult String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00150' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'CenterId'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 05:29:00 PM PageName: IndividualLoan_IndvExtraPaymentReport String str: DECLARE @TTable TABLE ( LoanId VARCHAR(50), PDate DATE ); INSERT INTO @TTable ( LoanId, PDate ) SELECT LoanId, PDate FROM GroupLoanLedger WITH(nolock) WHERE Total>0 AND PStatus='Paid' AND DDate>=PDate AND PDate>='11/23/2025 12:00:00 AM' AND PDate<'11/24/2025 12:00:00 AM' GROUP BY PDate, LoanId HAVING count(DISTINCT DDate)>1; SELECT tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, count(DISTINCT tt.CenterId)AS NoOfCenter, count(DISTINCT tt.LoanId)AS NoOfLoans, SUM(tt.NoOfEMI)AS NoOfEMI, SUM(tt.Prin)AS Prin, SUM(tt.Intt)AS Intt, SUM(tt.Total)AS Total FROM ( SELECT a.BranchName+' ('+a.BranchId+')'AS BranchName, a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106)AS PDated, count(DISTINCT DNo)AS NoOfEMI, SUM(b.Prin)AS Prin, SUM(b.Intt)AS Intt, SUM(b.Total)AS Total, b.PDate FROM GroupLoanAccount a WITH(nolock) INNER JOIN ( SELECT ta.LoanId, ta.DNo, ta.DDate, ta.PDate, ta.Prin, ta.Intt, ta.Total FROM GroupLoanLedger ta WITH(nolock) INNER JOIN @TTable tb ON ta.LoanId=tb.LoanId AND ta.PDate=tb.PDate )b ON a.LoanId=b.LoanId WHERE 1=1 AND a.BranchId='100' AND a.LoanOfficerId='EMP00150' GROUP BY a.BranchName+' ('+a.BranchId+')', a.LoanOfficerId, a.LoanOfficerName, a.MemberId, a.MemberName, a.LoanId, convert(CHAR,b.PDate,106), b.PDate )tt WHERE 1=1 GROUP BY tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName ORDER BY tt.BranchName, tt.LoanOfficerName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_l2ncb3ku StackTrace: at IndividualLoan_IndvExtraPaymentReport.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/11/2025 05:50:41 PM PageName: ODLoan_ODLoanApplicationVerification String str: SELECT a.BranchId, a.BranchName, a.GroupOfficerId, a.GroupOfficerName, a.MemberId, a.MemberName, a.MemberGuardianName, a.MemberMobileNo, a.NomineeMobileNo, a.MemberAddress, Convert(char, a.MemberJoinDate, 103)AS MemberJoinDate, convert(char,a.MemberDOB,103)AS MemberDOB, a.MemberAge, a.MemberGender, CASE WHEN isnull(a.DropOutDate, '01/01/1900')= '01/01/1900' THEN 'Active' ELSE 'DropOut' END AS MemberLoanStatus, a.MemberProfileStatus, a.MemberRemark, b.BankAccountType, b.MemberBankId, b.MemberBankName, b.BankAccountNo, b.BankIFSCCode, b.BankBranchName, b.NomineeSalutation1, b.NomineeName1,b.NomineeGender1, b.NomineeGuardianSalutation1, b.NomineeGuardianName1, Convert(char, b.NomineeDOB1, 103)AS NomineeDOB1, b.NomineeAge1, b.NomineeRelation1, b.NomineeAnnualIncome1, b.NomineeOccupation1, b.NomineeAddress1, b.NomineeLandMark1, b.NomineeAadharNo1, b.NomineePanNo1, b.NomineeMobileNo1, b.LoanPurpose, b.LoanAmount AS RequestAmount, a.NomineeName, Convert(char, a.NomineeDOB, 103)AS NomineeDOB, a.NomineeAge, a.NomineeRelation FROM GroupLoanMemberDetail a WITH(nolock) LEFT JOIN GroupLoanMemberNominee b WITH(nolock) ON a.MemberId = b.MemberId WHERE isnull(a.GroupName,'GroupLoan')='Individual' AND a.MemberId='M101000142' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Column 'CenterId' does not belong to table . Source: System.Data StackTrace: at System.Data.DataRow.GetDataColumn(String columnName) at System.Data.DataRow.get_Item(String columnName) at ODLoan_ODLoanApplicationVerification.FillMemberId() TargetSite: System.Data.DataColumn GetDataColumn(System.String) Time: 23/11/2025 05:57:47 PM PageName: DataTableResult String str: DECLARE @MemberId VARCHAR(20); SET @MemberId='M101000142'; DECLARE @URL VARCHAR(100); SET @URL=(SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL'AND 1=1); DECLARE @Folder VARCHAR(100); SET @Folder=(SELECT replace(KYCFolderLocation,'~/','')+'/' FROM GroupLoanMemberDetail WITH(nolock) WHERE MemberId=@MemberId); SELECT isnull(a.BranchName,'N/A')+' ('+isnull(a.BranchId,'N/A')+')' AS C0, isnull(a.GroupOfficerName,'N/A')+' ('+isnull(a.GroupOfficerId,'N/A')+')'AS C1, isnull(a.CenterName,'N/A')+' ('+isnull(a.CenterId,'N/A')+')'AS C2, isnull(convert(CHAR,a.MemberJoinDate,106),'N/A')AS C3, isnull(a.MemberId,'N/A')AS C4, isnull(a.MemberSalutation,'N/A')+' '+isnull(a.MemberName,'N/A')AS C5, isnull(a.GuardianSalutation,'N/A')+' '+isnull(a.MemberGuardianName,'N/A')AS C6, isnull(a.MemberGender,'N/A')AS C7, rtrim(isnull(convert(CHAR,a.MemberDOB,106),'N/A'))+' ('+rtrim(isnull(convert(CHAR,a.MemberAge),'N/A'))+')'AS C8, isnull(a.MemberMobileNo,'N/A')AS C9, isnull(a.MemberOccupation,'N/A')AS C10, isnull(b.MemberEducation,'N/A')AS C11, rtrim(isnull(convert(CHAR,a.MemberAnnualIncome),'N/A'))AS C12, rtrim(isnull(convert(CHAR,a.FamilyAnnualExpence),'N/A'))AS C13, isnull(a.NomineeSalutation,'N/A')+' '+isnull(a.NomineeName,'N/A')AS C14, isnull(a.NomineeGuardianSalutation,'N/A')+' '+isnull(a.NomineeGuardianName,'N/A')AS C15, isnull(a.NomineeGender,'N/A')AS C16, rtrim(isnull(convert(CHAR,a.NomineeDOB,106),'N/A'))+' ('+rtrim(isnull(convert(CHAR,a.NomineeAge),'N/A'))+')'AS C17, isnull(a.NomineeMobileNo,'N/A')AS C18, isnull(a.NomineeOccupation,'N/A')AS C19, isnull(b.NomineeEducation,'N/A')AS C20, isnull(convert(CHAR,a.NomineeAnnualIncome),'N/A')AS C21, isnull(a.NomineeRelation,'N/A')AS C22, isnull(b.MemberReligion,'N/A')AS C23, isnull(b.MemberCategory,'N/A')AS C24, isnull(b.MemberMaritalStatus,'N/A')AS C25, isnull(b.LoanPurpose,'N/A')AS C26, isnull(convert(CHAR,b.LoanAmount),'N/A')AS C27, rtrim(isnull(convert(CHAR,b.MemberDOM),'N/A'))AS C28, isnull(b.SpouseName,'N/A')AS C29, isnull(b.BankAccountType,'N/A')AS C30, isnull(b.MemberBankName,'N/A')AS C31, isnull(b.BankAccountNo,'N/A')AS C32, isnull(b.BankIFSCCode,'N/A')AS C33, isnull(b.BankBranchName,'N/A')AS C34, isnull(a.MemberLatitude,'N/A')+' - '+isnull(a.MemberLongitude,'N/A')AS C35, isnull(b.LocationType,'N/A')AS C36, isnull(b.PostalAddress,'N/A')+' '+isnull(b.PostalHouseNo,'N/A')+' '+isnull(b.PostalVillageName,'N/A')+' '+isnull(b.PostalPostOffice,'N/A')+' '+isnull(b.PostalAreaName,'N/A')+' '+isnull(b.PostalLandMark,'N/A')+' '+isnull(b.PostalCityName,'N/A')+' '+isnull(b.PostalDistrictName,'N/A')+' '+isnull(b.PostalStateName,'N/A')+' '+isnull(b.PostalPinCode,'N/A')AS C37, isnull(b.PermanentAddress,'N/A')+' '+isnull(b.PermanentHouseNo,'N/A')+' '+isnull(b.PermanentVillageName,'N/A')+' '+isnull(b.PermanentPostOffice,'N/A')+' '+isnull(b.PermanentAreaName,'N/A')+' '+isnull(b.PermanentLandMark,'N/A')+' '+isnull(b.PermanentCityName,'N/A')+' '+isnull(b.PermanentDistrictName,'N/A')+' '+isnull(b.PermanentStateName,'N/A')+' '+isnull(b.PermanentPinCode,'N/A')AS C38, isnull(a.MemberAadharNo,'N/A')AS C41, isnull(a.MemberPanNo,'N/A')AS C42, isnull(a.MemberVoterIdNo,'N/A')AS C43, isnull(a.MemberDLNo,'N/A')AS C44, isnull(a.MemberPOIType,'N/A')+' ( '+isnull(a.MemberPOINo,'N/A')+' )'AS C45, isnull(a.MemberPOAType,'N/A')+' ( '+isnull(a.MemberPOANo,'N/A')+' )'AS C46, isnull(a.NomineeAadharNo,'N/A')AS C47, isnull(a.NomineeVoterIdNo,'N/A')AS C48, isnull(a.NomineePANNo,'N/A')AS C49, isnull(a.NomineeDLNo,'N/A')AS C50, isnull(a.NomineePOIType,'N/A')+' ( '+isnull(a.NomineePOINo,'N/A')+' )'AS C51, isnull(a.NomineePOAType,'N/A')+' ( '+isnull(a.NomineePOANo,'N/A')+' )'AS C52, @URL+@Folder+a.MemberPhoto AS C53, @URL+@Folder+a.MemberSignature AS C54, @URL+@Folder+a.MemberPOIFront AS C55, @URL+@Folder+a.MemberPOIBack AS C56, @URL+@Folder+a.MemberPOAFront AS C57, @URL+@Folder+a.MemberPOABack AS C58, @URL+@Folder+a.MemberBankPassBook AS C59, @URL+@Folder+a.NomineePhoto AS C60, @URL+@Folder+a.NomineeSignature AS C61, @URL+@Folder+a.NomineePOIFront AS C62, @URL+@Folder+a.NomineePOIBack AS C63, @URL+@Folder+a.NomineePOAFront AS C64, @URL+@Folder+a.NomineePOABack AS C65, @URL+@Folder+a.MemberNomineeJointPhoto AS C66, isnull(a.RationCard,'N/A')AS C67, isnull(a.ElectricityBill,'N/A')AS C68, c.ToiletFacility AS C101, c.WaterFacility AS C102, c.WaterPurification AS C103, c.ElectricityConnection AS C104, c.SolarPanel AS C105, c.FoodPreparation AS C106, c.EligibleChildren AS C107, c.EligibleGirlChild AS C108, c.LivingType AS C109, c.HouseType AS C110, c.NumberOfRoom AS C111, c.LiveStock AS C112, c.NoOfVehicles AS C113, c.LandInAcres AS C114, c.NoOfChildren AS C115, c.Siblings AS C116, c.MembersInFamily AS C117, c.WorkingMember AS C118, c.MemberReputation AS C119, c.WorkingStatus AS C120, c.BusinessSalaried AS C121, c.WorkingProfile AS C122, c.WorkingSince AS C123, c.ParentalBusiness AS C124, c.PresentResidence AS C125, c.MonthlySavings AS C126, c.ActiveLoanBank AS C127, c.BorrowFrequently AS C128, c.InformalLenders AS C129, c.FamilyBusinessIncome AS C130, c.SalaryPensionIncome AS C131, c.WagesIncome AS C132, c.OtherIncome AS C133, c.Salary AS C134, c.Rent AS C135, c.Scholarship AS C136, c.GovernmentScheme AS C137, c.Agriculture AS C138, c.Other AS C139, c.TotalIncome AS C140, c.Food AS C141, c.Education AS C142, c.Health AS C143, c.EMIOfLoan AS C144, c.HouseRent AS C145, c.ElectricityTax AS C146, c.WaterTax AS C147, c.PartyFucntion AS C148, c.FareCloth AS C149, c.OtherExpenses AS C150, c.TotalExpenses AS C151, d.ChildName AS C175, d.ChildAge AS C176, d.ChildGender AS C177, d.IdentityProofType AS C178, d.IdentityProofNo AS C179, (SELECT ReportValue AS CompanyName FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyName')AS C99, (SELECT ReportValue AS CompanyDetail1 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail1')AS C98, (SELECT ReportValue AS CompanyDetail2 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail2')AS C97, (SELECT ReportValue AS CompanyDetail3 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail3')AS C96, (SELECT ReportValue AS GroupMemberFullDetailRDLC FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupMemberFullDetailRDLC')AS C95 FROM GroupLoanMemberDetail a WITH(nolock) LEFT JOIN GroupLoanMemberNominee b WITH(nolock) ON a.MemberId=b.MemberId LEFT JOIN GroupLoanMemberFinance c WITH(nolock) ON a.MemberId=c.MemberId LEFT JOIN GroupLoanMemberChildren d WITH(nolock) ON a.MemberId=d.MemberId WHERE a.MemberId=@MemberId ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'KYCFolderLocation'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 23/11/2025 05:57:47 PM PageName: GroupLoan_PrintRDLCPage String str: DECLARE @MemberId VARCHAR(20); SET @MemberId='M101000142'; DECLARE @URL VARCHAR(100); SET @URL=(SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL'AND 1=1); DECLARE @Folder VARCHAR(100); SET @Folder=(SELECT replace(KYCFolderLocation,'~/','')+'/' FROM GroupLoanMemberDetail WITH(nolock) WHERE MemberId=@MemberId); SELECT isnull(a.BranchName,'N/A')+' ('+isnull(a.BranchId,'N/A')+')' AS C0, isnull(a.GroupOfficerName,'N/A')+' ('+isnull(a.GroupOfficerId,'N/A')+')'AS C1, isnull(a.CenterName,'N/A')+' ('+isnull(a.CenterId,'N/A')+')'AS C2, isnull(convert(CHAR,a.MemberJoinDate,106),'N/A')AS C3, isnull(a.MemberId,'N/A')AS C4, isnull(a.MemberSalutation,'N/A')+' '+isnull(a.MemberName,'N/A')AS C5, isnull(a.GuardianSalutation,'N/A')+' '+isnull(a.MemberGuardianName,'N/A')AS C6, isnull(a.MemberGender,'N/A')AS C7, rtrim(isnull(convert(CHAR,a.MemberDOB,106),'N/A'))+' ('+rtrim(isnull(convert(CHAR,a.MemberAge),'N/A'))+')'AS C8, isnull(a.MemberMobileNo,'N/A')AS C9, isnull(a.MemberOccupation,'N/A')AS C10, isnull(b.MemberEducation,'N/A')AS C11, rtrim(isnull(convert(CHAR,a.MemberAnnualIncome),'N/A'))AS C12, rtrim(isnull(convert(CHAR,a.FamilyAnnualExpence),'N/A'))AS C13, isnull(a.NomineeSalutation,'N/A')+' '+isnull(a.NomineeName,'N/A')AS C14, isnull(a.NomineeGuardianSalutation,'N/A')+' '+isnull(a.NomineeGuardianName,'N/A')AS C15, isnull(a.NomineeGender,'N/A')AS C16, rtrim(isnull(convert(CHAR,a.NomineeDOB,106),'N/A'))+' ('+rtrim(isnull(convert(CHAR,a.NomineeAge),'N/A'))+')'AS C17, isnull(a.NomineeMobileNo,'N/A')AS C18, isnull(a.NomineeOccupation,'N/A')AS C19, isnull(b.NomineeEducation,'N/A')AS C20, isnull(convert(CHAR,a.NomineeAnnualIncome),'N/A')AS C21, isnull(a.NomineeRelation,'N/A')AS C22, isnull(b.MemberReligion,'N/A')AS C23, isnull(b.MemberCategory,'N/A')AS C24, isnull(b.MemberMaritalStatus,'N/A')AS C25, isnull(b.LoanPurpose,'N/A')AS C26, isnull(convert(CHAR,b.LoanAmount),'N/A')AS C27, rtrim(isnull(convert(CHAR,b.MemberDOM),'N/A'))AS C28, isnull(b.SpouseName,'N/A')AS C29, isnull(b.BankAccountType,'N/A')AS C30, isnull(b.MemberBankName,'N/A')AS C31, isnull(b.BankAccountNo,'N/A')AS C32, isnull(b.BankIFSCCode,'N/A')AS C33, isnull(b.BankBranchName,'N/A')AS C34, isnull(a.MemberLatitude,'N/A')+' - '+isnull(a.MemberLongitude,'N/A')AS C35, isnull(b.LocationType,'N/A')AS C36, isnull(b.PostalAddress,'N/A')+' '+isnull(b.PostalHouseNo,'N/A')+' '+isnull(b.PostalVillageName,'N/A')+' '+isnull(b.PostalPostOffice,'N/A')+' '+isnull(b.PostalAreaName,'N/A')+' '+isnull(b.PostalLandMark,'N/A')+' '+isnull(b.PostalCityName,'N/A')+' '+isnull(b.PostalDistrictName,'N/A')+' '+isnull(b.PostalStateName,'N/A')+' '+isnull(b.PostalPinCode,'N/A')AS C37, isnull(b.PermanentAddress,'N/A')+' '+isnull(b.PermanentHouseNo,'N/A')+' '+isnull(b.PermanentVillageName,'N/A')+' '+isnull(b.PermanentPostOffice,'N/A')+' '+isnull(b.PermanentAreaName,'N/A')+' '+isnull(b.PermanentLandMark,'N/A')+' '+isnull(b.PermanentCityName,'N/A')+' '+isnull(b.PermanentDistrictName,'N/A')+' '+isnull(b.PermanentStateName,'N/A')+' '+isnull(b.PermanentPinCode,'N/A')AS C38, isnull(a.MemberAadharNo,'N/A')AS C41, isnull(a.MemberPanNo,'N/A')AS C42, isnull(a.MemberVoterIdNo,'N/A')AS C43, isnull(a.MemberDLNo,'N/A')AS C44, isnull(a.MemberPOIType,'N/A')+' ( '+isnull(a.MemberPOINo,'N/A')+' )'AS C45, isnull(a.MemberPOAType,'N/A')+' ( '+isnull(a.MemberPOANo,'N/A')+' )'AS C46, isnull(a.NomineeAadharNo,'N/A')AS C47, isnull(a.NomineeVoterIdNo,'N/A')AS C48, isnull(a.NomineePANNo,'N/A')AS C49, isnull(a.NomineeDLNo,'N/A')AS C50, isnull(a.NomineePOIType,'N/A')+' ( '+isnull(a.NomineePOINo,'N/A')+' )'AS C51, isnull(a.NomineePOAType,'N/A')+' ( '+isnull(a.NomineePOANo,'N/A')+' )'AS C52, @URL+@Folder+a.MemberPhoto AS C53, @URL+@Folder+a.MemberSignature AS C54, @URL+@Folder+a.MemberPOIFront AS C55, @URL+@Folder+a.MemberPOIBack AS C56, @URL+@Folder+a.MemberPOAFront AS C57, @URL+@Folder+a.MemberPOABack AS C58, @URL+@Folder+a.MemberBankPassBook AS C59, @URL+@Folder+a.NomineePhoto AS C60, @URL+@Folder+a.NomineeSignature AS C61, @URL+@Folder+a.NomineePOIFront AS C62, @URL+@Folder+a.NomineePOIBack AS C63, @URL+@Folder+a.NomineePOAFront AS C64, @URL+@Folder+a.NomineePOABack AS C65, @URL+@Folder+a.MemberNomineeJointPhoto AS C66, isnull(a.RationCard,'N/A')AS C67, isnull(a.ElectricityBill,'N/A')AS C68, c.ToiletFacility AS C101, c.WaterFacility AS C102, c.WaterPurification AS C103, c.ElectricityConnection AS C104, c.SolarPanel AS C105, c.FoodPreparation AS C106, c.EligibleChildren AS C107, c.EligibleGirlChild AS C108, c.LivingType AS C109, c.HouseType AS C110, c.NumberOfRoom AS C111, c.LiveStock AS C112, c.NoOfVehicles AS C113, c.LandInAcres AS C114, c.NoOfChildren AS C115, c.Siblings AS C116, c.MembersInFamily AS C117, c.WorkingMember AS C118, c.MemberReputation AS C119, c.WorkingStatus AS C120, c.BusinessSalaried AS C121, c.WorkingProfile AS C122, c.WorkingSince AS C123, c.ParentalBusiness AS C124, c.PresentResidence AS C125, c.MonthlySavings AS C126, c.ActiveLoanBank AS C127, c.BorrowFrequently AS C128, c.InformalLenders AS C129, c.FamilyBusinessIncome AS C130, c.SalaryPensionIncome AS C131, c.WagesIncome AS C132, c.OtherIncome AS C133, c.Salary AS C134, c.Rent AS C135, c.Scholarship AS C136, c.GovernmentScheme AS C137, c.Agriculture AS C138, c.Other AS C139, c.TotalIncome AS C140, c.Food AS C141, c.Education AS C142, c.Health AS C143, c.EMIOfLoan AS C144, c.HouseRent AS C145, c.ElectricityTax AS C146, c.WaterTax AS C147, c.PartyFucntion AS C148, c.FareCloth AS C149, c.OtherExpenses AS C150, c.TotalExpenses AS C151, d.ChildName AS C175, d.ChildAge AS C176, d.ChildGender AS C177, d.IdentityProofType AS C178, d.IdentityProofNo AS C179, (SELECT ReportValue AS CompanyName FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyName')AS C99, (SELECT ReportValue AS CompanyDetail1 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail1')AS C98, (SELECT ReportValue AS CompanyDetail2 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail2')AS C97, (SELECT ReportValue AS CompanyDetail3 FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyDetail3')AS C96, (SELECT ReportValue AS GroupMemberFullDetailRDLC FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupMemberFullDetailRDLC')AS C95 FROM GroupLoanMemberDetail a WITH(nolock) LEFT JOIN GroupLoanMemberNominee b WITH(nolock) ON a.MemberId=b.MemberId LEFT JOIN GroupLoanMemberFinance c WITH(nolock) ON a.MemberId=c.MemberId LEFT JOIN GroupLoanMemberChildren d WITH(nolock) ON a.MemberId=d.MemberId WHERE a.MemberId=@MemberId ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_uxyfjgek StackTrace: at GroupLoan_PrintRDLCPage.GroupMemberFullDetail() TargetSite: Void GroupMemberFullDetail() Time: 23/11/2025 05:58:05 PM PageName: GroupLoan_PrintGroupMemberFullDetailHTML String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_goc3n2z5 StackTrace: at GroupLoan_PrintGroupMemberFullDetailHTML.Page_Load(Object sender, EventArgs e) TargetSite: Void Page_Load(System.Object, System.EventArgs) Time: 23/11/2025 06:03:59 PM PageName: GroupLoan_GroupMemberRegistrationWithKyc String str: SELECT RelationId, RelationName FROM RelationNameMaster WITH(nolock) WHERE RelationStatus='Active' ORDER BY RelationName ; SELECT BankId, BankName FROM BankNameMaster WITH(nolock) WHERE BankStatus='Active' ORDER BY BankName ; SELECT StateId, StateName FROM StateNameMaster WITH(nolock) WHERE StateStatus='Active' ORDER BY StateName ; SELECT ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserName')AS APIUserName, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserStatus')AS APIUserStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='AadharNoVerificationAPI')AS AadharNoVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='PANNoVerificationAPI')AS PANNoVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='VoterIdVerificationAPI')AS VoterIdVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='BankAccountAdvanceVerificationAPI')AS BankAccountAdvanceVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberProfileStatus')AS GroupMemberProfileStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberCGTStatus')AS GroupMemberCGTStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='IndividualMemberCGT')AS IndividualMemberCGT, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberAadharNo')AS GroupMemberAadharNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberAadharVerify')AS GroupMemberAadharVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberPANNo')AS GroupMemberPANNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberPANVerify')AS GroupMemberPANVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberVoterId')AS GroupMemberVoterId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberVoterVerify')AS GroupMemberVoterVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberMobileNo')AS GroupMemberMobileNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberMobileVerify')AS GroupMemberMobileVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberSelfEdit')AS GroupMemberSelfEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberGuardianEdit')AS GroupMemberGuardianEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberLowerAge')AS GroupMemberLowerAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberUpperAge')AS GroupMemberUpperAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeAadharNo')AS GroupNomineeAadharNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeAadharVerify')AS GroupNomineeAadharVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineePANNo')AS GroupNomineePANNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineePANVerify')AS GroupNomineePANVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeVoterId')AS GroupNomineeVoterId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeVoterVerify')AS GroupNomineeVoterVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeMobileNo')AS GroupNomineeMobileNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeMobileVerify')AS GroupNomineeMobileVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeSelfEdit')AS GroupNomineeSelfEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeGuardianEdit')AS GroupNomineeGuardianEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeLowerAge')AS GroupNomineeLowerAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeUpperAge')AS GroupNomineeUpperAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberId')AS GroupMemberId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberRegSMS')AS GroupMemberRegSMS, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupLoanStatus')AS GroupLoanStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='IndividualLoanStatus')AS IndividualLoanStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupLoanBankAccount')AS GroupLoanBankAccount, ( SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')AS CompanyURL, ( SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupMemberKYCFolder')AS GroupMemberKYCFolder ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Column 'MemberProfileStatus' does not belong to table DSResult3. Source: System.Data StackTrace: at System.Data.DataRow.GetDataColumn(String columnName) at System.Data.DataRow.get_Item(String columnName) at GroupLoan_GroupMemberRegistrationWithKyc.FillDDLData() TargetSite: System.Data.DataColumn GetDataColumn(System.String) Time: 23/11/2025 06:28:35 PM PageName: UserMasterSetting_DashBoardEmployee String str: SELECT MonthYear, isnull(Disbursed,0)AS Disbursed FROM DashBoardGroupLoanMonthGraphicalReport WHERE 1=1 ORDER BY SrNo DESC String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_3dkmabqs StackTrace: at UserMasterSetting_DashBoardEmployee.FillDisbursementGraph() TargetSite: Void FillDisbursementGraph() Time: 23/11/2025 06:28:35 PM PageName: UserMasterSetting_DashBoardEmployee String str: SELECT a.ESId, a.BranchName, a.DepartmentName, a.DesignationName, a.EmployeeType, rtrim(Convert(CHAR,a.FromDate,106))+' - '+rtrim(Convert(CHAR,a.ToDate,106))AS SalaryPeriod, a.EmployeeId, a.EmployeeName, a.FinalNetPayable, a.NetPayable, a.Arrear, a.Incentive, a.Advance, a.LoanEMI, a.LeaveDeduction, a.LossOfPay, a.NoOfLeave, a.Holiday, a.Present, a.Absent, a.Worked, a.SalaryStatus, a.SalaryRemark, a.VoucherId, a.SalarySlipNo, a.SalaryOf1Day, a.TotalPayment, a.TotalPayable, a.TotalDeduction, a.CTCSalary, a.BasicPay, a.HouseRent, a.Dearness, a.Convence, a.Special, a.Medical, a.Communication, a.MealCoupen, a.Washing, a.Education, a.Professional, a.NightShift, a.BonusPay, a.NoticePay, a.LeaveTravel, a.Superannuation, a.OtherPay, a.Gratuity, a.SavingScheme, a.EmployerPF, a.EmployerESI, a.EmployerNPS, a.EmployeePF, a.EmployeeESI, a.EmployeeNPS, a.GroupInsurance, a.CanteenBill, a.TransportBill, a.MobileBill, a.ProfessionalTax, a.IncomeTax, a.OtherDeduction, a.SalaryMonth, a.SalaryYear FROM EmployeeSalaryDetail a WITH(nolock) WHERE 1=1 String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: A field or property with the name 'AttDay' was not found on the selected data source. Source: System.Web StackTrace: at System.Web.UI.WebControls.BoundField.TryGetSimplePropertyValue(Object dataItem, Object& data) at System.Web.UI.WebControls.BoundField.GetValue(Control controlContainer) at System.Web.UI.WebControls.BoundField.OnDataBindField(Object sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at UserMasterSetting_DashBoardEmployee.FillAttendence() TargetSite: Boolean TryGetSimplePropertyValue(System.Object, System.Object ByRef) Time: 23/11/2025 06:41:26 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 24/11/2025 10:40:08 AM PageName: AdminHomePage String str: SELECT EmployeeId AS SearchId, EmployeeName AS SearchName, GuardianName AS SearchDetail FROM EmployeeRegistrationDetail WITH(nolock) WHERE EmployeeName LIKE '%Suraj%' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: DataBinding: 'System.Data.DataRowView' does not contain a property with the name 'SearchLocation'. Source: System.Web StackTrace: at System.Web.UI.DataBinder.GetPropertyValue(Object container, String propName) at System.Web.UI.DataBinder.Eval(Object container, String[] expressionParts) at ASP.adminhomepage_aspx.__DataBind__control6(Object sender, EventArgs e) in c:\inetpub\vhosts\valourinfotech.in\grouploan.valourinfotech.in\AdminHomePage.aspx:line 84 at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) at System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) at System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) at System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) at AdminHomePage.SearchResult() TargetSite: System.Object GetPropertyValue(System.Object, System.String) Time: 24/11/2025 10:42:36 AM PageName: UserMasterSetting_DashBoardEmployee String str: SELECT MonthYear, isnull(Disbursed,0)AS Disbursed FROM DashBoardGroupLoanMonthGraphicalReport WHERE 1=1 ORDER BY SrNo DESC String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_3dkmabqs StackTrace: at UserMasterSetting_DashBoardEmployee.FillDisbursementGraph() TargetSite: Void FillDisbursementGraph() Time: 24/11/2025 10:42:36 AM PageName: UserMasterSetting_DashBoardEmployee String str: SELECT a.ESId, a.BranchName, a.DepartmentName, a.DesignationName, a.EmployeeType, rtrim(Convert(CHAR,a.FromDate,106))+' - '+rtrim(Convert(CHAR,a.ToDate,106))AS SalaryPeriod, a.EmployeeId, a.EmployeeName, a.FinalNetPayable, a.NetPayable, a.Arrear, a.Incentive, a.Advance, a.LoanEMI, a.LeaveDeduction, a.LossOfPay, a.NoOfLeave, a.Holiday, a.Present, a.Absent, a.Worked, a.SalaryStatus, a.SalaryRemark, a.VoucherId, a.SalarySlipNo, a.SalaryOf1Day, a.TotalPayment, a.TotalPayable, a.TotalDeduction, a.CTCSalary, a.BasicPay, a.HouseRent, a.Dearness, a.Convence, a.Special, a.Medical, a.Communication, a.MealCoupen, a.Washing, a.Education, a.Professional, a.NightShift, a.BonusPay, a.NoticePay, a.LeaveTravel, a.Superannuation, a.OtherPay, a.Gratuity, a.SavingScheme, a.EmployerPF, a.EmployerESI, a.EmployerNPS, a.EmployeePF, a.EmployeeESI, a.EmployeeNPS, a.GroupInsurance, a.CanteenBill, a.TransportBill, a.MobileBill, a.ProfessionalTax, a.IncomeTax, a.OtherDeduction, a.SalaryMonth, a.SalaryYear FROM EmployeeSalaryDetail a WITH(nolock) WHERE 1=1 String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: A field or property with the name 'AttDay' was not found on the selected data source. Source: System.Web StackTrace: at System.Web.UI.WebControls.BoundField.TryGetSimplePropertyValue(Object dataItem, Object& data) at System.Web.UI.WebControls.BoundField.GetValue(Control controlContainer) at System.Web.UI.WebControls.BoundField.OnDataBindField(Object sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at UserMasterSetting_DashBoardEmployee.FillAttendence() TargetSite: Boolean TryGetSimplePropertyValue(System.Object, System.Object ByRef) Time: 24/11/2025 10:46:41 AM PageName: UserMasterSetting_DashBoardEmployee String str: SELECT MonthYear, isnull(Disbursed,0)AS Disbursed FROM DashBoardGroupLoanMonthGraphicalReport WHERE 1=1 ORDER BY SrNo DESC String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_3dkmabqs StackTrace: at UserMasterSetting_DashBoardEmployee.FillDisbursementGraph() TargetSite: Void FillDisbursementGraph() Time: 24/11/2025 10:46:41 AM PageName: UserMasterSetting_DashBoardEmployee String str: SELECT a.ESId, a.BranchName, a.DepartmentName, a.DesignationName, a.EmployeeType, rtrim(Convert(CHAR,a.FromDate,106))+' - '+rtrim(Convert(CHAR,a.ToDate,106))AS SalaryPeriod, a.EmployeeId, a.EmployeeName, a.FinalNetPayable, a.NetPayable, a.Arrear, a.Incentive, a.Advance, a.LoanEMI, a.LeaveDeduction, a.LossOfPay, a.NoOfLeave, a.Holiday, a.Present, a.Absent, a.Worked, a.SalaryStatus, a.SalaryRemark, a.VoucherId, a.SalarySlipNo, a.SalaryOf1Day, a.TotalPayment, a.TotalPayable, a.TotalDeduction, a.CTCSalary, a.BasicPay, a.HouseRent, a.Dearness, a.Convence, a.Special, a.Medical, a.Communication, a.MealCoupen, a.Washing, a.Education, a.Professional, a.NightShift, a.BonusPay, a.NoticePay, a.LeaveTravel, a.Superannuation, a.OtherPay, a.Gratuity, a.SavingScheme, a.EmployerPF, a.EmployerESI, a.EmployerNPS, a.EmployeePF, a.EmployeeESI, a.EmployeeNPS, a.GroupInsurance, a.CanteenBill, a.TransportBill, a.MobileBill, a.ProfessionalTax, a.IncomeTax, a.OtherDeduction, a.SalaryMonth, a.SalaryYear FROM EmployeeSalaryDetail a WITH(nolock) WHERE 1=1 String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: A field or property with the name 'AttDay' was not found on the selected data source. Source: System.Web StackTrace: at System.Web.UI.WebControls.BoundField.TryGetSimplePropertyValue(Object dataItem, Object& data) at System.Web.UI.WebControls.BoundField.GetValue(Control controlContainer) at System.Web.UI.WebControls.BoundField.OnDataBindField(Object sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at UserMasterSetting_DashBoardEmployee.FillAttendence() TargetSite: Boolean TryGetSimplePropertyValue(System.Object, System.Object ByRef) Time: 24/11/2025 10:46:48 AM PageName: UserMasterSetting_DashBoardEmployee String str: SELECT MonthYear, isnull(Disbursed,0)AS Disbursed FROM DashBoardGroupLoanMonthGraphicalReport WHERE 1=1 ORDER BY SrNo DESC String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_3dkmabqs StackTrace: at UserMasterSetting_DashBoardEmployee.FillDisbursementGraph() TargetSite: Void FillDisbursementGraph() Time: 24/11/2025 10:46:48 AM PageName: UserMasterSetting_DashBoardEmployee String str: SELECT a.ESId, a.BranchName, a.DepartmentName, a.DesignationName, a.EmployeeType, rtrim(Convert(CHAR,a.FromDate,106))+' - '+rtrim(Convert(CHAR,a.ToDate,106))AS SalaryPeriod, a.EmployeeId, a.EmployeeName, a.FinalNetPayable, a.NetPayable, a.Arrear, a.Incentive, a.Advance, a.LoanEMI, a.LeaveDeduction, a.LossOfPay, a.NoOfLeave, a.Holiday, a.Present, a.Absent, a.Worked, a.SalaryStatus, a.SalaryRemark, a.VoucherId, a.SalarySlipNo, a.SalaryOf1Day, a.TotalPayment, a.TotalPayable, a.TotalDeduction, a.CTCSalary, a.BasicPay, a.HouseRent, a.Dearness, a.Convence, a.Special, a.Medical, a.Communication, a.MealCoupen, a.Washing, a.Education, a.Professional, a.NightShift, a.BonusPay, a.NoticePay, a.LeaveTravel, a.Superannuation, a.OtherPay, a.Gratuity, a.SavingScheme, a.EmployerPF, a.EmployerESI, a.EmployerNPS, a.EmployeePF, a.EmployeeESI, a.EmployeeNPS, a.GroupInsurance, a.CanteenBill, a.TransportBill, a.MobileBill, a.ProfessionalTax, a.IncomeTax, a.OtherDeduction, a.SalaryMonth, a.SalaryYear FROM EmployeeSalaryDetail a WITH(nolock) WHERE 1=1 String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: A field or property with the name 'AttDay' was not found on the selected data source. Source: System.Web StackTrace: at System.Web.UI.WebControls.BoundField.TryGetSimplePropertyValue(Object dataItem, Object& data) at System.Web.UI.WebControls.BoundField.GetValue(Control controlContainer) at System.Web.UI.WebControls.BoundField.OnDataBindField(Object sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at UserMasterSetting_DashBoardEmployee.FillAttendence() TargetSite: Boolean TryGetSimplePropertyValue(System.Object, System.Object ByRef) Time: 24/11/2025 11:10:57 AM PageName: UserMasterSetting_BranchDetailUpdate String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Cannot find column ZoneId. Source: System.Data StackTrace: at System.Data.DataTable.ParseSortString(String sortString) at System.Data.DataView.set_Sort(String value) at UserMasterSetting_BranchDetailUpdate.grdData_Sorting(Object sender, GridViewSortEventArgs e) TargetSite: System.Data.IndexField[] ParseSortString(System.String) Time: 24/11/2025 12:02:55 PM PageName: GroupLoan_GroupLoanNoMaster String str: SELECT Count(1)AS Nos0 FROM GroupLoanNoMaster WHERE GLoanTypeNo='12345'; String sql: INSERT INTO GroupLoanNoMaster ( LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode ) VALUES ( 'Business Loan', 'GroupLoan', '12345', 'Gold', '', 'FlatInterest', 'Daily', '0', '18000', '5', '8', '10', '18000', '500', '800', '10', '0', 'Decimal', 'Fixed', '5', '4', '8', 'OnlyInterest', 'NO', '900', 'Monthly', 'LoanAmount', '0', '114100', 'Advance To Employee', '511500', 'Interest Income on Group Loan ( Income Generation )', '512260', 'Down Payment of Group Loan (Income Generation)', '322000', 'Goods And Service Tax', '721000', 'Loan Loss Provision', 'Active', 'Active', '', 'root', GETDATE(), 'NO', '0', '0', '0', '', '', 'NO', '0', '0', '0', '', '', 'NO', '0', '0', '0', '', '', 'NO', '0', '0', '', '', 'NO', '0', '0', '', '', 'NO', '0', '0', '', '', 'NO', '0', '0', '', '', 'NO', '0', '0', '0', '', '', '0', 'DueNo' ) ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanReportStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 GroupLoan_GroupLoanNoMaster.btnSubmit_Click(Object sender, EventArgs e) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 12:13:44 PM PageName: GroupLoan_GroupLoanNoMaster String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Input string was not in a correct format. Source: mscorlib StackTrace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info) at GroupLoan_GroupLoanNoMaster.btnSubmit_Click(Object sender, EventArgs e) TargetSite: Void StringToNumber(System.String, System.Globalization.NumberStyles, NumberBuffer ByRef, System.Globalization.NumberFormatInfo, Boolean) Time: 24/11/2025 12:15:51 PM PageName: GroupLoan_GroupLoanNoMaster String str: SELECT Count(1)AS Nos0 FROM GroupLoanNoMaster WHERE GLoanTypeNo='12345'; String sql: INSERT INTO GroupLoanNoMaster ( LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode ) VALUES ( 'Business Loan', 'Individual', '12345', 'Gold', '2', 'FlatInterest', 'Daily', '5', '5', '5', '8', '10', '18000', '500', '800', '10', '252', 'Decimal', 'Fixed', '5', '4', '8', 'EMIAmount', 'NO', '900', 'Monthly', 'LoanAmount', '2', '114100', 'Advance To Employee', '511500', 'Interest Income on Group Loan ( Income Generation )', '512260', 'Down Payment of Group Loan (Income Generation)', '322000', 'Goods And Service Tax', '721000', 'Loan Loss Provision', 'Active', 'Active', 'cxcxcxcxcxcxcxcxcxcxcx', 'root', GETDATE(), 'YES', '5', '500', '5', '512000', 'Income from Fee on Loan And Other', 'YES', '5', '500', '5', '512260', 'Down Payment of Group Loan (Income Generation)', 'YES', '5', '500', '5', '512260', 'Down Payment of Group Loan (Income Generation)', 'YES', '5', '500', '321600', 'FD Amoun of Group Loan ( Income Generation )', 'YES', '5', '500', '321600', 'FD Amoun of Group Loan ( Income Generation )', 'YES', '5', '500', '321600', 'FD Amoun of Group Loan ( Income Generation )', 'YES', '5', '500', '114100', 'Advance To Employee', 'YES', '5', '500', '5', '512260', 'Down Payment of Group Loan (Income Generation)', '1', 'DueNo' ) ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanReportStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 GroupLoan_GroupLoanNoMaster.btnSubmit_Click(Object sender, EventArgs e) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 12:18:40 PM PageName: GroupLoan_GroupLoanNoMaster String str: SELECT Count(1)AS Nos0 FROM GroupLoanNoMaster WHERE GLoanTypeNo='12345'; String sql: INSERT INTO GroupLoanNoMaster ( LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode ) VALUES ( 'Business Loan', 'Individual', '12345', 'Gold', '2', 'FlatInterest', 'Daily', '5', '5', '5', '8', '10', '18000', '500', '800', '10', '252', 'Decimal', 'Fixed', '5', '4', '8', 'EMIAmount', 'NO', '900', 'Monthly', 'EMIAmount', '2', '114100', 'Advance To Employee', '511500', 'Interest Income on Group Loan ( Income Generation )', '512260', 'Down Payment of Group Loan (Income Generation)', '322000', 'Goods And Service Tax', '721000', 'Loan Loss Provision', 'Active', 'Active', 'cxcxcxcxcxcxcxcxcxcxcx', 'root', GETDATE(), 'YES', '5', '500', '5', '512000', 'Income from Fee on Loan And Other', 'YES', '5', '500', '5', '512260', 'Down Payment of Group Loan (Income Generation)', 'YES', '5', '500', '5', '512260', 'Down Payment of Group Loan (Income Generation)', 'YES', '5', '500', '321600', 'FD Amoun of Group Loan ( Income Generation )', 'YES', '5', '500', '321600', 'FD Amoun of Group Loan ( Income Generation )', 'YES', '5', '500', '321600', 'FD Amoun of Group Loan ( Income Generation )', 'YES', '5', '500', '114100', 'Advance To Employee', 'YES', '5', '500', '5', '512260', 'Down Payment of Group Loan (Income Generation)', '1', 'DueNo' ) ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanReportStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 GroupLoan_GroupLoanNoMaster.btnSubmit_Click(Object sender, EventArgs e) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 12:26:02 PM PageName: GroupLoan_GroupLoanNoMaster String str: SELECT Count(1)AS Nos0 FROM GroupLoanNoMaster WHERE GLoanTypeNo='12345'; String sql: INSERT INTO GroupLoanNoMaster ( LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode ) VALUES ( 'Business Loan', 'Individual', '12345', 'Gold', '2', 'FlatInterest', 'Daily', '5', '5', '5', '8', '10', '18000', '500', '800', '10', '252', 'Decimal', 'Fixed', '5', '4', '8', 'EMIAmount', 'NO', '900', 'Monthly', 'EMIAmount', '2', '114100', 'Advance To Employee', '511500', 'Interest Income on Group Loan ( Income Generation )', '512260', 'Down Payment of Group Loan (Income Generation)', '322000', 'Goods And Service Tax', '721000', 'Loan Loss Provision', 'Active', 'Active', 'cxcxcxcxcxcxcxcxcxcxcx', 'root', GETDATE(), 'YES', '5', '500', '5', '512000', 'Income from Fee on Loan And Other', 'YES', '5', '500', '5', '512260', 'Down Payment of Group Loan (Income Generation)', 'YES', '5', '500', '5', '512260', 'Down Payment of Group Loan (Income Generation)', 'YES', '5', '500', '321600', 'FD Amoun of Group Loan ( Income Generation )', 'YES', '5', '500', '321600', 'FD Amoun of Group Loan ( Income Generation )', 'YES', '5', '500', '321600', 'FD Amoun of Group Loan ( Income Generation )', 'YES', '5', '500', '114100', 'Advance To Employee', 'YES', '5', '500', '5', '512260', 'Down Payment of Group Loan (Income Generation)', '1', 'LoanTerm' ) ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanReportStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 GroupLoan_GroupLoanNoMaster.btnSubmit_Click(Object sender, EventArgs e) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 12:26:22 PM PageName: GroupLoan_GroupLoanNoMaster String str: SELECT Count(1)AS Nos0 FROM GroupLoanNoMaster WHERE GLoanTypeNo='12345'; String sql: INSERT INTO GroupLoanNoMaster ( LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode ) VALUES ( 'Business Loan', 'Individual', '12345', 'Gold', '2', 'FlatInterest', 'Daily', '5', '5', '5', '8', '10', '18000', '500', '800', '10', '252', 'Decimal', 'Fixed', '5', '4', '8', 'EMIAmount', 'NO', '900', 'Monthly', 'EMIAmount', '2', '114100', 'Advance To Employee', '511500', 'Interest Income on Group Loan ( Income Generation )', '512260', 'Down Payment of Group Loan (Income Generation)', '322000', 'Goods And Service Tax', '721000', 'Loan Loss Provision', 'Active', 'Active', 'cxcxcxcxcxcxcxcxcxcxcx', 'root', GETDATE(), 'YES', '5', '500', '5', '512000', 'Income from Fee on Loan And Other', 'YES', '5', '500', '5', '512000', 'Income from Fee on Loan And Other', 'YES', '5', '500', '5', '512000', 'Income from Fee on Loan And Other', 'YES', '5', '500', '321600', 'FD Amoun of Group Loan ( Income Generation )', 'YES', '5', '500', '321600', 'FD Amoun of Group Loan ( Income Generation )', 'YES', '5', '500', '321600', 'FD Amoun of Group Loan ( Income Generation )', 'YES', '5', '500', '114100', 'Advance To Employee', 'YES', '5', '500', '5', '512260', 'Down Payment of Group Loan (Income Generation)', '1', 'LoanTerm' ) ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanReportStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 GroupLoan_GroupLoanNoMaster.btnSubmit_Click(Object sender, EventArgs e) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 12:26:51 PM PageName: GroupLoan_GroupLoanNoMaster String str: SELECT Count(1)AS Nos0 FROM GroupLoanNoMaster WHERE GLoanTypeNo='12345'; String sql: INSERT INTO GroupLoanNoMaster ( LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode ) VALUES ( 'Business Loan', 'Individual', '12345', 'Gold', '2', 'FlatInterest', 'Daily', '5', '5', '5', '8', '10', '18000', '500', '800', '10', '252', 'Decimal', 'Fixed', '5', '4', '8', 'EMIAmount', 'NO', '900', 'Monthly', 'EMIAmount', '2', '114100', 'Advance To Employee', '511500', 'Interest Income on Group Loan ( Income Generation )', '512000', 'Income from Fee on Loan And Other', '322000', 'Goods And Service Tax', '721000', 'Loan Loss Provision', 'Active', 'Active', 'cxcxcxcxcxcxcxcxcxcxcx', 'root', GETDATE(), 'YES', '5', '500', '5', '512000', 'Income from Fee on Loan And Other', 'YES', '5', '500', '5', '512000', 'Income from Fee on Loan And Other', 'YES', '5', '500', '5', '512000', 'Income from Fee on Loan And Other', 'YES', '5', '500', '321600', 'FD Amoun of Group Loan ( Income Generation )', 'YES', '5', '500', '321600', 'FD Amoun of Group Loan ( Income Generation )', 'YES', '5', '500', '321600', 'FD Amoun of Group Loan ( Income Generation )', 'YES', '5', '500', '114100', 'Advance To Employee', 'YES', '5', '500', '5', '512000', 'Income from Fee on Loan And Other', '1', 'LoanTerm' ) ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanReportStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 GroupLoan_GroupLoanNoMaster.btnSubmit_Click(Object sender, EventArgs e) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 12:28:37 PM PageName: DataTableResult String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND GroupLoanType='Business Loan' AND InterestMethod='ReducingBalance' AND TermMode='Daily' AND InterestType='Fixed' AND EMIAmountType='Decimal' AND FirstInstallmentType='EMIAmount' AND LoanGroup='GroupLoan' AND LoanTypeStatus='Active' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanReportStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 12:28:37 PM PageName: GroupLoan_GroupLoanNoMasterList String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND GroupLoanType='Business Loan' AND InterestMethod='ReducingBalance' AND TermMode='Daily' AND InterestType='Fixed' AND EMIAmountType='Decimal' AND FirstInstallmentType='EMIAmount' AND LoanGroup='GroupLoan' AND LoanTypeStatus='Active' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xj0cvuz1 StackTrace: at GroupLoan_GroupLoanNoMasterList.FillData() TargetSite: Void FillData() Time: 24/11/2025 12:28:44 PM PageName: DataTableResult String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND GroupLoanType='Business Loan' AND InterestMethod='ReducingBalance' AND TermMode='Daily' AND InterestType='Fixed' AND EMIAmountType='Decimal' AND FirstInstallmentType='EMIAmount' AND LoanTypeStatus='Active' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanReportStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 12:28:44 PM PageName: GroupLoan_GroupLoanNoMasterList String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND GroupLoanType='Business Loan' AND InterestMethod='ReducingBalance' AND TermMode='Daily' AND InterestType='Fixed' AND EMIAmountType='Decimal' AND FirstInstallmentType='EMIAmount' AND LoanTypeStatus='Active' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xj0cvuz1 StackTrace: at GroupLoan_GroupLoanNoMasterList.FillData() TargetSite: Void FillData() Time: 24/11/2025 12:28:50 PM PageName: DataTableResult String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND GroupLoanType='Business Loan' AND TermMode='Daily' AND InterestType='Fixed' AND EMIAmountType='Decimal' AND FirstInstallmentType='EMIAmount' AND LoanTypeStatus='Active' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanReportStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 12:28:50 PM PageName: GroupLoan_GroupLoanNoMasterList String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND GroupLoanType='Business Loan' AND TermMode='Daily' AND InterestType='Fixed' AND EMIAmountType='Decimal' AND FirstInstallmentType='EMIAmount' AND LoanTypeStatus='Active' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xj0cvuz1 StackTrace: at GroupLoan_GroupLoanNoMasterList.FillData() TargetSite: Void FillData() Time: 24/11/2025 12:28:57 PM PageName: DataTableResult String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND GroupLoanType='Business Loan' AND TermMode='Daily' AND InterestType='Fixed' AND FirstInstallmentType='EMIAmount' AND LoanTypeStatus='Active' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanReportStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 12:28:57 PM PageName: GroupLoan_GroupLoanNoMasterList String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND GroupLoanType='Business Loan' AND TermMode='Daily' AND InterestType='Fixed' AND FirstInstallmentType='EMIAmount' AND LoanTypeStatus='Active' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xj0cvuz1 StackTrace: at GroupLoan_GroupLoanNoMasterList.FillData() TargetSite: Void FillData() Time: 24/11/2025 12:29:08 PM PageName: DataTableResult String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND GroupLoanType='Business Loan' AND TermMode='Daily' AND InterestType='Fixed' AND LoanTypeStatus='Active' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanReportStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 12:29:08 PM PageName: GroupLoan_GroupLoanNoMasterList String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND GroupLoanType='Business Loan' AND TermMode='Daily' AND InterestType='Fixed' AND LoanTypeStatus='Active' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xj0cvuz1 StackTrace: at GroupLoan_GroupLoanNoMasterList.FillData() TargetSite: Void FillData() Time: 24/11/2025 12:30:25 PM PageName: DataTableResult String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND GroupLoanType='Business Loan' AND TermMode='Daily' AND LoanTypeStatus='Active' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanReportStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 12:30:25 PM PageName: GroupLoan_GroupLoanNoMasterList String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND GroupLoanType='Business Loan' AND TermMode='Daily' AND LoanTypeStatus='Active' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xj0cvuz1 StackTrace: at GroupLoan_GroupLoanNoMasterList.FillData() TargetSite: Void FillData() Time: 24/11/2025 12:30:30 PM PageName: DataTableResult String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND TermMode='Daily' AND LoanTypeStatus='Active' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'LoanReportStatus'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 12:30:30 PM PageName: GroupLoan_GroupLoanNoMasterList String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, InterestMethod, TermMode, NoPayingTerm, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmount, EMIAmountType, InterestType, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, FirstInstallmentType, FirstEMIPayment, PenaltyRateAnnual, PenaltyCalculation, PenaltyBaseType, PenaltyGracePeriod, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, AccountHeadLoanLossId, AccountHeadLoanLossName, LoanTypeStatus, LoanReportStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime, ProcessingFee, ProcessingFeePercent, ProcessingFeeAmount, ProcessingGSTPercent, AccountHeadProcessingId, AccountHeadProcessingName, InsuranceFee, InsuranceFeePercent, InsuranceFeeAmount, InsuranceGSTPercent, AccountHeadInsuranceId, AccountHeadInsuranceName, OtherCharge, OtherChargePercent, OtherChargeAmount, OtherChargeGSTPercent, AccountHeadOtherChargeId, AccountHeadOtherChargeName, SecurityFee, SecurityFeePercent, SecurityFeeAmount, AccountHeadSecurityId, AccountHeadSecurityName, FDAmount, FDAmountPercent, FDAmountAmount, AccountHeadFDAmountId, AccountHeadFDAmountName, RDAmount, RDAmountPercent, RDAmountAmount, AccountHeadRDAmountId, AccountHeadRDAmountName, DownPayment, DownPaymentPercent, DownPaymentAmount, AccountHeadDownPaymentId, AccountHeadDownPaymentName, LoanClosureFee, LoanClosureFeePercent, LoanClosureFeeAmount, LoanClosureGSTPercent, AccountHeadLoanClosureId, AccountHeadLoanClosureName, LoanClosureTermNo, LoanClosureTermMode FROM GroupLoanNoMaster WITH(nolock) WHERE 1=1 AND TermMode='Daily' AND LoanTypeStatus='Active' ORDER BY LoanTypeStatus, LoanGroup, GroupLoanType, GLoanTypeNo ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xj0cvuz1 StackTrace: at GroupLoan_GroupLoanNoMasterList.FillData() TargetSite: Void FillData() Time: 24/11/2025 01:30:50 PM PageName: DataTableResult String str: SELECT a.SrNo, a.AccountHeadType, a.AccountHeadId, a.AccountHeadName, a.AccountHeadStatus, a.AccountHeadDetail FROM AccountHeadIdMaster a WITH(nolock) WHERE 1=1 AND ( a.AccountHeadType LIKE '%111999%' OR a.AccountHeadId LIKE '%111999%' OR a.AccountHeadName LIKE '%111999%' OR ) ORDER BY a.AccountHeadStatus, a.AccountHeadType String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near ')'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 01:30:50 PM PageName: Account_AccountLedgerHeadMaster String str: SELECT a.SrNo, a.AccountHeadType, a.AccountHeadId, a.AccountHeadName, a.AccountHeadStatus, a.AccountHeadDetail FROM AccountHeadIdMaster a WITH(nolock) WHERE 1=1 AND ( a.AccountHeadType LIKE '%111999%' OR a.AccountHeadId LIKE '%111999%' OR a.AccountHeadName LIKE '%111999%' OR ) ORDER BY a.AccountHeadStatus, a.AccountHeadType String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_AccountLedgerHeadMaster.FillData() TargetSite: Void FillData() Time: 24/11/2025 01:31:55 PM PageName: DataTableResult String str: SELECT a.SrNo, a.AccountHeadType, a.AccountHeadId, a.AccountHeadName, a.AccountHeadStatus, a.AccountHeadDetail FROM AccountHeadIdMaster a WITH(nolock) WHERE 1=1 AND ( a.AccountHeadType LIKE '%HDFC Bank-50400092385030%' OR a.AccountHeadId LIKE '%HDFC Bank-50400092385030%' OR a.AccountHeadName LIKE '%HDFC Bank-50400092385030%' OR ) ORDER BY a.AccountHeadStatus, a.AccountHeadType String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near ')'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 01:31:55 PM PageName: Account_AccountLedgerHeadMaster String str: SELECT a.SrNo, a.AccountHeadType, a.AccountHeadId, a.AccountHeadName, a.AccountHeadStatus, a.AccountHeadDetail FROM AccountHeadIdMaster a WITH(nolock) WHERE 1=1 AND ( a.AccountHeadType LIKE '%HDFC Bank-50400092385030%' OR a.AccountHeadId LIKE '%HDFC Bank-50400092385030%' OR a.AccountHeadName LIKE '%HDFC Bank-50400092385030%' OR ) ORDER BY a.AccountHeadStatus, a.AccountHeadType String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_AccountLedgerHeadMaster.FillData() TargetSite: Void FillData() Time: 24/11/2025 01:32:38 PM PageName: DataTableResult String str: SELECT a.SrNo, a.AccountHeadType, a.AccountHeadId, a.AccountHeadName, a.AccountHeadStatus, a.AccountHeadDetail FROM AccountHeadIdMaster a WITH(nolock) WHERE 1=1 AND ( a.AccountHeadType LIKE '%Current Asset%' OR a.AccountHeadId LIKE '%Current Asset%' OR a.AccountHeadName LIKE '%Current Asset%' OR ) ORDER BY a.AccountHeadStatus, a.AccountHeadType String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near ')'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 01:32:38 PM PageName: Account_AccountLedgerHeadMaster String str: SELECT a.SrNo, a.AccountHeadType, a.AccountHeadId, a.AccountHeadName, a.AccountHeadStatus, a.AccountHeadDetail FROM AccountHeadIdMaster a WITH(nolock) WHERE 1=1 AND ( a.AccountHeadType LIKE '%Current Asset%' OR a.AccountHeadId LIKE '%Current Asset%' OR a.AccountHeadName LIKE '%Current Asset%' OR ) ORDER BY a.AccountHeadStatus, a.AccountHeadType String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_AccountLedgerHeadMaster.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:13:07 PM PageName: DataTableResult String str: SELECT a.SrNo, a.AccountHeadType, a.AccountHeadId, a.AccountHeadName, a.AccountHeadStatus, a.AccountHeadDetail FROM AccountHeadIdMaster a WITH(nolock) WHERE 1=1 AND ( a.AccountHeadType LIKE '%Cash In Hand%' OR a.AccountHeadId LIKE '%Cash In Hand%' OR a.AccountHeadName LIKE '%Cash In Hand%' OR ) ORDER BY a.AccountHeadStatus, a.AccountHeadType String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near ')'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:13:07 PM PageName: Account_AccountLedgerHeadMaster String str: SELECT a.SrNo, a.AccountHeadType, a.AccountHeadId, a.AccountHeadName, a.AccountHeadStatus, a.AccountHeadDetail FROM AccountHeadIdMaster a WITH(nolock) WHERE 1=1 AND ( a.AccountHeadType LIKE '%Cash In Hand%' OR a.AccountHeadId LIKE '%Cash In Hand%' OR a.AccountHeadName LIKE '%Cash In Hand%' OR ) ORDER BY a.AccountHeadStatus, a.AccountHeadType String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_AccountLedgerHeadMaster.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:13:35 PM PageName: DataTableResult String str: SELECT a.SrNo, a.AccountHeadType, a.AccountHeadId, a.AccountHeadName, a.AccountHeadStatus, a.AccountHeadDetail FROM AccountHeadIdMaster a WITH(nolock) WHERE 1=1 AND ( a.AccountHeadType LIKE '%112001%' OR a.AccountHeadId LIKE '%112001%' OR a.AccountHeadName LIKE '%112001%' OR ) ORDER BY a.AccountHeadStatus, a.AccountHeadType String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near ')'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:13:35 PM PageName: Account_AccountLedgerHeadMaster String str: SELECT a.SrNo, a.AccountHeadType, a.AccountHeadId, a.AccountHeadName, a.AccountHeadStatus, a.AccountHeadDetail FROM AccountHeadIdMaster a WITH(nolock) WHERE 1=1 AND ( a.AccountHeadType LIKE '%112001%' OR a.AccountHeadId LIKE '%112001%' OR a.AccountHeadName LIKE '%112001%' OR ) ORDER BY a.AccountHeadStatus, a.AccountHeadType String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_AccountLedgerHeadMaster.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:14:01 PM PageName: DataTableResult String str: SELECT a.SrNo, a.AccountHeadType, a.AccountHeadId, a.AccountHeadName, a.AccountHeadStatus, a.AccountHeadDetail FROM AccountHeadIdMaster a WITH(nolock) WHERE 1=1 AND ( a.AccountHeadType LIKE '%112000%' OR a.AccountHeadId LIKE '%112000%' OR a.AccountHeadName LIKE '%112000%' OR ) ORDER BY a.AccountHeadStatus, a.AccountHeadType String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near ')'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:14:01 PM PageName: Account_AccountLedgerHeadMaster String str: SELECT a.SrNo, a.AccountHeadType, a.AccountHeadId, a.AccountHeadName, a.AccountHeadStatus, a.AccountHeadDetail FROM AccountHeadIdMaster a WITH(nolock) WHERE 1=1 AND ( a.AccountHeadType LIKE '%112000%' OR a.AccountHeadId LIKE '%112000%' OR a.AccountHeadName LIKE '%112000%' OR ) ORDER BY a.AccountHeadStatus, a.AccountHeadType String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_xsrihm0m StackTrace: at Account_AccountLedgerHeadMaster.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:30:13 PM PageName: DataTableResult String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.VoucherType='Contra' AND a.HeadId='114100' AND a.VoucherId=='VH00000416' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near '='. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:30:13 PM PageName: Account_AccountVoucherRequestList String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.VoucherType='Contra' AND a.HeadId='114100' AND a.VoucherId=='VH00000416' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountVoucherRequestList.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:30:59 PM PageName: DataTableResult String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.HeadId='114100' AND a.VoucherId=='VH00000416' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near '='. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:30:59 PM PageName: Account_AccountVoucherRequestList String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.HeadId='114100' AND a.VoucherId=='VH00000416' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountVoucherRequestList.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:34:04 PM PageName: DataTableResult String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.VoucherType='Receive' AND a.HeadId='114100' AND a.VoucherId=='VH00000419' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near '='. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:34:04 PM PageName: Account_AccountVoucherRequestList String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.VoucherType='Receive' AND a.HeadId='114100' AND a.VoucherId=='VH00000419' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountVoucherRequestList.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:35:15 PM PageName: Account_ReceiveVoucherRequest String str: SELECT Count(1) AS Nos0 FROM F2526VoucherMaster WHERE VoucherId='VH00000420' ; String sql: INSERT INTO F2526VoucherMaster ( VoucherId, VoucherType, EntryTime, EntryUser ) VALUES ( 'VH00000420', 'ReceiveVoucher', GETDATE(), 'root' ) ; UPDATE FinancialYearMaster SET VoucherCounter=isnull(VoucherCounter,0)+1 WHERE TableName='2526' ; INSERT INTO AccountVoucherDetail ( FinYear,BranchId,BranchName, VoucherType, TransDate, VoucherId, HeadId, HeadName, Credit, Debit, Refer1, Refer2, Refer3, Narration, EntryTime, EntryUser, EntryType, BillAttached, VoucherFile, ClearStatus ) VALUES ( '2526','100','Head Office', 'Receive', '10/29/2025 12:00:00 AM', 'VH00000420', '111999', 'Cash In Hand Head Office', 0, '', 'Aashu', 'vvvvvvvvvvv', 'bbbbbbbbbbbb', 'gggggggggggggg', GETDATE(), 'root', 'ReceiveVoucher', 'No', '', 'Pending' ) ; INSERT INTO F2526VoucherDetail ( VoucherType,BranchId,BranchName, TransDate, VoucherId, HeadId, HeadName, Credit, Debit, TransactionId, Refer1, Refer2, Refer3, Narration, EntryUser, EntryTime, EntryType ) SELECT VoucherType,BranchId,BranchName, TransDate, 'VH00000420' AS VoucherId, HeadId, HeadName, Credit, Debit, TransactionId, Refer1, Refer2, Refer3, Narration, EntryUser, EntryTime, EntryType FROM AccountVoucherDetail WHERE ClearStatus='Pending' AND VoucherId='VH00000420' ; UPDATE AccountVoucherDetail SET ClearStatus='Approved', VoucherId='VH00000420', ApproveDate='10/29/2025 12:00:00 AM', ApproveRemark=null, ApproveUser='root', ApproveTime=GETDATE() WHERE ClearStatus='Pending' AND VoucherId='VH00000420' ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Error converting data type varchar to numeric. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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 Account_ReceiveVoucherRequest.btnSubmit_Click(Object sender, EventArgs e) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:37:57 PM PageName: DataTableResult String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.HeadId='114100' AND a.VoucherId=='VH00000420' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near '='. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:37:57 PM PageName: Account_AccountVoucherRequestList String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.HeadId='114100' AND a.VoucherId=='VH00000420' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountVoucherRequestList.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:38:36 PM PageName: DataTableResult String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.ClearStatus='Approved' AND a.VoucherType='Receive' AND a.HeadId='114100' AND a.VoucherId=='VH00000420' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near '='. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:38:36 PM PageName: Account_AccountVoucherRequestList String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.ClearStatus='Approved' AND a.VoucherType='Receive' AND a.HeadId='114100' AND a.VoucherId=='VH00000420' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountVoucherRequestList.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:38:40 PM PageName: DataTableResult String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.ClearStatus='Approved' AND a.VoucherType='Receive' AND a.HeadId='114100' AND a.VoucherId=='VH00000420' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near '='. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:38:40 PM PageName: Account_AccountVoucherRequestList String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.ClearStatus='Approved' AND a.VoucherType='Receive' AND a.HeadId='114100' AND a.VoucherId=='VH00000420' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountVoucherRequestList.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:38:46 PM PageName: DataTableResult String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.ClearStatus='Approved' AND a.VoucherType='Payment' AND a.HeadId='114100' AND a.VoucherId=='VH00000420' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near '='. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:38:46 PM PageName: Account_AccountVoucherRequestList String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.ClearStatus='Approved' AND a.VoucherType='Payment' AND a.HeadId='114100' AND a.VoucherId=='VH00000420' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountVoucherRequestList.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:38:52 PM PageName: DataTableResult String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.ClearStatus='Approved' AND a.VoucherType='Journal' AND a.HeadId='114100' AND a.VoucherId=='VH00000420' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near '='. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:38:52 PM PageName: Account_AccountVoucherRequestList String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.ClearStatus='Approved' AND a.VoucherType='Journal' AND a.HeadId='114100' AND a.VoucherId=='VH00000420' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountVoucherRequestList.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:38:56 PM PageName: DataTableResult String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.ClearStatus='Approved' AND a.VoucherType='Contra' AND a.HeadId='114100' AND a.VoucherId=='VH00000420' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near '='. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:38:56 PM PageName: Account_AccountVoucherRequestList String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.ClearStatus='Approved' AND a.VoucherType='Contra' AND a.HeadId='114100' AND a.VoucherId=='VH00000420' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountVoucherRequestList.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:39:12 PM PageName: DataTableResult String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.VoucherId=='VH00000420' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near '='. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:39:12 PM PageName: Account_AccountVoucherRequestList String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.VoucherId=='VH00000420' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountVoucherRequestList.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:52:04 PM PageName: DataTableResult String str: SELECT a.VoucherType, a.VoucherId, convert(CHAR,a.TransDate,106)AS TransDate, a.Amount, a.ReverseStatus, a.ReverseRemark, a.ReverseUser, rtrim(convert(CHAR,a.ReverseTime,106))+'-'+rtrim(convert(CHAR,a.ReverseTime,108))AS ReverseTime, a.ApproveRemark, a.ApproveUser, rtrim(convert(CHAR,a.ApproveTime,106))+'-'+rtrim(convert(CHAR,a.ApproveTime,108))AS ApproveTime FROM VoucherMasterReverse a WITH(nolock) WHERE 1=1 AND a.TransDate>='10/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.EntryType='Payment' AND a.VoucherId='VH00000420' ORDER BY a.VoucherId, a.TransDate ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'EntryType'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:52:04 PM PageName: Account_VoucherReverseRequestList String str: SELECT a.VoucherType, a.VoucherId, convert(CHAR,a.TransDate,106)AS TransDate, a.Amount, a.ReverseStatus, a.ReverseRemark, a.ReverseUser, rtrim(convert(CHAR,a.ReverseTime,106))+'-'+rtrim(convert(CHAR,a.ReverseTime,108))AS ReverseTime, a.ApproveRemark, a.ApproveUser, rtrim(convert(CHAR,a.ApproveTime,106))+'-'+rtrim(convert(CHAR,a.ApproveTime,108))AS ApproveTime FROM VoucherMasterReverse a WITH(nolock) WHERE 1=1 AND a.TransDate>='10/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.EntryType='Payment' AND a.VoucherId='VH00000420' ORDER BY a.VoucherId, a.TransDate ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_VoucherReverseRequestList.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:52:12 PM PageName: DataTableResult String str: SELECT a.VoucherType, a.VoucherId, convert(CHAR,a.TransDate,106)AS TransDate, a.Amount, a.ReverseStatus, a.ReverseRemark, a.ReverseUser, rtrim(convert(CHAR,a.ReverseTime,106))+'-'+rtrim(convert(CHAR,a.ReverseTime,108))AS ReverseTime, a.ApproveRemark, a.ApproveUser, rtrim(convert(CHAR,a.ApproveTime,106))+'-'+rtrim(convert(CHAR,a.ApproveTime,108))AS ApproveTime FROM VoucherMasterReverse a WITH(nolock) WHERE 1=1 AND a.TransDate>='10/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.ReverseStatus='Approved' AND a.EntryType='Payment' AND a.VoucherId='VH00000420' ORDER BY a.VoucherId, a.TransDate ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'EntryType'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:52:12 PM PageName: Account_VoucherReverseRequestList String str: SELECT a.VoucherType, a.VoucherId, convert(CHAR,a.TransDate,106)AS TransDate, a.Amount, a.ReverseStatus, a.ReverseRemark, a.ReverseUser, rtrim(convert(CHAR,a.ReverseTime,106))+'-'+rtrim(convert(CHAR,a.ReverseTime,108))AS ReverseTime, a.ApproveRemark, a.ApproveUser, rtrim(convert(CHAR,a.ApproveTime,106))+'-'+rtrim(convert(CHAR,a.ApproveTime,108))AS ApproveTime FROM VoucherMasterReverse a WITH(nolock) WHERE 1=1 AND a.TransDate>='10/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.ReverseStatus='Approved' AND a.EntryType='Payment' AND a.VoucherId='VH00000420' ORDER BY a.VoucherId, a.TransDate ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_VoucherReverseRequestList.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:52:26 PM PageName: DataTableResult String str: SELECT a.VoucherType, a.VoucherId, convert(CHAR,a.TransDate,106)AS TransDate, a.Amount, a.ReverseStatus, a.ReverseRemark, a.ReverseUser, rtrim(convert(CHAR,a.ReverseTime,106))+'-'+rtrim(convert(CHAR,a.ReverseTime,108))AS ReverseTime, a.ApproveRemark, a.ApproveUser, rtrim(convert(CHAR,a.ApproveTime,106))+'-'+rtrim(convert(CHAR,a.ApproveTime,108))AS ApproveTime FROM VoucherMasterReverse a WITH(nolock) WHERE 1=1 AND a.TransDate>='9/9/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.ReverseStatus='Approved' AND a.EntryType='Payment' AND a.VoucherId='VH00000420' ORDER BY a.VoucherId, a.TransDate ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'EntryType'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:52:26 PM PageName: Account_VoucherReverseRequestList String str: SELECT a.VoucherType, a.VoucherId, convert(CHAR,a.TransDate,106)AS TransDate, a.Amount, a.ReverseStatus, a.ReverseRemark, a.ReverseUser, rtrim(convert(CHAR,a.ReverseTime,106))+'-'+rtrim(convert(CHAR,a.ReverseTime,108))AS ReverseTime, a.ApproveRemark, a.ApproveUser, rtrim(convert(CHAR,a.ApproveTime,106))+'-'+rtrim(convert(CHAR,a.ApproveTime,108))AS ApproveTime FROM VoucherMasterReverse a WITH(nolock) WHERE 1=1 AND a.TransDate>='9/9/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.ReverseStatus='Approved' AND a.EntryType='Payment' AND a.VoucherId='VH00000420' ORDER BY a.VoucherId, a.TransDate ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_VoucherReverseRequestList.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:56:24 PM PageName: DataTableResult String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,103)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Narration, a.Refer1, a.Refer2, a.Refer3, a.EntryType, a.ClearStatus, a.BillAttached, a.VoucherFile, a.FileLocation FROM AccountVoucherDetail a WITH(nolock) WHERE a.VoucherType='Receive' AND a.ClearStatus='Pending' AND a.TransDate>='10/24/2025 12:00:00 AM' AND a.TransDate<'11/24/2025 12:00:00 AM' AND a.BranchId='100' AND a.VoucherId='VH00000420' ORDER BY a.VoucherId, a.TransDate, a.Credit, a.Debit ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'FileLocation'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:56:24 PM PageName: Account_ReceiveVoucherApproval String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,103)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Narration, a.Refer1, a.Refer2, a.Refer3, a.EntryType, a.ClearStatus, a.BillAttached, a.VoucherFile, a.FileLocation FROM AccountVoucherDetail a WITH(nolock) WHERE a.VoucherType='Receive' AND a.ClearStatus='Pending' AND a.TransDate>='10/24/2025 12:00:00 AM' AND a.TransDate<'11/24/2025 12:00:00 AM' AND a.BranchId='100' AND a.VoucherId='VH00000420' ORDER BY a.VoucherId, a.TransDate, a.Credit, a.Debit ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_ReceiveVoucherApproval.FillData() TargetSite: Void FillData() Time: 24/11/2025 02:57:25 PM PageName: DataTableResult String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,103)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Narration, a.Refer1, a.Refer2, a.Refer3, a.EntryType, a.ClearStatus, a.BillAttached, a.VoucherFile, a.FileLocation FROM AccountVoucherDetail a WITH(nolock) WHERE a.VoucherType='Receive' AND a.ClearStatus='Pending' AND a.TransDate>='10/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2525 12:00:00 AM' AND a.BranchId='100' AND a.VoucherId='VH00000420' ORDER BY a.VoucherId, a.TransDate, a.Credit, a.Debit ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'FileLocation'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 02:57:25 PM PageName: Account_ReceiveVoucherApproval String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,103)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Narration, a.Refer1, a.Refer2, a.Refer3, a.EntryType, a.ClearStatus, a.BillAttached, a.VoucherFile, a.FileLocation FROM AccountVoucherDetail a WITH(nolock) WHERE a.VoucherType='Receive' AND a.ClearStatus='Pending' AND a.TransDate>='10/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2525 12:00:00 AM' AND a.BranchId='100' AND a.VoucherId='VH00000420' ORDER BY a.VoucherId, a.TransDate, a.Credit, a.Debit ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_ReceiveVoucherApproval.FillData() TargetSite: Void FillData() Time: 24/11/2025 03:14:18 PM PageName: Account_AccountCashBookReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at Account_AccountCashBookReport.btnExport_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 24/11/2025 03:37:30 PM PageName: Account_AccountDayBookReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountDayBookReport.btnExport_Click(Object sender, EventArgs e) TargetSite: Void btnExport_Click(System.Object, System.EventArgs) Time: 24/11/2025 03:46:43 PM PageName: DataTableResult String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.VoucherType='Journal' AND a.VoucherId=='VH00000421' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near '='. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 03:46:43 PM PageName: Account_AccountVoucherRequestList String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.VoucherType='Journal' AND a.VoucherId=='VH00000421' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountVoucherRequestList.FillData() TargetSite: Void FillData() Time: 24/11/2025 03:47:59 PM PageName: DataTableResult String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.VoucherType='Journal' AND a.HeadId='114100' AND a.VoucherId=='VH00000421' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Incorrect syntax near '='. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 24/11/2025 03:47:59 PM PageName: Account_AccountVoucherRequestList String str: SELECT a.VoucherType, Convert(CHAR,a.TransDate,106)AS TransDate, a.VoucherId, a.HeadId, a.HeadName, a.Credit, a.Debit, a.Refer1, a.Refer2, a.Refer3, a.Narration, a.ClearStatus, a.BillAttached, a.VoucherFile, Convert(CHAR,a.ApproveDate,106)AS ApproveDate, a.ApproveRemark FROM AccountVoucherDetail a WITH(nolock) WHERE 1=1 AND a.FinYear='2526' AND a.TransDate>='11/24/2025 12:00:00 AM' AND a.TransDate<'11/25/2025 12:00:00 AM' AND a.VoucherType='Journal' AND a.HeadId='114100' AND a.VoucherId=='VH00000421' ORDER BY a.VoucherId, a.VoucherType, a.TransDate, a.HeadName ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_h235glsw StackTrace: at Account_AccountVoucherRequestList.FillData() TargetSite: Void FillData() Time: 25/11/2025 03:01:15 PM PageName: DataSetResult String str: SELECT Count(1)AS Nos0 FROM PlanMemberDetail with(nolock) WHERE AdvisorId='Root' ; SELECT Count(1)AS Nos1 FROM PlanMemberDetail with(nolock) WHERE AdvisorId='Root' AND AdvisorPassword='aQBuAGYAbwB0AGUAYwBoAA==' ; SELECT (SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserName')AS APIUserName, (SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserStatus')AS APIUserStatus, AdvisorId, MemberName, AdvisorLoginStatus, AdvisorWebLogin FROM PlanMemberDetail with(nolock) WHERE AdvisorId='Root' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'PlanMemberDetail'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) at ClassMaster.DataSetResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 25/11/2025 03:01:15 PM PageName: AdvisorLogin String str: SELECT Count(1)AS Nos0 FROM PlanMemberDetail with(nolock) WHERE AdvisorId='Root' ; SELECT Count(1)AS Nos1 FROM PlanMemberDetail with(nolock) WHERE AdvisorId='Root' AND AdvisorPassword='aQBuAGYAbwB0AGUAYwBoAA==' ; SELECT (SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserName')AS APIUserName, (SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserStatus')AS APIUserStatus, AdvisorId, MemberName, AdvisorLoginStatus, AdvisorWebLogin FROM PlanMemberDetail with(nolock) WHERE AdvisorId='Root' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_yhd23izm StackTrace: at AdvisorLogin.btnLogin_Click(Object sender, EventArgs e) TargetSite: Void btnLogin_Click(System.Object, System.EventArgs) Time: 25/11/2025 03:01:17 PM PageName: DataSetResult String str: SELECT Count(1)AS Nos0 FROM PlanMemberDetail with(nolock) WHERE AdvisorId='Root' ; SELECT Count(1)AS Nos1 FROM PlanMemberDetail with(nolock) WHERE AdvisorId='Root' AND AdvisorPassword='aQBuAGYAbwB0AGUAYwBoAA==' ; SELECT (SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserName')AS APIUserName, (SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserStatus')AS APIUserStatus, AdvisorId, MemberName, AdvisorLoginStatus, AdvisorWebLogin FROM PlanMemberDetail with(nolock) WHERE AdvisorId='Root' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'PlanMemberDetail'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) at ClassMaster.DataSetResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 25/11/2025 03:01:17 PM PageName: AdvisorLogin String str: SELECT Count(1)AS Nos0 FROM PlanMemberDetail with(nolock) WHERE AdvisorId='Root' ; SELECT Count(1)AS Nos1 FROM PlanMemberDetail with(nolock) WHERE AdvisorId='Root' AND AdvisorPassword='aQBuAGYAbwB0AGUAYwBoAA==' ; SELECT (SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserName')AS APIUserName, (SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserStatus')AS APIUserStatus, AdvisorId, MemberName, AdvisorLoginStatus, AdvisorWebLogin FROM PlanMemberDetail with(nolock) WHERE AdvisorId='Root' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_yhd23izm StackTrace: at AdvisorLogin.btnLogin_Click(Object sender, EventArgs e) TargetSite: Void btnLogin_Click(System.Object, System.EventArgs) Time: 25/11/2025 03:01:45 PM PageName: DataSetResult String str: SELECT Count(1)AS Nos0 FROM PlanMemberDetail with(nolock) WHERE AdvisorId='superadmin' ; SELECT Count(1)AS Nos1 FROM PlanMemberDetail with(nolock) WHERE AdvisorId='superadmin' AND AdvisorPassword='aQBuAGYAbwB0AGUAYwBoAA==' ; SELECT (SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserName')AS APIUserName, (SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserStatus')AS APIUserStatus, AdvisorId, MemberName, AdvisorLoginStatus, AdvisorWebLogin FROM PlanMemberDetail with(nolock) WHERE AdvisorId='superadmin' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'PlanMemberDetail'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) at ClassMaster.DataSetResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 25/11/2025 03:01:45 PM PageName: AdvisorLogin String str: SELECT Count(1)AS Nos0 FROM PlanMemberDetail with(nolock) WHERE AdvisorId='superadmin' ; SELECT Count(1)AS Nos1 FROM PlanMemberDetail with(nolock) WHERE AdvisorId='superadmin' AND AdvisorPassword='aQBuAGYAbwB0AGUAYwBoAA==' ; SELECT (SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserName')AS APIUserName, (SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserStatus')AS APIUserStatus, AdvisorId, MemberName, AdvisorLoginStatus, AdvisorWebLogin FROM PlanMemberDetail with(nolock) WHERE AdvisorId='superadmin' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_yhd23izm StackTrace: at AdvisorLogin.btnLogin_Click(Object sender, EventArgs e) TargetSite: Void btnLogin_Click(System.Object, System.EventArgs) Time: 25/11/2025 03:01:47 PM PageName: DataSetResult String str: SELECT Count(1)AS Nos0 FROM PlanMemberDetail with(nolock) WHERE AdvisorId='superadmin' ; SELECT Count(1)AS Nos1 FROM PlanMemberDetail with(nolock) WHERE AdvisorId='superadmin' AND AdvisorPassword='aQBuAGYAbwB0AGUAYwBoAA==' ; SELECT (SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserName')AS APIUserName, (SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserStatus')AS APIUserStatus, AdvisorId, MemberName, AdvisorLoginStatus, AdvisorWebLogin FROM PlanMemberDetail with(nolock) WHERE AdvisorId='superadmin' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid object name 'PlanMemberDetail'. Source: .Net SqlClient Data Provider StackTrace: at System.Data.SqlClient.SqlConnection.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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) at ClassMaster.DataSetResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 25/11/2025 03:01:47 PM PageName: AdvisorLogin String str: SELECT Count(1)AS Nos0 FROM PlanMemberDetail with(nolock) WHERE AdvisorId='superadmin' ; SELECT Count(1)AS Nos1 FROM PlanMemberDetail with(nolock) WHERE AdvisorId='superadmin' AND AdvisorPassword='aQBuAGYAbwB0AGUAYwBoAA==' ; SELECT (SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserName')AS APIUserName, (SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserStatus')AS APIUserStatus, AdvisorId, MemberName, AdvisorLoginStatus, AdvisorWebLogin FROM PlanMemberDetail with(nolock) WHERE AdvisorId='superadmin' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_yhd23izm StackTrace: at AdvisorLogin.btnLogin_Click(Object sender, EventArgs e) TargetSite: Void btnLogin_Click(System.Object, System.EventArgs) Time: 26/11/2025 02:42:25 PM PageName: UserMasterSetting_DashBoardEmployee String str: SELECT MonthYear, isnull(Disbursed,0)AS Disbursed FROM DashBoardGroupLoanMonthGraphicalReport WHERE 1=1 ORDER BY SrNo DESC String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_3dkmabqs StackTrace: at UserMasterSetting_DashBoardEmployee.FillDisbursementGraph() TargetSite: Void FillDisbursementGraph() Time: 26/11/2025 02:42:25 PM PageName: UserMasterSetting_DashBoardEmployee String str: SELECT a.ESId, a.BranchName, a.DepartmentName, a.DesignationName, a.EmployeeType, rtrim(Convert(CHAR,a.FromDate,106))+' - '+rtrim(Convert(CHAR,a.ToDate,106))AS SalaryPeriod, a.EmployeeId, a.EmployeeName, a.FinalNetPayable, a.NetPayable, a.Arrear, a.Incentive, a.Advance, a.LoanEMI, a.LeaveDeduction, a.LossOfPay, a.NoOfLeave, a.Holiday, a.Present, a.Absent, a.Worked, a.SalaryStatus, a.SalaryRemark, a.VoucherId, a.SalarySlipNo, a.SalaryOf1Day, a.TotalPayment, a.TotalPayable, a.TotalDeduction, a.CTCSalary, a.BasicPay, a.HouseRent, a.Dearness, a.Convence, a.Special, a.Medical, a.Communication, a.MealCoupen, a.Washing, a.Education, a.Professional, a.NightShift, a.BonusPay, a.NoticePay, a.LeaveTravel, a.Superannuation, a.OtherPay, a.Gratuity, a.SavingScheme, a.EmployerPF, a.EmployerESI, a.EmployerNPS, a.EmployeePF, a.EmployeeESI, a.EmployeeNPS, a.GroupInsurance, a.CanteenBill, a.TransportBill, a.MobileBill, a.ProfessionalTax, a.IncomeTax, a.OtherDeduction, a.SalaryMonth, a.SalaryYear FROM EmployeeSalaryDetail a WITH(nolock) WHERE 1=1 String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: A field or property with the name 'AttDay' was not found on the selected data source. Source: System.Web StackTrace: at System.Web.UI.WebControls.BoundField.TryGetSimplePropertyValue(Object dataItem, Object& data) at System.Web.UI.WebControls.BoundField.GetValue(Control controlContainer) at System.Web.UI.WebControls.BoundField.OnDataBindField(Object sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at UserMasterSetting_DashBoardEmployee.FillAttendence() TargetSite: Boolean TryGetSimplePropertyValue(System.Object, System.Object ByRef) Time: 26/11/2025 02:43:01 PM PageName: UserMasterSetting_DashBoardEmployee String str: SELECT MonthYear, isnull(Disbursed,0)AS Disbursed FROM DashBoardGroupLoanMonthGraphicalReport WHERE 1=1 ORDER BY SrNo DESC String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_3dkmabqs StackTrace: at UserMasterSetting_DashBoardEmployee.FillDisbursementGraph() TargetSite: Void FillDisbursementGraph() Time: 26/11/2025 02:43:01 PM PageName: UserMasterSetting_DashBoardEmployee String str: SELECT a.ESId, a.BranchName, a.DepartmentName, a.DesignationName, a.EmployeeType, rtrim(Convert(CHAR,a.FromDate,106))+' - '+rtrim(Convert(CHAR,a.ToDate,106))AS SalaryPeriod, a.EmployeeId, a.EmployeeName, a.FinalNetPayable, a.NetPayable, a.Arrear, a.Incentive, a.Advance, a.LoanEMI, a.LeaveDeduction, a.LossOfPay, a.NoOfLeave, a.Holiday, a.Present, a.Absent, a.Worked, a.SalaryStatus, a.SalaryRemark, a.VoucherId, a.SalarySlipNo, a.SalaryOf1Day, a.TotalPayment, a.TotalPayable, a.TotalDeduction, a.CTCSalary, a.BasicPay, a.HouseRent, a.Dearness, a.Convence, a.Special, a.Medical, a.Communication, a.MealCoupen, a.Washing, a.Education, a.Professional, a.NightShift, a.BonusPay, a.NoticePay, a.LeaveTravel, a.Superannuation, a.OtherPay, a.Gratuity, a.SavingScheme, a.EmployerPF, a.EmployerESI, a.EmployerNPS, a.EmployeePF, a.EmployeeESI, a.EmployeeNPS, a.GroupInsurance, a.CanteenBill, a.TransportBill, a.MobileBill, a.ProfessionalTax, a.IncomeTax, a.OtherDeduction, a.SalaryMonth, a.SalaryYear FROM EmployeeSalaryDetail a WITH(nolock) WHERE 1=1 String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: A field or property with the name 'AttDay' was not found on the selected data source. Source: System.Web StackTrace: at System.Web.UI.WebControls.BoundField.TryGetSimplePropertyValue(Object dataItem, Object& data) at System.Web.UI.WebControls.BoundField.GetValue(Control controlContainer) at System.Web.UI.WebControls.BoundField.OnDataBindField(Object sender, EventArgs e) at System.Web.UI.Control.OnDataBinding(EventArgs e) at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.Control.DataBindChildren() at System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) at System.Web.UI.WebControls.GridView.CreateRow(Int32 rowIndex, Int32 dataSourceIndex, DataControlRowType rowType, DataControlRowState rowState, Boolean dataBind, Object dataItem, DataControlField[] fields, TableRowCollection rows, PagedDataSource pagedDataSource) at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data) at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data) at UserMasterSetting_DashBoardEmployee.FillAttendence() TargetSite: Boolean TryGetSimplePropertyValue(System.Object, System.Object ByRef) Time: 28/11/2025 06:30:52 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 28/11/2025 06:53:50 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 28/11/2025 07:00:16 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 28/11/2025 07:12:45 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 28/11/2025 07:16:17 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 28/11/2025 07:17:56 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 29/11/2025 03:31:36 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 02/12/2025 10:51:06 AM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 02/12/2025 10:51:06 AM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_44hxre3w StackTrace: at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanDisbursementReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 02/12/2025 03:53:32 PM PageName: IndividualLoan_IndvMemberRegistrationList String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvMemberRegistrationList.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 02/12/2025 03:53:32 PM PageName: IndividualLoan_IndvMemberRegistrationList String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_c5pwm3gq StackTrace: at IndividualLoan_IndvMemberRegistrationList.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvMemberRegistrationList.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 02/12/2025 03:57:42 PM PageName: IndividualLoan_IndvLoanOutstandingReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanOutstandingReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 02/12/2025 03:57:42 PM PageName: IndividualLoan_IndvLoanOutstandingReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_1skyodly StackTrace: at IndividualLoan_IndvLoanOutstandingReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanOutstandingReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 06/12/2025 07:01:13 PM PageName: IndividualLoan_IndvLoanOutstandingReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanOutstandingReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 06/12/2025 07:01:13 PM PageName: IndividualLoan_IndvLoanOutstandingReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_1skyodly StackTrace: at IndividualLoan_IndvLoanOutstandingReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanOutstandingReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 07/12/2025 06:28:18 PM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 07/12/2025 06:28:18 PM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_44hxre3w StackTrace: at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanDisbursementReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 08/12/2025 06:10:08 PM PageName: DataTableResult String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, TermMode, NoPayingTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmountType, EMIAmount, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, InterestMethod, InterestType, FirstInstallmentType, PenaltyRateAnnual, GracePeriod, FirstEMIPayment, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, LoanTypeStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime FROM GroupLoanNoMaster WITH(nolock) WHERE GLoanTypeNo='48 Week (10k - 1 Lakh)' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'GracePeriod'. Source: .Net SqlClient Data Provider StackTrace: 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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 08/12/2025 06:10:08 PM PageName: GroupLoan_GroupLoanNoMasterDetail String str: SELECT GLoanTypeId, LoanGroup, GroupLoanType, GLoanTypeNo, GLoanTypeName, GLoanNoPrefix, IdealTerm, MinimumTerm, MaximumTerm, MultipleTerm, TermMode, NoPayingTerm, IdealAmount, MinimumAmount, MaximumAmount, MultipleAmount, EMIAmountType, EMIAmount, InterestRateAnnual, InterestRateMinimum, InterestRateMaximum, InterestMethod, InterestType, FirstInstallmentType, PenaltyRateAnnual, GracePeriod, FirstEMIPayment, AccountHeadLoanId, AccountHeadLoanName, AccountHeadInterestId, AccountHeadInterestName, AccountHeadPenaltyId, AccountHeadPenaltyName, AccountHeadGSTId, AccountHeadGSTName, LoanTypeStatus, LoanTypeRemark, EntryUser, rtrim(Convert(char,EntryTime,106))+' - '+rtrim(Convert(char,EntryTime,108))AS EntryTime FROM GroupLoanNoMaster WITH(nolock) WHERE GLoanTypeNo='48 Week (10k - 1 Lakh)' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_rl4oi5un StackTrace: at GroupLoan_GroupLoanNoMasterDetail.FillLoanDetail() TargetSite: Void FillLoanDetail() Time: 10/12/2025 12:42:15 PM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanRepaymentMultiple.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 10/12/2025 12:42:15 PM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanRepaymentMultiple.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 11/12/2025 09:41:52 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='BiWeekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:10 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:11 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:11 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:11 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:11 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:11 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:11 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:11 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:11 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:11 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:12:11 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: DECLARE @ODate DATE; SET @ODate='12/3/2025 12:00:00 AM'; SELECT TOP 100 tt.MemberId, tt.MemberName, tt.NomineeName, tt.LoanId, substring(tt.DueStr,1,10) AS DueDate, Convert(INT,substring(tt.DueStr,12,4)) AS DueNo, Convert(INT,substring(tt.DueStr,17,2)) AS PaidNo, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN 0 ELSE Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate) *(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS Penalty, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01-(Convert(DECIMAL(10,2),substring(tt.DueStr,30,10))-.01) AS PrincipalDue, Convert(DECIMAL(10,2), substring(tt.DueStr,30,10))-.01 AS InterestDue, Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01 AS TotalDue, CASE WHEN @ODate<=convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)) THEN (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01) ELSE (Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)+Convert(DECIMAL(10,0),datediff(day,convert(DATETIME,substring(tt.DueStr,4,3)+substring(tt.DueStr,1,3)+substring(tt.DueStr,7,4)),@ODate)*(Convert(DECIMAL(10,2),substring(tt.DueStr,20,10))-.01)*tt.PenaltyRateAnnual/36500.00) END AS TotalPayable, tt.ODAmount, tt.BalanceAmount, Convert(CHAR,tt.LastPaidDate,106)AS LastPaidDate, Convert(CHAR,tt.LastPaidDate,103)AS LastPaidDated, tt.MeetingAmount, tt.LoanTerm, tt.LoanFormNo, tt.GLoanTypeNo, tt.DisburseDate, tt.ExpiryDate, tt.LoanAmount, tt.EMIAmount, tt.BranchId, tt.BranchName, tt.LoanOfficerId, tt.LoanOfficerName, tt.AccountHeadLoanId, tt.AccountHeadLoanName, tt.AccountHeadInterestId, tt.AccountHeadInterestName, tt.AccountHeadPenaltyId, tt.AccountHeadPenaltyName FROM ( SELECT ld.MemberId, ld.MemberName, ld.NomineeName, ld.LoanId, isnull((SELECT MAX(PDate) FROM GroupLoanLedger WITH(nolock) WHERE LoanId=ld.LoanId ),ld.DisburseDate)AS LastPaidDate, (SELECT TOP 1 rtrim(Convert(CHAR,DDate,103))+rtrim(convert(CHAR,10000+DNo))+rtrim(convert(CHAR,100+PNo))+rtrim(convert(CHAR,1000000.01+Total))+rtrim(convert(CHAR,1000000.01+Intt))AS DueStr FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId ORDER BY DNo, isnull(PNo,99) )AS DueStr, isnull((SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND DDate<@ODate AND LoanId=ld.LoanId),0)AS ODAmount, (SELECT SUM(Total) FROM GroupLoanLedger WITH(nolock) WHERE PStatus='Due' AND LoanId=ld.LoanId)AS BalanceAmount, 0 AS Penalty, lm.PenaltyRateAnnual, isnull(ld.CMEMI,0) AS MeetingAmount, rtrim(convert(CHAR,ld.LoanTerm))+'-'+ld.LoanTermMode AS LoanTerm, ld.LoanFormNo, ld.GLoanTypeNo, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, rtrim(convert(CHAR,ld.ExpiryDate,106))AS ExpiryDate, ld.LoanAmount, ld.EMIAmount, ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, lm.AccountHeadLoanId, lm.AccountHeadLoanName, lm.AccountHeadInterestId, lm.AccountHeadInterestName, lm.AccountHeadPenaltyId, lm.AccountHeadPenaltyName FROM GroupLoanAccount ld WITH(nolock) LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo INNER JOIN GroupCenterMaster cm WITH(nolock) ON ld.CenterId=cm.CenterId WHERE ld.LoanStatus='LoanDisbursed' AND isnull(ld.GroupName,'Group')='Individual' AND ld.BranchId='101' AND ld.LoanTermMode='Weekly' )tt WHERE 1=1 AND tt.DueStr!='' ORDER BY tt.LoanOfficerName, tt.MemberName, tt.LoanId String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.grdData_RowDataBound(Object sender, GridViewRowEventArgs e) TargetSite: Void grdData_RowDataBound(System.Object, System.Web.UI.WebControls.GridViewRowEventArgs) Time: 11/12/2025 10:23:22 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanRepaymentMultiple.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 11/12/2025 10:23:22 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanRepaymentMultiple.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 11/12/2025 10:23:30 AM PageName: IndividualLoan_IndvLoanDemandSheet String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanDemandSheet.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 11/12/2025 10:23:30 AM PageName: IndividualLoan_IndvLoanDemandSheet String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_vl3mqncu StackTrace: at IndividualLoan_IndvLoanDemandSheet.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanDemandSheet.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 11/12/2025 10:29:03 AM PageName: UserMasterSetting_WorkingDateSelection String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_pnujzw0g StackTrace: at UserMasterSetting_WorkingDateSelection.Page_Load(Object sender, EventArgs e) TargetSite: Void Page_Load(System.Object, System.EventArgs) Time: 11/12/2025 11:20:33 AM PageName: IndividualLoan_IndvLoanDemandSheet String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanDemandSheet.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 11/12/2025 11:20:33 AM PageName: IndividualLoan_IndvLoanDemandSheet String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_vl3mqncu StackTrace: at IndividualLoan_IndvLoanDemandSheet.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanDemandSheet.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 11/12/2025 11:20:44 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanRepaymentMultiple.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 11/12/2025 11:20:44 AM PageName: IndividualLoan_IndvLoanRepaymentMultiple String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_vi5xpfcf StackTrace: at IndividualLoan_IndvLoanRepaymentMultiple.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanRepaymentMultiple.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 11/12/2025 10:09:39 PM PageName: IndividualLoan_IndvMemberRegistrationVerification String str: SELECT a.CenterId, a.CenterName FROM GroupCenterMaster a WITH(nolock) WHERE a.CenterStatus='Active' AND a.CenterType='Individual' AND a.CenterOfficerId='E0001002' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Input string was not in a correct format. Source: mscorlib StackTrace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info) at System.Convert.ToInt16(String value) at IndividualLoan_IndvMemberRegistrationVerification.Validation() TargetSite: Void StringToNumber(System.String, System.Globalization.NumberStyles, NumberBuffer ByRef, System.Globalization.NumberFormatInfo, Boolean) Time: 11/12/2025 10:10:07 PM PageName: IndividualLoan_IndvMemberRegistrationVerification String str: SELECT a.CenterId, a.CenterName FROM GroupCenterMaster a WITH(nolock) WHERE a.CenterStatus='Active' AND a.CenterType='Individual' AND a.CenterOfficerId='E0001002' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Input string was not in a correct format. Source: mscorlib StackTrace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info) at System.Convert.ToInt16(String value) at IndividualLoan_IndvMemberRegistrationVerification.Validation() TargetSite: Void StringToNumber(System.String, System.Globalization.NumberStyles, NumberBuffer ByRef, System.Globalization.NumberFormatInfo, Boolean) Time: 11/12/2025 10:19:00 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 11/12/2025 10:23:32 PM PageName: IndividualLoan_IndvMemberRegistrationVerification String str: SELECT a.CenterId, a.CenterName FROM GroupCenterMaster a WITH(nolock) WHERE a.CenterStatus='Active' AND a.CenterType='Individual' AND a.CenterOfficerId='E0001002' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Input string was not in a correct format. Source: mscorlib StackTrace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info) at System.Convert.ToInt16(String value) at IndividualLoan_IndvMemberRegistrationVerification.Validation() TargetSite: Void StringToNumber(System.String, System.Globalization.NumberStyles, NumberBuffer ByRef, System.Globalization.NumberFormatInfo, Boolean) Time: 11/12/2025 10:41:58 PM PageName: IndividualLoan_IndvMemberRegistrationVerification String str: SELECT a.CenterId, a.CenterName FROM GroupCenterMaster a WITH(nolock) WHERE a.CenterStatus='Active' AND a.CenterType='Individual' AND a.CenterOfficerId='E0001002' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Input string was not in a correct format. Source: mscorlib StackTrace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info) at System.Convert.ToInt16(String value) at IndividualLoan_IndvMemberRegistrationVerification.Validation() TargetSite: Void StringToNumber(System.String, System.Globalization.NumberStyles, NumberBuffer ByRef, System.Globalization.NumberFormatInfo, Boolean) Time: 12/12/2025 09:24:13 AM PageName: IndividualLoan_IndvMemberRegistrationVerification String str: SELECT a.CenterId, a.CenterName FROM GroupCenterMaster a WITH(nolock) WHERE a.CenterStatus='Active' AND a.CenterType='Individual' AND a.CenterOfficerId='E0001002' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Input string was not in a correct format. Source: mscorlib StackTrace: at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal) at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at System.Int16.Parse(String s, NumberStyles style, NumberFormatInfo info) at System.Convert.ToInt16(String value) at IndividualLoan_IndvMemberRegistrationVerification.Validation() TargetSite: Void StringToNumber(System.String, System.Globalization.NumberStyles, NumberBuffer ByRef, System.Globalization.NumberFormatInfo, Boolean) Time: 12/12/2025 03:30:19 PM PageName: IndividualLoan_IndvMemberUpdateVerification String str: SELECT RelationId, RelationName FROM RelationNameMaster WITH(nolock) WHERE RelationStatus='Active' ORDER BY RelationName ; SELECT BankId, BankName FROM BankNameMaster WITH(nolock) WHERE BankStatus='Active' ORDER BY BankName ; SELECT StateId, StateName FROM StateNameMaster WITH(nolock) WHERE StateStatus='Active' ORDER BY StateName ; SELECT ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserName')AS APIUserName, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserStatus')AS APIUserStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='AadharNoVerificationAPI')AS AadharNoVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='PANNoVerificationAPI')AS PANNoVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='VoterIdVerificationAPI')AS VoterIdVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='BankAccountAdvanceVerificationAPI')AS BankAccountAdvanceVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberProfileStatus')AS GroupMemberProfileStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberCGTStatus')AS GroupMemberCGTStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='IndividualMemberCGT')AS IndividualMemberCGT, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberAadharNo')AS GroupMemberAadharNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberAadharVerify')AS GroupMemberAadharVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberPANNo')AS GroupMemberPANNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberPANVerify')AS GroupMemberPANVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberVoterId')AS GroupMemberVoterId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberVoterVerify')AS GroupMemberVoterVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberMobileNo')AS GroupMemberMobileNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberMobileVerify')AS GroupMemberMobileVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberSelfEdit')AS GroupMemberSelfEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberGuardianEdit')AS GroupMemberGuardianEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberLowerAge')AS GroupMemberLowerAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberUpperAge')AS GroupMemberUpperAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeAadharNo')AS GroupNomineeAadharNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeAadharVerify')AS GroupNomineeAadharVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineePANNo')AS GroupNomineePANNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineePANVerify')AS GroupNomineePANVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeVoterId')AS GroupNomineeVoterId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeVoterVerify')AS GroupNomineeVoterVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeMobileNo')AS GroupNomineeMobileNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeMobileVerify')AS GroupNomineeMobileVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeSelfEdit')AS GroupNomineeSelfEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeGuardianEdit')AS GroupNomineeGuardianEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeLowerAge')AS GroupNomineeLowerAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeUpperAge')AS GroupNomineeUpperAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberId')AS GroupMemberId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberRegSMS')AS GroupMemberRegSMS, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupLoanStatus')AS GroupLoanStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='IndividualLoanStatus')AS IndividualLoanStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupLoanBankAccount')AS GroupLoanBankAccount, ( SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')AS CompanyURL, ( SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupMemberKYCFolder')AS GroupMemberKYCFolder, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='NoOfMemberKYC')AS NoOfMemberKYC, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='NoOfNomineeKYC')AS NoOfNomineeKYC ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Column 'MemberProfileStatus' does not belong to table DSResult3. Source: System.Data StackTrace: at System.Data.DataRow.GetDataColumn(String columnName) at System.Data.DataRow.get_Item(String columnName) at IndividualLoan_IndvMemberUpdateVerification.FillDDLData() TargetSite: System.Data.DataColumn GetDataColumn(System.String) Time: 12/12/2025 04:01:17 PM PageName: DataTableResult String str: SELECT a.MemberNo AS SrNo, a.BranchName+' ('+a.BranchId+')' AS BranchName, a.GroupOfficerId, a.GroupOfficerName, Convert(CHAR,a.MemberJoinDate,106)AS MemberJoinDate, a.MemberId, a.MemberName, a.MemberGender, Convert(CHAR,a.MemberDOB,106)AS MemberDOB, a.MemberAge, a.MemberGuardianName, a.MemberMobileNo, a.MemberAadharNo, a.MemberProfileStatus FROM GroupLoanMemberDetail a WITH(nolock) WHERE a.GroupName='Individual' AND 1=1 AND a.MemberJoinDate>='12/12/0202 12:00:00 AM' AND a.MemberJoinDate<'12/13/2025 12:00:00 AM' AND a.BranchId IN ('100','102','101') AND a.MobileNo='M000200012' ORDER BY a.BranchName, a.GroupOfficerName, a.MemberName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'MobileNo'. Source: .Net SqlClient Data Provider StackTrace: 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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 12/12/2025 04:01:17 PM PageName: IndividualLoan_IndvMemberDetailUpadation String str: SELECT a.MemberNo AS SrNo, a.BranchName+' ('+a.BranchId+')' AS BranchName, a.GroupOfficerId, a.GroupOfficerName, Convert(CHAR,a.MemberJoinDate,106)AS MemberJoinDate, a.MemberId, a.MemberName, a.MemberGender, Convert(CHAR,a.MemberDOB,106)AS MemberDOB, a.MemberAge, a.MemberGuardianName, a.MemberMobileNo, a.MemberAadharNo, a.MemberProfileStatus FROM GroupLoanMemberDetail a WITH(nolock) WHERE a.GroupName='Individual' AND 1=1 AND a.MemberJoinDate>='12/12/0202 12:00:00 AM' AND a.MemberJoinDate<'12/13/2025 12:00:00 AM' AND a.BranchId IN ('100','102','101') AND a.MobileNo='M000200012' ORDER BY a.BranchName, a.GroupOfficerName, a.MemberName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_p0wzqjjj StackTrace: at IndividualLoan_IndvMemberDetailUpadation.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 12/12/2025 04:01:21 PM PageName: DataTableResult String str: SELECT a.MemberNo AS SrNo, a.BranchName+' ('+a.BranchId+')' AS BranchName, a.GroupOfficerId, a.GroupOfficerName, Convert(CHAR,a.MemberJoinDate,106)AS MemberJoinDate, a.MemberId, a.MemberName, a.MemberGender, Convert(CHAR,a.MemberDOB,106)AS MemberDOB, a.MemberAge, a.MemberGuardianName, a.MemberMobileNo, a.MemberAadharNo, a.MemberProfileStatus FROM GroupLoanMemberDetail a WITH(nolock) WHERE a.GroupName='Individual' AND 1=1 AND a.MemberJoinDate>='12/12/0202 12:00:00 AM' AND a.MemberJoinDate<'12/13/2025 12:00:00 AM' AND a.BranchId IN ('100','102','101') AND a.MobileNo='M000200012' ORDER BY a.BranchName, a.GroupOfficerName, a.MemberName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'MobileNo'. Source: .Net SqlClient Data Provider StackTrace: 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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 12/12/2025 04:01:21 PM PageName: IndividualLoan_IndvMemberDetailUpadation String str: SELECT a.MemberNo AS SrNo, a.BranchName+' ('+a.BranchId+')' AS BranchName, a.GroupOfficerId, a.GroupOfficerName, Convert(CHAR,a.MemberJoinDate,106)AS MemberJoinDate, a.MemberId, a.MemberName, a.MemberGender, Convert(CHAR,a.MemberDOB,106)AS MemberDOB, a.MemberAge, a.MemberGuardianName, a.MemberMobileNo, a.MemberAadharNo, a.MemberProfileStatus FROM GroupLoanMemberDetail a WITH(nolock) WHERE a.GroupName='Individual' AND 1=1 AND a.MemberJoinDate>='12/12/0202 12:00:00 AM' AND a.MemberJoinDate<'12/13/2025 12:00:00 AM' AND a.BranchId IN ('100','102','101') AND a.MobileNo='M000200012' ORDER BY a.BranchName, a.GroupOfficerName, a.MemberName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_p0wzqjjj StackTrace: at IndividualLoan_IndvMemberDetailUpadation.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 12/12/2025 04:02:16 PM PageName: IndividualLoan_IndvMemberUpdateVerification String str: SELECT RelationId, RelationName FROM RelationNameMaster WITH(nolock) WHERE RelationStatus='Active' ORDER BY RelationName ; SELECT BankId, BankName FROM BankNameMaster WITH(nolock) WHERE BankStatus='Active' ORDER BY BankName ; SELECT StateId, StateName FROM StateNameMaster WITH(nolock) WHERE StateStatus='Active' ORDER BY StateName ; SELECT ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserName')AS APIUserName, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserStatus')AS APIUserStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='AadharNoVerificationAPI')AS AadharNoVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='PANNoVerificationAPI')AS PANNoVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='VoterIdVerificationAPI')AS VoterIdVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='BankAccountAdvanceVerificationAPI')AS BankAccountAdvanceVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberProfileStatus')AS GroupMemberProfileStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberCGTStatus')AS GroupMemberCGTStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='IndividualMemberCGT')AS IndividualMemberCGT, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberAadharNo')AS GroupMemberAadharNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberAadharVerify')AS GroupMemberAadharVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberPANNo')AS GroupMemberPANNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberPANVerify')AS GroupMemberPANVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberVoterId')AS GroupMemberVoterId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberVoterVerify')AS GroupMemberVoterVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberMobileNo')AS GroupMemberMobileNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberMobileVerify')AS GroupMemberMobileVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberSelfEdit')AS GroupMemberSelfEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberGuardianEdit')AS GroupMemberGuardianEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberLowerAge')AS GroupMemberLowerAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberUpperAge')AS GroupMemberUpperAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeAadharNo')AS GroupNomineeAadharNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeAadharVerify')AS GroupNomineeAadharVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineePANNo')AS GroupNomineePANNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineePANVerify')AS GroupNomineePANVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeVoterId')AS GroupNomineeVoterId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeVoterVerify')AS GroupNomineeVoterVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeMobileNo')AS GroupNomineeMobileNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeMobileVerify')AS GroupNomineeMobileVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeSelfEdit')AS GroupNomineeSelfEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeGuardianEdit')AS GroupNomineeGuardianEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeLowerAge')AS GroupNomineeLowerAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeUpperAge')AS GroupNomineeUpperAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberId')AS GroupMemberId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberRegSMS')AS GroupMemberRegSMS, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupLoanStatus')AS GroupLoanStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='IndividualLoanStatus')AS IndividualLoanStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupLoanBankAccount')AS GroupLoanBankAccount, ( SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')AS CompanyURL, ( SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupMemberKYCFolder')AS GroupMemberKYCFolder, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='NoOfMemberKYC')AS NoOfMemberKYC, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='NoOfNomineeKYC')AS NoOfNomineeKYC ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Column 'MemberProfileStatus' does not belong to table DSResult3. Source: System.Data StackTrace: at System.Data.DataRow.GetDataColumn(String columnName) at System.Data.DataRow.get_Item(String columnName) at IndividualLoan_IndvMemberUpdateVerification.FillDDLData() TargetSite: System.Data.DataColumn GetDataColumn(System.String) Time: 12/12/2025 04:04:49 PM PageName: DataTableResult String str: SELECT a.SrNo, b.BranchName+' ('+b.BranchId+')' AS BranchName, b.GroupOfficerId, b.GroupOfficerName, a.MemberType, a.MemberId, a.MemberName, a.CibilPersonName, 'GroupLoan_GroupMemberCibilEquifaxUpdate.aspx?SrNo='+rtrim(convert(CHAR,a.SrNo)) AS CibilScoreURL, 'GroupLoan_PrintGroupMemberCibilEquifaxHTML.aspx?SrNo='+rtrim(convert(CHAR,a.SrNo)) AS CibilScoreURLHTML, a.ReqStatus, a.ReqFileName, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')+(SELECT replace(ReportValue,'~/','') FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupMemberKYCFolder')+a.MemberId+'/'+a.ReqFileName AS ReqFileURL, a.ResFileName, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')+(SELECT replace(ReportValue, '~/','') FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupMemberKYCFolder')+a.MemberId+'/'+a.ResFileName AS ResFileURL, rtrim(convert(char, a.EntryTime, 106)) + ' ' + rtrim(convert(char, a.EntryTime, 108))AS EntryTime, a.EntryUser, a.EquifaxScoreName, a.EquifaxScoreValue, a.ScoreDetailName, a.ScoreDetailType, a.ScoreDetailValue, a.ScoreDetail1Code, a.ScoreDetail1Description, a.ScoreDetail2Code, a.ScoreDetail2Description, a.ONoOfOpenAccount, a.ONoOfPastDueAccount, a.OTotalOutstanding, a.OTotalInstallment, a.RNoOfOpenAccount, a.RNoOfPastDueAccount, a.RTotalOutstanding, a.RTotalInstallment, a.RTotalSanctionAmount, a.RTotalAccount, a.RTotalPastDueAmount, a.RMaxDaysPastDue, a.RNoOfLoanWithReportedEMI, a.RTotalWriteOffAmount, a.RTotalHighCredit, a.ROldestAccount, a.RRecentAccount, a.MNoOfOpenAccount, a.MNoOfPastDueAccount, a.MTotalOutstanding, a.MTotalInstallment, a.MTotalSanctionAmount, a.MTotalAccount, a.MTotalPastDueAmount, a.MMaxDaysPastDue, a.MNoOfLoanWithReportedEMI, a.MTotalWriteOffAmount, a.MTotalHighCredit, a.MOldestAccount, a.MRecentAccount FROM GroupMemberCibilEquifax a WITH(nolock) INNER JOIN GroupLoanMemberDetail b WITH(nolock) ON a.MemberId=b.MemberId WHERE isnull(b.GroupName,'GroupLoan')='Individual' AND a.EntryTime>='12/12/0202 12:00:00 AM' AND a.EntryTime<'12/13/2025 12:00:00 AM' AND b.BranchId IN ('100','102','101') AND a.ReqStatus='Approved' AND a.MemberId='M000200012' ORDER BY a.EntryTime DESC, a.MemberName, a.MemberType String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: The conversion of a varchar data type to a smalldatetime data type resulted in an out-of-range value. Source: .Net SqlClient Data Provider StackTrace: 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.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.Read() at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 12/12/2025 04:04:49 PM PageName: IndividualLoan_IndvMemberCibilVerifyApproval String str: SELECT a.SrNo, b.BranchName+' ('+b.BranchId+')' AS BranchName, b.GroupOfficerId, b.GroupOfficerName, a.MemberType, a.MemberId, a.MemberName, a.CibilPersonName, 'GroupLoan_GroupMemberCibilEquifaxUpdate.aspx?SrNo='+rtrim(convert(CHAR,a.SrNo)) AS CibilScoreURL, 'GroupLoan_PrintGroupMemberCibilEquifaxHTML.aspx?SrNo='+rtrim(convert(CHAR,a.SrNo)) AS CibilScoreURLHTML, a.ReqStatus, a.ReqFileName, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')+(SELECT replace(ReportValue,'~/','') FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupMemberKYCFolder')+a.MemberId+'/'+a.ReqFileName AS ReqFileURL, a.ResFileName, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')+(SELECT replace(ReportValue, '~/','') FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupMemberKYCFolder')+a.MemberId+'/'+a.ResFileName AS ResFileURL, rtrim(convert(char, a.EntryTime, 106)) + ' ' + rtrim(convert(char, a.EntryTime, 108))AS EntryTime, a.EntryUser, a.EquifaxScoreName, a.EquifaxScoreValue, a.ScoreDetailName, a.ScoreDetailType, a.ScoreDetailValue, a.ScoreDetail1Code, a.ScoreDetail1Description, a.ScoreDetail2Code, a.ScoreDetail2Description, a.ONoOfOpenAccount, a.ONoOfPastDueAccount, a.OTotalOutstanding, a.OTotalInstallment, a.RNoOfOpenAccount, a.RNoOfPastDueAccount, a.RTotalOutstanding, a.RTotalInstallment, a.RTotalSanctionAmount, a.RTotalAccount, a.RTotalPastDueAmount, a.RMaxDaysPastDue, a.RNoOfLoanWithReportedEMI, a.RTotalWriteOffAmount, a.RTotalHighCredit, a.ROldestAccount, a.RRecentAccount, a.MNoOfOpenAccount, a.MNoOfPastDueAccount, a.MTotalOutstanding, a.MTotalInstallment, a.MTotalSanctionAmount, a.MTotalAccount, a.MTotalPastDueAmount, a.MMaxDaysPastDue, a.MNoOfLoanWithReportedEMI, a.MTotalWriteOffAmount, a.MTotalHighCredit, a.MOldestAccount, a.MRecentAccount FROM GroupMemberCibilEquifax a WITH(nolock) INNER JOIN GroupLoanMemberDetail b WITH(nolock) ON a.MemberId=b.MemberId WHERE isnull(b.GroupName,'GroupLoan')='Individual' AND a.EntryTime>='12/12/0202 12:00:00 AM' AND a.EntryTime<'12/13/2025 12:00:00 AM' AND b.BranchId IN ('100','102','101') AND a.ReqStatus='Approved' AND a.MemberId='M000200012' ORDER BY a.EntryTime DESC, a.MemberName, a.MemberType String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_x0xvfkul StackTrace: at IndividualLoan_IndvMemberCibilVerifyApproval.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 12/12/2025 04:07:02 PM PageName: IndividualLoan_IndvMemberUpdateVerification String str: SELECT RelationId, RelationName FROM RelationNameMaster WITH(nolock) WHERE RelationStatus='Active' ORDER BY RelationName ; SELECT BankId, BankName FROM BankNameMaster WITH(nolock) WHERE BankStatus='Active' ORDER BY BankName ; SELECT StateId, StateName FROM StateNameMaster WITH(nolock) WHERE StateStatus='Active' ORDER BY StateName ; SELECT ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserName')AS APIUserName, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserStatus')AS APIUserStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='AadharNoVerificationAPI')AS AadharNoVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='PANNoVerificationAPI')AS PANNoVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='VoterIdVerificationAPI')AS VoterIdVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='BankAccountAdvanceVerificationAPI')AS BankAccountAdvanceVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberProfileStatus')AS GroupMemberProfileStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberCGTStatus')AS GroupMemberCGTStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='IndividualMemberCGT')AS IndividualMemberCGT, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberAadharNo')AS GroupMemberAadharNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberAadharVerify')AS GroupMemberAadharVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberPANNo')AS GroupMemberPANNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberPANVerify')AS GroupMemberPANVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberVoterId')AS GroupMemberVoterId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberVoterVerify')AS GroupMemberVoterVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberMobileNo')AS GroupMemberMobileNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberMobileVerify')AS GroupMemberMobileVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberSelfEdit')AS GroupMemberSelfEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberGuardianEdit')AS GroupMemberGuardianEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberLowerAge')AS GroupMemberLowerAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberUpperAge')AS GroupMemberUpperAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeAadharNo')AS GroupNomineeAadharNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeAadharVerify')AS GroupNomineeAadharVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineePANNo')AS GroupNomineePANNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineePANVerify')AS GroupNomineePANVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeVoterId')AS GroupNomineeVoterId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeVoterVerify')AS GroupNomineeVoterVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeMobileNo')AS GroupNomineeMobileNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeMobileVerify')AS GroupNomineeMobileVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeSelfEdit')AS GroupNomineeSelfEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeGuardianEdit')AS GroupNomineeGuardianEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeLowerAge')AS GroupNomineeLowerAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeUpperAge')AS GroupNomineeUpperAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberId')AS GroupMemberId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberRegSMS')AS GroupMemberRegSMS, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupLoanStatus')AS GroupLoanStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='IndividualLoanStatus')AS IndividualLoanStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupLoanBankAccount')AS GroupLoanBankAccount, ( SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')AS CompanyURL, ( SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupMemberKYCFolder')AS GroupMemberKYCFolder, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='NoOfMemberKYC')AS NoOfMemberKYC, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='NoOfNomineeKYC')AS NoOfNomineeKYC ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Column 'MemberProfileStatus' does not belong to table DSResult3. Source: System.Data StackTrace: at System.Data.DataRow.GetDataColumn(String columnName) at System.Data.DataRow.get_Item(String columnName) at IndividualLoan_IndvMemberUpdateVerification.FillDDLData() TargetSite: System.Data.DataColumn GetDataColumn(System.String) Time: 12/12/2025 04:12:35 PM PageName: IndividualLoan_IndvMemberUpdateVerification String str: SELECT RelationId, RelationName FROM RelationNameMaster WITH(nolock) WHERE RelationStatus='Active' ORDER BY RelationName ; SELECT BankId, BankName FROM BankNameMaster WITH(nolock) WHERE BankStatus='Active' ORDER BY BankName ; SELECT StateId, StateName FROM StateNameMaster WITH(nolock) WHERE StateStatus='Active' ORDER BY StateName ; SELECT ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserName')AS APIUserName, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='APIUserStatus')AS APIUserStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='AadharNoVerificationAPI')AS AadharNoVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='PANNoVerificationAPI')AS PANNoVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='VoterIdVerificationAPI')AS VoterIdVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='BankAccountAdvanceVerificationAPI')AS BankAccountAdvanceVerificationAPI, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberProfileStatus')AS GroupMemberProfileStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberCGTStatus')AS GroupMemberCGTStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='IndividualMemberCGT')AS IndividualMemberCGT, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberAadharNo')AS GroupMemberAadharNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberAadharVerify')AS GroupMemberAadharVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberPANNo')AS GroupMemberPANNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberPANVerify')AS GroupMemberPANVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberVoterId')AS GroupMemberVoterId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberVoterVerify')AS GroupMemberVoterVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberMobileNo')AS GroupMemberMobileNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberMobileVerify')AS GroupMemberMobileVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberSelfEdit')AS GroupMemberSelfEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberGuardianEdit')AS GroupMemberGuardianEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberLowerAge')AS GroupMemberLowerAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberUpperAge')AS GroupMemberUpperAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeAadharNo')AS GroupNomineeAadharNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeAadharVerify')AS GroupNomineeAadharVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineePANNo')AS GroupNomineePANNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineePANVerify')AS GroupNomineePANVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeVoterId')AS GroupNomineeVoterId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeVoterVerify')AS GroupNomineeVoterVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeMobileNo')AS GroupNomineeMobileNo, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeMobileVerify')AS GroupNomineeMobileVerify, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeSelfEdit')AS GroupNomineeSelfEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeGuardianEdit')AS GroupNomineeGuardianEdit, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeLowerAge')AS GroupNomineeLowerAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupNomineeUpperAge')AS GroupNomineeUpperAge, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberId')AS GroupMemberId, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupMemberRegSMS')AS GroupMemberRegSMS, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupLoanStatus')AS GroupLoanStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='IndividualLoanStatus')AS IndividualLoanStatus, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='GroupLoanBankAccount')AS GroupLoanBankAccount, ( SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='CompanyURL')AS CompanyURL, ( SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='GroupMemberKYCFolder')AS GroupMemberKYCFolder, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='NoOfMemberKYC')AS NoOfMemberKYC, ( SELECT DataValue FROM ProjectDataSetting WITH(nolock) WHERE DataName='NoOfNomineeKYC')AS NoOfNomineeKYC ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Column 'MemberProfileStatus' does not belong to table DSResult3. Source: System.Data StackTrace: at System.Data.DataRow.GetDataColumn(String columnName) at System.Data.DataRow.get_Item(String columnName) at IndividualLoan_IndvMemberUpdateVerification.FillDDLData() TargetSite: System.Data.DataColumn GetDataColumn(System.String) Time: 12/12/2025 05:42:18 PM PageName: IndividualLoan_IndvMemberRegistrationList String str: SELECT a.MemberNo AS SrNo, a.BranchName+' ('+a.BranchId+')' AS BranchName, a.GroupOfficerId, a.GroupOfficerName, Convert(CHAR,a.MemberJoinDate,106)AS MemberJoinDate, a.MemberId, a.MemberName, a.MemberGuardianName, a.MemberGender, Convert(CHAR,a.MemberDOB,106)AS MemberDOB, a.MemberAge, a.MemberProfileStatus, a.MemberMobileNo, a.MemberAadharNo, a.MemberPanNo, a.MemberVoterIdNo, a.MemberDLNo, a.RationCard, a.ElectricityBill, a.NomineeName, a.NomineeGuardianName, a.NomineeMobileNo, a.NomineeAadharNo, a.NomineeVoterIdNo, a.NomineePANNo, a.NomineeDLNo, a.MemberFormNo FROM GroupLoanMemberDetail a WITH(nolock) WHERE isnull(a.GroupName,'GroupLoan')='Individual' String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: String was not recognized as a valid DateTime. Source: mscorlib StackTrace: at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles) at System.Convert.ToDateTime(String value) at DateConversion.DateHelper.ConvertDate(String s) at IndividualLoan_IndvMemberRegistrationList.btnSearch_Click(Object sender, EventArgs e) TargetSite: System.DateTime Parse(System.String, System.Globalization.DateTimeFormatInfo, System.Globalization.DateTimeStyles) Time: 12/12/2025 05:53:17 PM PageName: IndividualLoan_IndvMemberUpdateVerification String str: SELECT Count(1)AS Nos1 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( MemberAadharNo='860659967087' OR NomineeAadharNo='860659967087' ) ; SELECT Count(1)AS Nos2 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( MemberPANNo='AMHPY9345B' OR NomineePANNo='AMHPY9345B' ) ; SELECT Count(1)AS Nos3 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( MemberVoterIdNo='' OR NomineeVoterIdNo='' ) ; SELECT Count(1)AS Nos4 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( NomineeAadharNo='558116261338' OR MemberAadharNo='558116261338' ) ; SELECT Count(1)AS Nos5 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( NomineePANNo='' OR MemberPANNo='' ) ; SELECT Count(1)AS Nos6 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( NomineeVoterIdNo='AGS0155341' OR MemberVoterIdNo='AGS0155341' ) ; SELECT Count(1)AS Nos7 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( MemberMobileNo='7080532396' OR NomineeMobileNo='7080532396' ) ; SELECT Count(1)AS Nos8 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( NomineeMobileNo='8081427663' OR MemberMobileNo='8081427663' ) ; SELECT Count(1)AS Nos9 FROM GroupLoanMemberNominee WHERE MemberId!='M000200009' AND ( BankAccountNo='39620100008636' AND BankIFSCCode='BARB0NAIGAN' ) ; String sql: INSERT INTO GroupLoanMemberDetailHistory ( MemberNo, BranchId, BranchName, GroupOfficerId, GroupOfficerName, CenterId, CenterName, GroupName, MemberFormNo, OtherMemberId, IdType, MemberId, MemberJoinDate, MemberSalutation, MemberName, GuardianSalutation, MemberGuardianName, MemberGender, MemberDOB, MemberAge, MemberMobileNo, MemberMobileVerified, MemberOccupation, MemberNatureOccupation, MemberAnnualIncome, FamilyAnnualExpence, NomineeSalutation, NomineeName, NomineeGuardianSalutation, NomineeGuardianName, NomineeGender, NomineeDOB, NomineeAge, NomineeRelation, NomineeAnnualIncome, NomineeOccupation, NomineeMobileNo, NomineeMobileVerified, NomineeAadharNo, NomineeAadharVerified, NomineeAadharOTP, NomineeVoterIdNo, NomineeVoterIdVerified, NomineePANNo, NomineePANVerified, NomineeDLNo, NomineeDLVerified, MemberAadharNo, MemberAadharVerified, MemberAadharOTP, MemberPanNo, MemberPanVerified, MemberVoterIdNo, MemberVoterIdVerified, MemberDLNo, MemberDLVerified, RationCard, ElectricityBill, MemberProfileStatus, CibilStatus, CibilDate, MemberRemark, LocationType, AddressType, MemberAddress, DistrictName, StateName, PinCode, MemberLatitude, MemberLongitude, EntryUser, EntryTime, EditUser, EditTime, MemberPOIType, MemberPOINo, MemberPOAType, MemberPOANo, MemberAadharPhoto, MemberPhoto, MemberSignature, MemberPOIFront, MemberPOIBack, MemberPOAFront, MemberPOABack, MemberBankPassBook, NomineePOIType, NomineePOINo, NomineePOAType, NomineePOANo, NomineeAadharPhoto, NomineePhoto, NomineeSignature, NomineePOIFront, NomineePOIBack, NomineePOAFront, NomineePOABack, MemberNomineeJointPhoto, KYCStatus, KYCRemark, KYCTime, KYCUser, DropOutDate, DropOutRemark, DropOutUser, DropOutTime, UpdateRemark, UpdateUser, UpdateTime ) SELECT MemberNo, BranchId, BranchName, GroupOfficerId, GroupOfficerName, CenterId, CenterName, GroupName, MemberFormNo, OtherMemberId, IdType, MemberId, MemberJoinDate, MemberSalutation, MemberName, GuardianSalutation, MemberGuardianName, MemberGender, MemberDOB, MemberAge, MemberMobileNo, MemberMobileVerified, MemberOccupation, MemberNatureOccupation, MemberAnnualIncome, FamilyAnnualExpence, NomineeSalutation, NomineeName, NomineeGuardianSalutation, NomineeGuardianName, NomineeGender, NomineeDOB, NomineeAge, NomineeRelation, NomineeAnnualIncome, NomineeOccupation, NomineeMobileNo, NomineeMobileVerified, NomineeAadharNo, NomineeAadharVerified, NomineeAadharOTP, NomineeVoterIdNo, NomineeVoterIdVerified, NomineePANNo, NomineePANVerified, NomineeDLNo, NomineeDLVerified, MemberAadharNo, MemberAadharVerified, MemberAadharOTP, MemberPanNo, MemberPanVerified, MemberVoterIdNo, MemberVoterIdVerified, MemberDLNo, MemberDLVerified, RationCard, ElectricityBill, MemberProfileStatus, CibilStatus, CibilDate, MemberRemark, LocationType, AddressType, MemberAddress, DistrictName, StateName, PinCode, MemberLatitude, MemberLongitude, EntryUser, EntryTime, EditUser, EditTime, MemberPOIType, MemberPOINo, MemberPOAType, MemberPOANo, MemberAadharPhoto, MemberPhoto, MemberSignature, MemberPOIFront, MemberPOIBack, MemberPOAFront, MemberPOABack, MemberBankPassBook, NomineePOIType, NomineePOINo, NomineePOAType, NomineePOANo, NomineeAadharPhoto, NomineePhoto, NomineeSignature, NomineePOIFront, NomineePOIBack, NomineePOAFront, NomineePOABack, MemberNomineeJointPhoto, KYCStatus, KYCRemark, KYCTime, KYCUser, DropOutDate, DropOutRemark, DropOutUser, DropOutTime, 'MemberVerified' AS UpdateRemark, 'superadmin' AS UpdateUser, GETDATE() AS UpdateTime FROM GroupLoanMemberDetail WHERE MemberId='M000200009' ; INSERT INTO GroupLoanMemberNomineeHistory ( NomineeNo, MemberId, MemberName, MemberLoanStatus, MemberLoginStatus, MemberWebLogin, MemberAppLogin, MemberPassword, LoanPurpose, LoanAmount, MemberDOM, SpouseName, MemberEducation, MemberReligion, MemberCategory, MemberMaritalStatus, NomineeIsMinor, NomineeEducation, NomineeMinorGuardian, NomineeAddress, NomineeDistrictName, NomineeStateName, NomineePinCode, NomineeSalutation1, NomineeName1, NomineeGuardianSalutation1, NomineeGuardianName1, NomineeDOB1, NomineeAge1, NomineeRelation1, NomineeGender1, NomineeAnnualIncome1, NomineeOccupation1, NomineeAddress1, NomineeAadharNo1, NomineePanNo1, NomineeMobileNo1, MaikaPersonName, MaikaPersonRelation, MaikaPersonContact, MaikaAddress, BankAccountType, MemberBankId, MemberBankName, BankAccountNo, BankIFSCCode, BankBranchName, BankBranchAddress, PostalAddress, PostalHouseNo, PostalVillageName, PostalPostOffice, PostalAreaName, PostalLandMark, PostalCityName, PostalDistrictName, PostalStateName, PostalPinCode, PermanentSameAsPostal, PermanentAddress, PermanentHouseNo, PermanentVillageName, PermanentPostOffice, PermanentAreaName, PermanentLandMark, PermanentCityName, PermanentDistrictName, PermanentStateName, PermanentPinCode, GroupJoinDate, GroupUser, GroupTime, GroupStatus, CGTOfficerId, CGTOfficerName, CGTDate, CGTDate2, CGTDate3, CGTDateDocument1, CGTDateDocument2, CGTDate2Document1, CGTDate2Document2, CGTDate3Document1, CGTDate3Document2, CGTUser, CGTTime, GRTOfficerId, GRTOfficerName, GRTDate, GRTUser, GRTTime, EntryUser, EntryTime, UpdateRemark, UpdateUser, UpdateTime ) SELECT NomineeNo, MemberId, MemberName, MemberLoanStatus, MemberLoginStatus, MemberWebLogin, MemberAppLogin, MemberPassword, LoanPurpose, LoanAmount, MemberDOM, SpouseName, MemberEducation, MemberReligion, MemberCategory, MemberMaritalStatus, NomineeIsMinor, NomineeEducation, NomineeMinorGuardian, NomineeAddress, NomineeDistrictName, NomineeStateName, NomineePinCode, NomineeSalutation1, NomineeName1, NomineeGuardianSalutation1, NomineeGuardianName1, NomineeDOB1, NomineeAge1, NomineeRelation1, NomineeGender1, NomineeAnnualIncome1, NomineeOccupation1, NomineeAddress1, NomineeAadharNo1, NomineePanNo1, NomineeMobileNo1, MaikaPersonName, MaikaPersonRelation, MaikaPersonContact, MaikaAddress, BankAccountType, MemberBankId, MemberBankName, BankAccountNo, BankIFSCCode, BankBranchName, BankBranchAddress, PostalAddress, PostalHouseNo, PostalVillageName, PostalPostOffice, PostalAreaName, PostalLandMark, PostalCityName, PostalDistrictName, PostalStateName, PostalPinCode, PermanentSameAsPostal, PermanentAddress, PermanentHouseNo, PermanentVillageName, PermanentPostOffice, PermanentAreaName, PermanentLandMark, PermanentCityName, PermanentDistrictName, PermanentStateName, PermanentPinCode, GroupJoinDate, GroupUser, GroupTime, GroupStatus, CGTOfficerId, CGTOfficerName, CGTDate, CGTDate2, CGTDate3, CGTDateDocument1, CGTDateDocument2, CGTDate2Document1, CGTDate2Document2, CGTDate3Document1, CGTDate3Document2, CGTUser, CGTTime, GRTOfficerId, GRTOfficerName, GRTDate, GRTUser, GRTTime, EntryUser, EntryTime, 'MemberVerified' AS UpdateRemark, 'superadmin' AS UpdateUser, GETDATE() AS UpdateTime FROM GroupLoanMemberNominee WHERE MemberId='M000200009' ; UPDATE GroupLoanMemberDetail SET MemberAadharNo='860659967087', MemberAadharVerified='', MemberVoterIdNo='', MemberVoterIdVerified='', MemberPANNo='AMHPY9345B', MemberPanVerified='', MemberMobileNo='7080532396', MemberMobileVerified='', MemberSalutation='', MemberName='Mr Amar Bahadur Yadav', MemberGender='Male', MemberDOB='4/2/1983 12:00:00 AM', MemberAge='42', GuardianSalutation='S/O', MemberGuardianName='PANNALAL YADAV', NomineeAadharNo='558116261338', NomineeAadharVerified='Verification Error ??????????', NomineeVoterIdNo='AGS0155341', NomineeVoterIdVerified='', NomineePANNo='', NomineePANVerified='', NomineeMobileNo='8081427663', NomineeMobileVerified='', NomineeSalutation='Mrs.', NomineeName='SEETA DEVI', NomineeGender='Female', NomineeDOB='1/1/1988 12:00:00 AM', NomineeAge='37', NomineeGuardianSalutation='W/O', NomineeGuardianName='Amar Bahadur Yadav', NomineeRelation='Wife', AddressType='Permanent', LocationType='SemiUrban', MemberAddress='UMARPUR HARBANDHARPUR MURADGANJ', StateName='Uttar Pradesh', DistrictName='Jaunpur', PinCode='222001', MemberLatitude='', MemberLongitude='' WHERE MemberId='M000200009' ; UPDATE GroupLoanMemberNominee SET PermanentAddress='UMARPUR HARBANDHARPUR MURADGANJ', PermanentDistrictName='Jaunpur', PermanentStateName='Uttar Pradesh', PermanentPinCode='222001', NomineeAddress ='UMARPUR HARBANDHARPUR MURADGANJ', NomineeDistrictName='Jaunpur', NomineeStateName='Uttar Pradesh', NomineePinCode='222001', BankAccountType = 'Saving', BankAccountNo = '39620100008636', BankIFSCCode = 'BARB0NAIGAN', MemberBankId = 'BARB', MemberBankName = 'Bank Of Baroda' WHERE MemberId ='M000200009' ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: String or binary data would be truncated. The statement has been terminated. Source: .Net SqlClient Data Provider StackTrace: 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 ClassMaster.VoidInsUpDelTransaction(String sql, SqlTransaction trans) at IndividualLoan_IndvMemberUpdateVerification.btnUpdate_Click(Object sender, EventArgs e) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 12/12/2025 05:54:01 PM PageName: IndividualLoan_IndvMemberUpdateVerification String str: SELECT Count(1)AS Nos1 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( MemberAadharNo='860659967087' OR NomineeAadharNo='860659967087' ) ; SELECT Count(1)AS Nos2 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( MemberPANNo='AMHPY9345B' OR NomineePANNo='AMHPY9345B' ) ; SELECT Count(1)AS Nos3 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( MemberVoterIdNo='' OR NomineeVoterIdNo='' ) ; SELECT Count(1)AS Nos4 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( NomineeAadharNo='558116261338' OR MemberAadharNo='558116261338' ) ; SELECT Count(1)AS Nos5 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( NomineePANNo='' OR MemberPANNo='' ) ; SELECT Count(1)AS Nos6 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( NomineeVoterIdNo='AGS0155341' OR MemberVoterIdNo='AGS0155341' ) ; SELECT Count(1)AS Nos7 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( MemberMobileNo='7080532396' OR NomineeMobileNo='7080532396' ) ; SELECT Count(1)AS Nos8 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( NomineeMobileNo='8081427663' OR MemberMobileNo='8081427663' ) ; SELECT Count(1)AS Nos9 FROM GroupLoanMemberNominee WHERE MemberId!='M000200009' AND ( BankAccountNo='39620100008636' AND BankIFSCCode='BARB0NAIGAN' ) ; String sql: INSERT INTO GroupLoanMemberDetailHistory ( MemberNo, BranchId, BranchName, GroupOfficerId, GroupOfficerName, CenterId, CenterName, GroupName, MemberFormNo, OtherMemberId, IdType, MemberId, MemberJoinDate, MemberSalutation, MemberName, GuardianSalutation, MemberGuardianName, MemberGender, MemberDOB, MemberAge, MemberMobileNo, MemberMobileVerified, MemberOccupation, MemberNatureOccupation, MemberAnnualIncome, FamilyAnnualExpence, NomineeSalutation, NomineeName, NomineeGuardianSalutation, NomineeGuardianName, NomineeGender, NomineeDOB, NomineeAge, NomineeRelation, NomineeAnnualIncome, NomineeOccupation, NomineeMobileNo, NomineeMobileVerified, NomineeAadharNo, NomineeAadharVerified, NomineeAadharOTP, NomineeVoterIdNo, NomineeVoterIdVerified, NomineePANNo, NomineePANVerified, NomineeDLNo, NomineeDLVerified, MemberAadharNo, MemberAadharVerified, MemberAadharOTP, MemberPanNo, MemberPanVerified, MemberVoterIdNo, MemberVoterIdVerified, MemberDLNo, MemberDLVerified, RationCard, ElectricityBill, MemberProfileStatus, CibilStatus, CibilDate, MemberRemark, LocationType, AddressType, MemberAddress, DistrictName, StateName, PinCode, MemberLatitude, MemberLongitude, EntryUser, EntryTime, EditUser, EditTime, MemberPOIType, MemberPOINo, MemberPOAType, MemberPOANo, MemberAadharPhoto, MemberPhoto, MemberSignature, MemberPOIFront, MemberPOIBack, MemberPOAFront, MemberPOABack, MemberBankPassBook, NomineePOIType, NomineePOINo, NomineePOAType, NomineePOANo, NomineeAadharPhoto, NomineePhoto, NomineeSignature, NomineePOIFront, NomineePOIBack, NomineePOAFront, NomineePOABack, MemberNomineeJointPhoto, KYCStatus, KYCRemark, KYCTime, KYCUser, DropOutDate, DropOutRemark, DropOutUser, DropOutTime, UpdateRemark, UpdateUser, UpdateTime ) SELECT MemberNo, BranchId, BranchName, GroupOfficerId, GroupOfficerName, CenterId, CenterName, GroupName, MemberFormNo, OtherMemberId, IdType, MemberId, MemberJoinDate, MemberSalutation, MemberName, GuardianSalutation, MemberGuardianName, MemberGender, MemberDOB, MemberAge, MemberMobileNo, MemberMobileVerified, MemberOccupation, MemberNatureOccupation, MemberAnnualIncome, FamilyAnnualExpence, NomineeSalutation, NomineeName, NomineeGuardianSalutation, NomineeGuardianName, NomineeGender, NomineeDOB, NomineeAge, NomineeRelation, NomineeAnnualIncome, NomineeOccupation, NomineeMobileNo, NomineeMobileVerified, NomineeAadharNo, NomineeAadharVerified, NomineeAadharOTP, NomineeVoterIdNo, NomineeVoterIdVerified, NomineePANNo, NomineePANVerified, NomineeDLNo, NomineeDLVerified, MemberAadharNo, MemberAadharVerified, MemberAadharOTP, MemberPanNo, MemberPanVerified, MemberVoterIdNo, MemberVoterIdVerified, MemberDLNo, MemberDLVerified, RationCard, ElectricityBill, MemberProfileStatus, CibilStatus, CibilDate, MemberRemark, LocationType, AddressType, MemberAddress, DistrictName, StateName, PinCode, MemberLatitude, MemberLongitude, EntryUser, EntryTime, EditUser, EditTime, MemberPOIType, MemberPOINo, MemberPOAType, MemberPOANo, MemberAadharPhoto, MemberPhoto, MemberSignature, MemberPOIFront, MemberPOIBack, MemberPOAFront, MemberPOABack, MemberBankPassBook, NomineePOIType, NomineePOINo, NomineePOAType, NomineePOANo, NomineeAadharPhoto, NomineePhoto, NomineeSignature, NomineePOIFront, NomineePOIBack, NomineePOAFront, NomineePOABack, MemberNomineeJointPhoto, KYCStatus, KYCRemark, KYCTime, KYCUser, DropOutDate, DropOutRemark, DropOutUser, DropOutTime, 'MemberVerified' AS UpdateRemark, 'superadmin' AS UpdateUser, GETDATE() AS UpdateTime FROM GroupLoanMemberDetail WHERE MemberId='M000200009' ; INSERT INTO GroupLoanMemberNomineeHistory ( NomineeNo, MemberId, MemberName, MemberLoanStatus, MemberLoginStatus, MemberWebLogin, MemberAppLogin, MemberPassword, LoanPurpose, LoanAmount, MemberDOM, SpouseName, MemberEducation, MemberReligion, MemberCategory, MemberMaritalStatus, NomineeIsMinor, NomineeEducation, NomineeMinorGuardian, NomineeAddress, NomineeDistrictName, NomineeStateName, NomineePinCode, NomineeSalutation1, NomineeName1, NomineeGuardianSalutation1, NomineeGuardianName1, NomineeDOB1, NomineeAge1, NomineeRelation1, NomineeGender1, NomineeAnnualIncome1, NomineeOccupation1, NomineeAddress1, NomineeAadharNo1, NomineePanNo1, NomineeMobileNo1, MaikaPersonName, MaikaPersonRelation, MaikaPersonContact, MaikaAddress, BankAccountType, MemberBankId, MemberBankName, BankAccountNo, BankIFSCCode, BankBranchName, BankBranchAddress, PostalAddress, PostalHouseNo, PostalVillageName, PostalPostOffice, PostalAreaName, PostalLandMark, PostalCityName, PostalDistrictName, PostalStateName, PostalPinCode, PermanentSameAsPostal, PermanentAddress, PermanentHouseNo, PermanentVillageName, PermanentPostOffice, PermanentAreaName, PermanentLandMark, PermanentCityName, PermanentDistrictName, PermanentStateName, PermanentPinCode, GroupJoinDate, GroupUser, GroupTime, GroupStatus, CGTOfficerId, CGTOfficerName, CGTDate, CGTDate2, CGTDate3, CGTDateDocument1, CGTDateDocument2, CGTDate2Document1, CGTDate2Document2, CGTDate3Document1, CGTDate3Document2, CGTUser, CGTTime, GRTOfficerId, GRTOfficerName, GRTDate, GRTUser, GRTTime, EntryUser, EntryTime, UpdateRemark, UpdateUser, UpdateTime ) SELECT NomineeNo, MemberId, MemberName, MemberLoanStatus, MemberLoginStatus, MemberWebLogin, MemberAppLogin, MemberPassword, LoanPurpose, LoanAmount, MemberDOM, SpouseName, MemberEducation, MemberReligion, MemberCategory, MemberMaritalStatus, NomineeIsMinor, NomineeEducation, NomineeMinorGuardian, NomineeAddress, NomineeDistrictName, NomineeStateName, NomineePinCode, NomineeSalutation1, NomineeName1, NomineeGuardianSalutation1, NomineeGuardianName1, NomineeDOB1, NomineeAge1, NomineeRelation1, NomineeGender1, NomineeAnnualIncome1, NomineeOccupation1, NomineeAddress1, NomineeAadharNo1, NomineePanNo1, NomineeMobileNo1, MaikaPersonName, MaikaPersonRelation, MaikaPersonContact, MaikaAddress, BankAccountType, MemberBankId, MemberBankName, BankAccountNo, BankIFSCCode, BankBranchName, BankBranchAddress, PostalAddress, PostalHouseNo, PostalVillageName, PostalPostOffice, PostalAreaName, PostalLandMark, PostalCityName, PostalDistrictName, PostalStateName, PostalPinCode, PermanentSameAsPostal, PermanentAddress, PermanentHouseNo, PermanentVillageName, PermanentPostOffice, PermanentAreaName, PermanentLandMark, PermanentCityName, PermanentDistrictName, PermanentStateName, PermanentPinCode, GroupJoinDate, GroupUser, GroupTime, GroupStatus, CGTOfficerId, CGTOfficerName, CGTDate, CGTDate2, CGTDate3, CGTDateDocument1, CGTDateDocument2, CGTDate2Document1, CGTDate2Document2, CGTDate3Document1, CGTDate3Document2, CGTUser, CGTTime, GRTOfficerId, GRTOfficerName, GRTDate, GRTUser, GRTTime, EntryUser, EntryTime, 'MemberVerified' AS UpdateRemark, 'superadmin' AS UpdateUser, GETDATE() AS UpdateTime FROM GroupLoanMemberNominee WHERE MemberId='M000200009' ; UPDATE GroupLoanMemberDetail SET MemberAadharNo='860659967087', MemberAadharVerified='', MemberVoterIdNo='', MemberVoterIdVerified='', MemberPANNo='AMHPY9345B', MemberPanVerified='', MemberMobileNo='7080532396', MemberMobileVerified='', MemberSalutation='', MemberName='Mr Amar Bahadur Yadav', MemberGender='Male', MemberDOB='4/2/1983 12:00:00 AM', MemberAge='42', GuardianSalutation='S/O', MemberGuardianName='PANNALAL YADAV', NomineeAadharNo='558116261338', NomineeAadharVerified='Verification Error ??????????', NomineeVoterIdNo='AGS0155341', NomineeVoterIdVerified='', NomineePANNo='', NomineePANVerified='', NomineeMobileNo='8081427663', NomineeMobileVerified='', NomineeSalutation='Mrs.', NomineeName='SEETA DEVI', NomineeGender='Female', NomineeDOB='1/1/1988 12:00:00 AM', NomineeAge='37', NomineeGuardianSalutation='W/O', NomineeGuardianName='Amar Bahadur Yadav', NomineeRelation='Wife', AddressType='Permanent', LocationType='SemiUrban', MemberAddress='UMARPUR HARBANDHARPUR MURADGANJ', StateName='Uttar Pradesh', DistrictName='Jaunpur', PinCode='222001', MemberLatitude='', MemberLongitude='' WHERE MemberId='M000200009' ; UPDATE GroupLoanMemberNominee SET PermanentAddress='UMARPUR HARBANDHARPUR MURADGANJ', PermanentDistrictName='Jaunpur', PermanentStateName='Uttar Pradesh', PermanentPinCode='222001', NomineeAddress ='UMARPUR HARBANDHARPUR MURADGANJ', NomineeDistrictName='Jaunpur', NomineeStateName='Uttar Pradesh', NomineePinCode='222001', BankAccountType = 'Saving', BankAccountNo = '39620100008636', BankIFSCCode = 'BARB0NAIGAN', MemberBankId = 'BARB', MemberBankName = 'Bank Of Baroda' WHERE MemberId ='M000200009' ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: String or binary data would be truncated. The statement has been terminated. Source: .Net SqlClient Data Provider StackTrace: 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 ClassMaster.VoidInsUpDelTransaction(String sql, SqlTransaction trans) at IndividualLoan_IndvMemberUpdateVerification.btnUpdate_Click(Object sender, EventArgs e) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 12/12/2025 05:54:36 PM PageName: IndividualLoan_IndvMemberUpdateVerification String str: SELECT Count(1)AS Nos1 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( MemberAadharNo='860659967087' OR NomineeAadharNo='860659967087' ) ; SELECT Count(1)AS Nos2 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( MemberPANNo='AMHPY9345B' OR NomineePANNo='AMHPY9345B' ) ; SELECT Count(1)AS Nos3 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( MemberVoterIdNo='' OR NomineeVoterIdNo='' ) ; SELECT Count(1)AS Nos4 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( NomineeAadharNo='558116261338' OR MemberAadharNo='558116261338' ) ; SELECT Count(1)AS Nos5 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( NomineePANNo='' OR MemberPANNo='' ) ; SELECT Count(1)AS Nos6 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( NomineeVoterIdNo='AGS0155341' OR MemberVoterIdNo='AGS0155341' ) ; SELECT Count(1)AS Nos7 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( MemberMobileNo='7080532396' OR NomineeMobileNo='7080532396' ) ; SELECT Count(1)AS Nos8 FROM GroupLoanMemberDetail WHERE MemberId!='M000200009' AND ( NomineeMobileNo='8081427663' OR MemberMobileNo='8081427663' ) ; SELECT Count(1)AS Nos9 FROM GroupLoanMemberNominee WHERE MemberId!='M000200009' AND ( BankAccountNo='39620100008636' AND BankIFSCCode='BARB0NAIGAN' ) ; String sql: INSERT INTO GroupLoanMemberDetailHistory ( MemberNo, BranchId, BranchName, GroupOfficerId, GroupOfficerName, CenterId, CenterName, GroupName, MemberFormNo, OtherMemberId, IdType, MemberId, MemberJoinDate, MemberSalutation, MemberName, GuardianSalutation, MemberGuardianName, MemberGender, MemberDOB, MemberAge, MemberMobileNo, MemberMobileVerified, MemberOccupation, MemberNatureOccupation, MemberAnnualIncome, FamilyAnnualExpence, NomineeSalutation, NomineeName, NomineeGuardianSalutation, NomineeGuardianName, NomineeGender, NomineeDOB, NomineeAge, NomineeRelation, NomineeAnnualIncome, NomineeOccupation, NomineeMobileNo, NomineeMobileVerified, NomineeAadharNo, NomineeAadharVerified, NomineeAadharOTP, NomineeVoterIdNo, NomineeVoterIdVerified, NomineePANNo, NomineePANVerified, NomineeDLNo, NomineeDLVerified, MemberAadharNo, MemberAadharVerified, MemberAadharOTP, MemberPanNo, MemberPanVerified, MemberVoterIdNo, MemberVoterIdVerified, MemberDLNo, MemberDLVerified, RationCard, ElectricityBill, MemberProfileStatus, CibilStatus, CibilDate, MemberRemark, LocationType, AddressType, MemberAddress, DistrictName, StateName, PinCode, MemberLatitude, MemberLongitude, EntryUser, EntryTime, EditUser, EditTime, MemberPOIType, MemberPOINo, MemberPOAType, MemberPOANo, MemberAadharPhoto, MemberPhoto, MemberSignature, MemberPOIFront, MemberPOIBack, MemberPOAFront, MemberPOABack, MemberBankPassBook, NomineePOIType, NomineePOINo, NomineePOAType, NomineePOANo, NomineeAadharPhoto, NomineePhoto, NomineeSignature, NomineePOIFront, NomineePOIBack, NomineePOAFront, NomineePOABack, MemberNomineeJointPhoto, KYCStatus, KYCRemark, KYCTime, KYCUser, DropOutDate, DropOutRemark, DropOutUser, DropOutTime, UpdateRemark, UpdateUser, UpdateTime ) SELECT MemberNo, BranchId, BranchName, GroupOfficerId, GroupOfficerName, CenterId, CenterName, GroupName, MemberFormNo, OtherMemberId, IdType, MemberId, MemberJoinDate, MemberSalutation, MemberName, GuardianSalutation, MemberGuardianName, MemberGender, MemberDOB, MemberAge, MemberMobileNo, MemberMobileVerified, MemberOccupation, MemberNatureOccupation, MemberAnnualIncome, FamilyAnnualExpence, NomineeSalutation, NomineeName, NomineeGuardianSalutation, NomineeGuardianName, NomineeGender, NomineeDOB, NomineeAge, NomineeRelation, NomineeAnnualIncome, NomineeOccupation, NomineeMobileNo, NomineeMobileVerified, NomineeAadharNo, NomineeAadharVerified, NomineeAadharOTP, NomineeVoterIdNo, NomineeVoterIdVerified, NomineePANNo, NomineePANVerified, NomineeDLNo, NomineeDLVerified, MemberAadharNo, MemberAadharVerified, MemberAadharOTP, MemberPanNo, MemberPanVerified, MemberVoterIdNo, MemberVoterIdVerified, MemberDLNo, MemberDLVerified, RationCard, ElectricityBill, MemberProfileStatus, CibilStatus, CibilDate, MemberRemark, LocationType, AddressType, MemberAddress, DistrictName, StateName, PinCode, MemberLatitude, MemberLongitude, EntryUser, EntryTime, EditUser, EditTime, MemberPOIType, MemberPOINo, MemberPOAType, MemberPOANo, MemberAadharPhoto, MemberPhoto, MemberSignature, MemberPOIFront, MemberPOIBack, MemberPOAFront, MemberPOABack, MemberBankPassBook, NomineePOIType, NomineePOINo, NomineePOAType, NomineePOANo, NomineeAadharPhoto, NomineePhoto, NomineeSignature, NomineePOIFront, NomineePOIBack, NomineePOAFront, NomineePOABack, MemberNomineeJointPhoto, KYCStatus, KYCRemark, KYCTime, KYCUser, DropOutDate, DropOutRemark, DropOutUser, DropOutTime, 'MemberVerified' AS UpdateRemark, 'superadmin' AS UpdateUser, GETDATE() AS UpdateTime FROM GroupLoanMemberDetail WHERE MemberId='M000200009' ; INSERT INTO GroupLoanMemberNomineeHistory ( NomineeNo, MemberId, MemberName, MemberLoanStatus, MemberLoginStatus, MemberWebLogin, MemberAppLogin, MemberPassword, LoanPurpose, LoanAmount, MemberDOM, SpouseName, MemberEducation, MemberReligion, MemberCategory, MemberMaritalStatus, NomineeIsMinor, NomineeEducation, NomineeMinorGuardian, NomineeAddress, NomineeDistrictName, NomineeStateName, NomineePinCode, NomineeSalutation1, NomineeName1, NomineeGuardianSalutation1, NomineeGuardianName1, NomineeDOB1, NomineeAge1, NomineeRelation1, NomineeGender1, NomineeAnnualIncome1, NomineeOccupation1, NomineeAddress1, NomineeAadharNo1, NomineePanNo1, NomineeMobileNo1, MaikaPersonName, MaikaPersonRelation, MaikaPersonContact, MaikaAddress, BankAccountType, MemberBankId, MemberBankName, BankAccountNo, BankIFSCCode, BankBranchName, BankBranchAddress, PostalAddress, PostalHouseNo, PostalVillageName, PostalPostOffice, PostalAreaName, PostalLandMark, PostalCityName, PostalDistrictName, PostalStateName, PostalPinCode, PermanentSameAsPostal, PermanentAddress, PermanentHouseNo, PermanentVillageName, PermanentPostOffice, PermanentAreaName, PermanentLandMark, PermanentCityName, PermanentDistrictName, PermanentStateName, PermanentPinCode, GroupJoinDate, GroupUser, GroupTime, GroupStatus, CGTOfficerId, CGTOfficerName, CGTDate, CGTDate2, CGTDate3, CGTDateDocument1, CGTDateDocument2, CGTDate2Document1, CGTDate2Document2, CGTDate3Document1, CGTDate3Document2, CGTUser, CGTTime, GRTOfficerId, GRTOfficerName, GRTDate, GRTUser, GRTTime, EntryUser, EntryTime, UpdateRemark, UpdateUser, UpdateTime ) SELECT NomineeNo, MemberId, MemberName, MemberLoanStatus, MemberLoginStatus, MemberWebLogin, MemberAppLogin, MemberPassword, LoanPurpose, LoanAmount, MemberDOM, SpouseName, MemberEducation, MemberReligion, MemberCategory, MemberMaritalStatus, NomineeIsMinor, NomineeEducation, NomineeMinorGuardian, NomineeAddress, NomineeDistrictName, NomineeStateName, NomineePinCode, NomineeSalutation1, NomineeName1, NomineeGuardianSalutation1, NomineeGuardianName1, NomineeDOB1, NomineeAge1, NomineeRelation1, NomineeGender1, NomineeAnnualIncome1, NomineeOccupation1, NomineeAddress1, NomineeAadharNo1, NomineePanNo1, NomineeMobileNo1, MaikaPersonName, MaikaPersonRelation, MaikaPersonContact, MaikaAddress, BankAccountType, MemberBankId, MemberBankName, BankAccountNo, BankIFSCCode, BankBranchName, BankBranchAddress, PostalAddress, PostalHouseNo, PostalVillageName, PostalPostOffice, PostalAreaName, PostalLandMark, PostalCityName, PostalDistrictName, PostalStateName, PostalPinCode, PermanentSameAsPostal, PermanentAddress, PermanentHouseNo, PermanentVillageName, PermanentPostOffice, PermanentAreaName, PermanentLandMark, PermanentCityName, PermanentDistrictName, PermanentStateName, PermanentPinCode, GroupJoinDate, GroupUser, GroupTime, GroupStatus, CGTOfficerId, CGTOfficerName, CGTDate, CGTDate2, CGTDate3, CGTDateDocument1, CGTDateDocument2, CGTDate2Document1, CGTDate2Document2, CGTDate3Document1, CGTDate3Document2, CGTUser, CGTTime, GRTOfficerId, GRTOfficerName, GRTDate, GRTUser, GRTTime, EntryUser, EntryTime, 'MemberVerified' AS UpdateRemark, 'superadmin' AS UpdateUser, GETDATE() AS UpdateTime FROM GroupLoanMemberNominee WHERE MemberId='M000200009' ; UPDATE GroupLoanMemberDetail SET MemberAadharNo='860659967087', MemberAadharVerified='', MemberVoterIdNo='', MemberVoterIdVerified='', MemberPANNo='AMHPY9345B', MemberPanVerified='', MemberMobileNo='7080532396', MemberMobileVerified='', MemberSalutation='', MemberName='Mr Amar Bahadur Yadav', MemberGender='Male', MemberDOB='4/2/1983 12:00:00 AM', MemberAge='42', GuardianSalutation='S/O', MemberGuardianName='PANNALAL YADAV', NomineeAadharNo='558116261338', NomineeAadharVerified='Verification Error ??????????', NomineeVoterIdNo='AGS0155341', NomineeVoterIdVerified='', NomineePANNo='', NomineePANVerified='', NomineeMobileNo='8081427663', NomineeMobileVerified='', NomineeSalutation='Mrs.', NomineeName='SEETA DEVI', NomineeGender='Female', NomineeDOB='1/1/1988 12:00:00 AM', NomineeAge='37', NomineeGuardianSalutation='W/O', NomineeGuardianName='Amar Bahadur Yadav', NomineeRelation='Wife', AddressType='Permanent', LocationType='SemiUrban', MemberAddress='UMARPUR HARBANDHARPUR MURADGANJ', StateName='Uttar Pradesh', DistrictName='Jaunpur', PinCode='222001', MemberLatitude='', MemberLongitude='' WHERE MemberId='M000200009' ; UPDATE GroupLoanMemberNominee SET PermanentAddress='UMARPUR HARBANDHARPUR MURADGANJ', PermanentDistrictName='Jaunpur', PermanentStateName='Uttar Pradesh', PermanentPinCode='222001', NomineeAddress ='UMARPUR HARBANDHARPUR MURADGANJ', NomineeDistrictName='Jaunpur', NomineeStateName='Uttar Pradesh', NomineePinCode='222001', BankAccountType = 'Saving', BankAccountNo = '39620100008636', BankIFSCCode = 'BARB0NAIGAN', MemberBankId = 'BARB', MemberBankName = 'Bank Of Baroda' WHERE MemberId ='M000200009' ; Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: String or binary data would be truncated. The statement has been terminated. Source: .Net SqlClient Data Provider StackTrace: 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 ClassMaster.VoidInsUpDelTransaction(String sql, SqlTransaction trans) at IndividualLoan_IndvMemberUpdateVerification.btnUpdate_Click(Object sender, EventArgs e) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 13/12/2025 04:11:42 PM PageName: IndividualLoan_IndvLoanArrearOrODReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanArrearOrODReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 13/12/2025 04:11:42 PM PageName: IndividualLoan_IndvLoanArrearOrODReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_rl4oi5un StackTrace: at IndividualLoan_IndvLoanArrearOrODReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanArrearOrODReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 15/12/2025 05:26:55 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 15/12/2025 09:14:57 PM PageName: IndividualLoan_IndvLoanApplicationCorrection String str: SELECT a.BranchId, a.BranchName, a.GroupOfficerId, a.GroupOfficerName, (SELECT MeetingType FROM GroupCenterMaster WHERE CenterId=a.CenterId)AS MeetingType, a.GroupName, a.MemberId, a.MemberName, a.MemberGuardianName, a.MemberMobileNo, a.NomineeMobileNo, a.MemberAddress, Convert(char, a.MemberJoinDate, 103)AS MemberJoinDate, convert(char,a.MemberDOB,103)AS MemberDOB, a.MemberAge, CASE WHEN isnull(a.DropOutDate, '01/01/1900')= '01/01/1900' THEN 'Active' ELSE 'DropOut' END AS MemberLoanStatus, a.MemberProfileStatus, a.MemberRemark, (SELECT GroupStatus FROM GroupLoanMemberNominee WHERE MemberId=a.MemberId)AS GroupStatus, b.BankAccountType, b.MemberBankId, b.MemberBankName, b.BankAccountNo, b.BankIFSCCode, b.BankBranchName, b.LoanPurpose, b.LoanAmount AS RequestAmount, a.NomineeName, Convert(char, a.NomineeDOB, 103)AS NomineeDOB, a.NomineeAge, a.NomineeRelation, c.ApplicationId, c.GLoanTypeNo, c.GLoanTypeName, rtrim(convert(CHAR,c.LoanTerm))+'-'+c.LoanTermMode AS LoanTerm, c.LoanPurpose, c.ApplicationAmount, convert(CHAR,c.ApplicationDate,103)AS ApplicationDate FROM GroupLoanMemberDetail a WITH(nolock) LEFT JOIN GroupLoanMemberNominee b WITH(nolock) ON a.MemberId = b.MemberId LEFT JOIN GroupLoanAccount c WITH(nolock) ON a.MemberId=c.MemberId WHERE a.GroupName='Individual' AND a.MemberId='M000200009' AND c.ApplicationId='GA10201087' ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Column 'CenterId' does not belong to table . Source: System.Data StackTrace: at System.Data.DataRow.GetDataColumn(String columnName) at System.Data.DataRow.get_Item(String columnName) at IndividualLoan_IndvLoanApplicationCorrection.lbtnSelect_Click(Object sender, EventArgs e) TargetSite: System.Data.DataColumn GetDataColumn(System.String) Time: 15/12/2025 09:42:14 PM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 15/12/2025 09:42:14 PM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_44hxre3w StackTrace: at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanDisbursementReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 20/12/2025 04:59:53 PM PageName: LoanOfficerMobileLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at LoanOfficerMobileLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 22/12/2025 11:45:24 AM PageName: IndividualLoan_IndvLoanEMIPaidReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanEMIPaidReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 22/12/2025 11:45:24 AM PageName: IndividualLoan_IndvLoanEMIPaidReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_n0cs2zfm StackTrace: at IndividualLoan_IndvLoanEMIPaidReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanEMIPaidReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 22/12/2025 11:46:02 AM PageName: IndividualLoan_IndvLoanEMIPaidReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanEMIPaidReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 22/12/2025 11:46:02 AM PageName: IndividualLoan_IndvLoanEMIPaidReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_n0cs2zfm StackTrace: at IndividualLoan_IndvLoanEMIPaidReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanEMIPaidReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 22/12/2025 05:42:02 PM PageName: DataTableResult String str: SELECT a.MemberNo AS SrNo, a.BranchName+' ('+a.BranchId+')' AS BranchName, a.GroupOfficerId, a.GroupOfficerName, Convert(CHAR,a.MemberJoinDate,106)AS MemberJoinDate, a.MemberId, a.MemberName, a.MemberGender, Convert(CHAR,a.MemberDOB,106)AS MemberDOB, a.MemberAge, a.MemberGuardianName, a.MemberMobileNo, a.MemberAadharNo, a.MemberProfileStatus FROM GroupLoanMemberDetail a WITH(nolock) WHERE a.GroupName='Individual' AND 1=1 AND a.MemberJoinDate>='12/22/0202 12:00:00 AM' AND a.MemberJoinDate<'12/23/2025 12:00:00 AM' AND a.BranchId='102' AND a.MobileNo='9838611954' ORDER BY a.BranchName, a.GroupOfficerName, a.MemberName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'MobileNo'. Source: .Net SqlClient Data Provider StackTrace: 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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/12/2025 05:42:02 PM PageName: IndividualLoan_IndvMemberDetailUpadation String str: SELECT a.MemberNo AS SrNo, a.BranchName+' ('+a.BranchId+')' AS BranchName, a.GroupOfficerId, a.GroupOfficerName, Convert(CHAR,a.MemberJoinDate,106)AS MemberJoinDate, a.MemberId, a.MemberName, a.MemberGender, Convert(CHAR,a.MemberDOB,106)AS MemberDOB, a.MemberAge, a.MemberGuardianName, a.MemberMobileNo, a.MemberAadharNo, a.MemberProfileStatus FROM GroupLoanMemberDetail a WITH(nolock) WHERE a.GroupName='Individual' AND 1=1 AND a.MemberJoinDate>='12/22/0202 12:00:00 AM' AND a.MemberJoinDate<'12/23/2025 12:00:00 AM' AND a.BranchId='102' AND a.MobileNo='9838611954' ORDER BY a.BranchName, a.GroupOfficerName, a.MemberName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_p0wzqjjj StackTrace: at IndividualLoan_IndvMemberDetailUpadation.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 22/12/2025 05:42:07 PM PageName: DataTableResult String str: SELECT a.MemberNo AS SrNo, a.BranchName+' ('+a.BranchId+')' AS BranchName, a.GroupOfficerId, a.GroupOfficerName, Convert(CHAR,a.MemberJoinDate,106)AS MemberJoinDate, a.MemberId, a.MemberName, a.MemberGender, Convert(CHAR,a.MemberDOB,106)AS MemberDOB, a.MemberAge, a.MemberGuardianName, a.MemberMobileNo, a.MemberAadharNo, a.MemberProfileStatus FROM GroupLoanMemberDetail a WITH(nolock) WHERE a.GroupName='Individual' AND 1=1 AND a.MemberJoinDate>='12/22/0202 12:00:00 AM' AND a.MemberJoinDate<'12/23/2025 12:00:00 AM' AND a.BranchId='101' AND a.MobileNo='9838611954' ORDER BY a.BranchName, a.GroupOfficerName, a.MemberName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'MobileNo'. Source: .Net SqlClient Data Provider StackTrace: 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.SqlDataReader.TryConsumeMetaData() at System.Data.SqlClient.SqlDataReader.get_MetaData() at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted) at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry) at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method) at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method) at System.Data.SqlClient.SqlCommand.ExecuteDbDataReader(CommandBehavior behavior) at System.Data.Common.DbCommand.System.Data.IDbCommand.ExecuteReader(CommandBehavior behavior) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 22/12/2025 05:42:07 PM PageName: IndividualLoan_IndvMemberDetailUpadation String str: SELECT a.MemberNo AS SrNo, a.BranchName+' ('+a.BranchId+')' AS BranchName, a.GroupOfficerId, a.GroupOfficerName, Convert(CHAR,a.MemberJoinDate,106)AS MemberJoinDate, a.MemberId, a.MemberName, a.MemberGender, Convert(CHAR,a.MemberDOB,106)AS MemberDOB, a.MemberAge, a.MemberGuardianName, a.MemberMobileNo, a.MemberAadharNo, a.MemberProfileStatus FROM GroupLoanMemberDetail a WITH(nolock) WHERE a.GroupName='Individual' AND 1=1 AND a.MemberJoinDate>='12/22/0202 12:00:00 AM' AND a.MemberJoinDate<'12/23/2025 12:00:00 AM' AND a.BranchId='101' AND a.MobileNo='9838611954' ORDER BY a.BranchName, a.GroupOfficerName, a.MemberName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_p0wzqjjj StackTrace: at IndividualLoan_IndvMemberDetailUpadation.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 23/12/2025 10:59:06 AM PageName: IndividualLoan_IndvLoanOutstandingReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanOutstandingReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 23/12/2025 10:59:06 AM PageName: IndividualLoan_IndvLoanOutstandingReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_1skyodly StackTrace: at IndividualLoan_IndvLoanOutstandingReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanOutstandingReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 24/12/2025 07:35:21 PM PageName: IndividualLoan_IndvMemberRegistrationList String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvMemberRegistrationList.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 24/12/2025 07:35:21 PM PageName: IndividualLoan_IndvMemberRegistrationList String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_c5pwm3gq StackTrace: at IndividualLoan_IndvMemberRegistrationList.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvMemberRegistrationList.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 24/12/2025 07:38:52 PM PageName: IndividualLoan_IndvMemberRegistrationList String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvMemberRegistrationList.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 24/12/2025 07:38:52 PM PageName: IndividualLoan_IndvMemberRegistrationList String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_c5pwm3gq StackTrace: at IndividualLoan_IndvMemberRegistrationList.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvMemberRegistrationList.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 26/12/2025 09:42:32 PM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 26/12/2025 09:42:32 PM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_44hxre3w StackTrace: at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanDisbursementReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 26/12/2025 09:45:49 PM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 26/12/2025 09:45:49 PM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_44hxre3w StackTrace: at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanDisbursementReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 04/01/2026 07:33:53 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 04/01/2026 07:37:16 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 04/01/2026 07:44:53 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 04/01/2026 07:49:40 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 04/01/2026 07:54:40 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 05/01/2026 06:36:24 PM PageName: IndividualLoan_IndvLoanWrittenOff String str: DECLARE @ODate DATE, @LoanId VARCHAR(50); SET @ODate='1/3/2026 12:00:00 AM'; SET @LoanId='Loan00100000055' ; SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, ld.MemberId, md.MemberMobileNo, ld.MemberName, md.GuardianSalutation, md.MemberGuardianName, ld.ApplicationId, ld.SanctionId, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, ld.LoanPurpose, ld.LoanFunder, lm.GroupLoanType AS LoanTypeGroup, ld.GLoanTypeNo AS LoanTypeNo, ld.GLoanTypeName AS LoanTypeName, lm.AccountHeadLoanId AS LoanHeadNameId, lm.AccountHeadLoanName AS LoanHeadNameName, lm.AccountHeadInterestId AS InterestHeadNameId, lm.AccountHeadInterestName AS InterestHeadNameName, lm.AccountHeadPenaltyId AS PenaltyHeadNameId, lm.AccountHeadPenaltyName AS PenaltyHeadNameName, ld.InterestMethod, ld.LoanTerm, ld.LoanTermMode, ld.LoanAmount AS LoanPrincipal, ld.TotalInterest AS LoanInterest, Convert(CHAR,gl.LastPaidDate,103)AS LastPaidDate, gl.PaidPrincipal, gl.PaidInterest, isnull(ld.LoanAmount,0)-isnull(gl.PaidPrincipal,0)AS BalancePrincipal, isnull(ld.TotalInterest,0)-isnull(gl.PaidInterest,0)AS BalanceInterest, ol.OverduePrincipal, ol.OverdueInterest, gl.PenaltyPrevious, convert(DECIMAL(10,0),(ol.PenaltyCurrentBase*lm.PenaltyRateAnnual/36500.00)) AS PenaltyCurrent FROM GroupLoanMemberDetail md WITH(nolock) INNER JOIN GroupLoanAccount ld WITH(nolock) ON md.MemberId=ld.MemberId LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo LEFT JOIN ( SELECT LoanId, MAX(PDate)AS LastPaidDate, sum(Prin)AS PaidPrincipal, sum(Intt)AS PaidInterest, SUM(isnull(PDue,0)-isnull(PPaid,0))AS PenaltyPrevious FROM GroupLoanLedger WITH(nolock) WHERE LoanId=@LoanId AND PStatus='Paid' GROUP BY LoanId )gl ON ld.LoanId=gl.LoanId LEFT JOIN ( SELECT LoanId, sum(Prin)AS OverduePrincipal, sum(Intt)AS OverdueInterest, SUM(datediff(day,DDate,@ODate)*Total)AS PenaltyCurrentBase FROM GroupLoanLedger WITH(nolock) WHERE LoanId=@LoanId AND DDate<@ODate AND PStatus='Due' GROUP BY LoanId )ol ON ld.LoanId=ol.LoanId WHERE ld.LoanId=@LoanId ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Column 'CenterId' does not belong to table . Source: System.Data StackTrace: at System.Data.DataRow.GetDataColumn(String columnName) at System.Data.DataRow.get_Item(String columnName) at IndividualLoan_IndvLoanWrittenOff.lbtnSelect_Click(Object sender, EventArgs e) TargetSite: System.Data.DataColumn GetDataColumn(System.String) Time: 05/01/2026 06:36:31 PM PageName: IndividualLoan_IndvLoanWrittenOff String str: DECLARE @ODate DATE, @LoanId VARCHAR(50); SET @ODate='1/3/2026 12:00:00 AM'; SET @LoanId='Loan00100000055' ; SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, ld.MemberId, md.MemberMobileNo, ld.MemberName, md.GuardianSalutation, md.MemberGuardianName, ld.ApplicationId, ld.SanctionId, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, ld.LoanPurpose, ld.LoanFunder, lm.GroupLoanType AS LoanTypeGroup, ld.GLoanTypeNo AS LoanTypeNo, ld.GLoanTypeName AS LoanTypeName, lm.AccountHeadLoanId AS LoanHeadNameId, lm.AccountHeadLoanName AS LoanHeadNameName, lm.AccountHeadInterestId AS InterestHeadNameId, lm.AccountHeadInterestName AS InterestHeadNameName, lm.AccountHeadPenaltyId AS PenaltyHeadNameId, lm.AccountHeadPenaltyName AS PenaltyHeadNameName, ld.InterestMethod, ld.LoanTerm, ld.LoanTermMode, ld.LoanAmount AS LoanPrincipal, ld.TotalInterest AS LoanInterest, Convert(CHAR,gl.LastPaidDate,103)AS LastPaidDate, gl.PaidPrincipal, gl.PaidInterest, isnull(ld.LoanAmount,0)-isnull(gl.PaidPrincipal,0)AS BalancePrincipal, isnull(ld.TotalInterest,0)-isnull(gl.PaidInterest,0)AS BalanceInterest, ol.OverduePrincipal, ol.OverdueInterest, gl.PenaltyPrevious, convert(DECIMAL(10,0),(ol.PenaltyCurrentBase*lm.PenaltyRateAnnual/36500.00)) AS PenaltyCurrent FROM GroupLoanMemberDetail md WITH(nolock) INNER JOIN GroupLoanAccount ld WITH(nolock) ON md.MemberId=ld.MemberId LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo LEFT JOIN ( SELECT LoanId, MAX(PDate)AS LastPaidDate, sum(Prin)AS PaidPrincipal, sum(Intt)AS PaidInterest, SUM(isnull(PDue,0)-isnull(PPaid,0))AS PenaltyPrevious FROM GroupLoanLedger WITH(nolock) WHERE LoanId=@LoanId AND PStatus='Paid' GROUP BY LoanId )gl ON ld.LoanId=gl.LoanId LEFT JOIN ( SELECT LoanId, sum(Prin)AS OverduePrincipal, sum(Intt)AS OverdueInterest, SUM(datediff(day,DDate,@ODate)*Total)AS PenaltyCurrentBase FROM GroupLoanLedger WITH(nolock) WHERE LoanId=@LoanId AND DDate<@ODate AND PStatus='Due' GROUP BY LoanId )ol ON ld.LoanId=ol.LoanId WHERE ld.LoanId=@LoanId ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Column 'CenterId' does not belong to table . Source: System.Data StackTrace: at System.Data.DataRow.GetDataColumn(String columnName) at System.Data.DataRow.get_Item(String columnName) at IndividualLoan_IndvLoanWrittenOff.lbtnSelect_Click(Object sender, EventArgs e) TargetSite: System.Data.DataColumn GetDataColumn(System.String) Time: 05/01/2026 06:38:33 PM PageName: IndividualLoan_IndvLoanWrittenOff String str: DECLARE @ODate DATE, @LoanId VARCHAR(50); SET @ODate='1/5/2026 12:00:00 AM'; SET @LoanId='Loan00100000055' ; SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, ld.MemberId, md.MemberMobileNo, ld.MemberName, md.GuardianSalutation, md.MemberGuardianName, ld.ApplicationId, ld.SanctionId, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, ld.LoanPurpose, ld.LoanFunder, lm.GroupLoanType AS LoanTypeGroup, ld.GLoanTypeNo AS LoanTypeNo, ld.GLoanTypeName AS LoanTypeName, lm.AccountHeadLoanId AS LoanHeadNameId, lm.AccountHeadLoanName AS LoanHeadNameName, lm.AccountHeadInterestId AS InterestHeadNameId, lm.AccountHeadInterestName AS InterestHeadNameName, lm.AccountHeadPenaltyId AS PenaltyHeadNameId, lm.AccountHeadPenaltyName AS PenaltyHeadNameName, ld.InterestMethod, ld.LoanTerm, ld.LoanTermMode, ld.LoanAmount AS LoanPrincipal, ld.TotalInterest AS LoanInterest, Convert(CHAR,gl.LastPaidDate,103)AS LastPaidDate, gl.PaidPrincipal, gl.PaidInterest, isnull(ld.LoanAmount,0)-isnull(gl.PaidPrincipal,0)AS BalancePrincipal, isnull(ld.TotalInterest,0)-isnull(gl.PaidInterest,0)AS BalanceInterest, ol.OverduePrincipal, ol.OverdueInterest, gl.PenaltyPrevious, convert(DECIMAL(10,0),(ol.PenaltyCurrentBase*lm.PenaltyRateAnnual/36500.00)) AS PenaltyCurrent FROM GroupLoanMemberDetail md WITH(nolock) INNER JOIN GroupLoanAccount ld WITH(nolock) ON md.MemberId=ld.MemberId LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo LEFT JOIN ( SELECT LoanId, MAX(PDate)AS LastPaidDate, sum(Prin)AS PaidPrincipal, sum(Intt)AS PaidInterest, SUM(isnull(PDue,0)-isnull(PPaid,0))AS PenaltyPrevious FROM GroupLoanLedger WITH(nolock) WHERE LoanId=@LoanId AND PStatus='Paid' GROUP BY LoanId )gl ON ld.LoanId=gl.LoanId LEFT JOIN ( SELECT LoanId, sum(Prin)AS OverduePrincipal, sum(Intt)AS OverdueInterest, SUM(datediff(day,DDate,@ODate)*Total)AS PenaltyCurrentBase FROM GroupLoanLedger WITH(nolock) WHERE LoanId=@LoanId AND DDate<@ODate AND PStatus='Due' GROUP BY LoanId )ol ON ld.LoanId=ol.LoanId WHERE ld.LoanId=@LoanId ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Column 'CenterId' does not belong to table . Source: System.Data StackTrace: at System.Data.DataRow.GetDataColumn(String columnName) at System.Data.DataRow.get_Item(String columnName) at IndividualLoan_IndvLoanWrittenOff.lbtnSelect_Click(Object sender, EventArgs e) TargetSite: System.Data.DataColumn GetDataColumn(System.String) Time: 05/01/2026 06:41:32 PM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 05/01/2026 06:41:32 PM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_44hxre3w StackTrace: at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanDisbursementReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 05/01/2026 06:52:57 PM PageName: IndividualLoan_IndvLoanWrittenOff String str: DECLARE @ODate DATE, @LoanId VARCHAR(50); SET @ODate='1/5/2026 12:00:00 AM'; SET @LoanId='Loan00100000055' ; SELECT ld.BranchId, ld.BranchName, ld.LoanOfficerId, ld.LoanOfficerName, ld.MemberId, md.MemberMobileNo, ld.MemberName, md.GuardianSalutation, md.MemberGuardianName, ld.ApplicationId, ld.SanctionId, rtrim(convert(CHAR,ld.DisburseDate,106))AS DisburseDate, ld.LoanPurpose, ld.LoanFunder, lm.GroupLoanType AS LoanTypeGroup, ld.GLoanTypeNo AS LoanTypeNo, ld.GLoanTypeName AS LoanTypeName, lm.AccountHeadLoanId AS LoanHeadNameId, lm.AccountHeadLoanName AS LoanHeadNameName, lm.AccountHeadInterestId AS InterestHeadNameId, lm.AccountHeadInterestName AS InterestHeadNameName, lm.AccountHeadPenaltyId AS PenaltyHeadNameId, lm.AccountHeadPenaltyName AS PenaltyHeadNameName, ld.InterestMethod, ld.LoanTerm, ld.LoanTermMode, ld.LoanAmount AS LoanPrincipal, ld.TotalInterest AS LoanInterest, Convert(CHAR,gl.LastPaidDate,103)AS LastPaidDate, gl.PaidPrincipal, gl.PaidInterest, isnull(ld.LoanAmount,0)-isnull(gl.PaidPrincipal,0)AS BalancePrincipal, isnull(ld.TotalInterest,0)-isnull(gl.PaidInterest,0)AS BalanceInterest, ol.OverduePrincipal, ol.OverdueInterest, gl.PenaltyPrevious, convert(DECIMAL(10,0),(ol.PenaltyCurrentBase*lm.PenaltyRateAnnual/36500.00)) AS PenaltyCurrent FROM GroupLoanMemberDetail md WITH(nolock) INNER JOIN GroupLoanAccount ld WITH(nolock) ON md.MemberId=ld.MemberId LEFT JOIN GroupLoanNoMaster lm WITH(nolock) ON ld.GLoanTypeNo=lm.GLoanTypeNo LEFT JOIN ( SELECT LoanId, MAX(PDate)AS LastPaidDate, sum(Prin)AS PaidPrincipal, sum(Intt)AS PaidInterest, SUM(isnull(PDue,0)-isnull(PPaid,0))AS PenaltyPrevious FROM GroupLoanLedger WITH(nolock) WHERE LoanId=@LoanId AND PStatus='Paid' GROUP BY LoanId )gl ON ld.LoanId=gl.LoanId LEFT JOIN ( SELECT LoanId, sum(Prin)AS OverduePrincipal, sum(Intt)AS OverdueInterest, SUM(datediff(day,DDate,@ODate)*Total)AS PenaltyCurrentBase FROM GroupLoanLedger WITH(nolock) WHERE LoanId=@LoanId AND DDate<@ODate AND PStatus='Due' GROUP BY LoanId )ol ON ld.LoanId=ol.LoanId WHERE ld.LoanId=@LoanId ; String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Column 'CenterId' does not belong to table . Source: System.Data StackTrace: at System.Data.DataRow.GetDataColumn(String columnName) at System.Data.DataRow.get_Item(String columnName) at IndividualLoan_IndvLoanWrittenOff.lbtnSelect_Click(Object sender, EventArgs e) TargetSite: System.Data.DataColumn GetDataColumn(System.String) Time: 06/01/2026 09:03:21 AM PageName: IndividualLoan_IndvLoanOutstandingReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanOutstandingReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 06/01/2026 09:03:21 AM PageName: IndividualLoan_IndvLoanOutstandingReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_1skyodly StackTrace: at IndividualLoan_IndvLoanOutstandingReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanOutstandingReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 06/01/2026 09:22:15 PM PageName: Employee_EmployeePromotionLetter String str: String sql: INSERT INTO EmployeePromotionLetterDetail (BranchId, BranchName, DepartmentId, DepartmentName, DesignationId, DesignationName, OldDesignationName, EmployeeId, EmployeeName, EmployeeSalutation, GuardianName, GuardianSalutation, ReportingOfficerId, ReportingOfficerName, PermotionDate, PermotionRemark, EntryUser, EntryTime)VALUES('102', 'Jaunpur','13','Operation','16','Branch Manager','Officer', 'E0001002', 'Pradeep Kumar Yadav', 'Mr.', 'Kalpnath Yadav', 'S/O', '', '', '1/6/2026 12:00:00 AM', 'Promotion as per his performance','superadmin', GETDATE()) Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'DepartmentId'. Invalid column name 'DesignationId'. Invalid column name 'OldDesignationName'. Invalid column name 'EmployeeSalutation'. Invalid column name 'GuardianName'. Invalid column name 'GuardianSalutation'. Invalid column name 'ReportingOfficerId'. Invalid column name 'ReportingOfficerName'. Invalid column name 'PermotionRemark'. Source: .Net SqlClient Data Provider StackTrace: 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 ClassMaster.VoidInsUpDelTransaction(String sql, SqlTransaction trans) at Employee_EmployeePromotionLetter.btnSubmit_Click(Object sender, EventArgs e) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 06/01/2026 09:22:28 PM PageName: Employee_EmployeePromotionLetter String str: String sql: INSERT INTO EmployeePromotionLetterDetail (BranchId, BranchName, DepartmentId, DepartmentName, DesignationId, DesignationName, OldDesignationName, EmployeeId, EmployeeName, EmployeeSalutation, GuardianName, GuardianSalutation, ReportingOfficerId, ReportingOfficerName, PermotionDate, PermotionRemark, EntryUser, EntryTime)VALUES('102', 'Jaunpur','13','Operation','16','Branch Manager','Officer', 'E0001002', 'Pradeep Kumar Yadav', 'Mr.', 'Kalpnath Yadav', 'S/O', '', '', '1/6/2026 12:00:00 AM', 'Promotion as per his performance','superadmin', GETDATE()) Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Invalid column name 'DepartmentId'. Invalid column name 'DesignationId'. Invalid column name 'OldDesignationName'. Invalid column name 'EmployeeSalutation'. Invalid column name 'GuardianName'. Invalid column name 'GuardianSalutation'. Invalid column name 'ReportingOfficerId'. Invalid column name 'ReportingOfficerName'. Invalid column name 'PermotionRemark'. Source: .Net SqlClient Data Provider StackTrace: 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 ClassMaster.VoidInsUpDelTransaction(String sql, SqlTransaction trans) at Employee_EmployeePromotionLetter.btnSubmit_Click(Object sender, EventArgs e) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 06/01/2026 10:05:42 PM PageName: DataTableResult String str: SELECT a.SrNo,a.BranchName+' ('+a.BranchId+')'AS BranchName, a.DepartmentName, a.DesignationName, a.EmployeeId, a.EmployeeName, Convert(CHAR,a.PermotionDate,106)AS PermotionDate, a.PermotionDetail, a.EntryUser,Convert(CHAR,a.EntryTime,106)AS EntryTime,(SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='EmployeePromotionLetterHTML')+'?EmployeeId='+a.EmployeeId AS EmployeePromotionLetterHTML FROM EmployeePromotionLetterDetail a WITH(nolock) WHERE 1=1 AND a.EntryTime>='1/6/0202 12:00:00 AM' AND a.EntryTime<'1/7/2026 12:00:00 AM' AND a.BranchId='102' ORDER BY a.BranchName, a.EmployeeName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: The conversion of a varchar data type to a smalldatetime data type resulted in an out-of-range value. Source: .Net SqlClient Data Provider StackTrace: 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.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.Read() at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 06/01/2026 10:05:42 PM PageName: Employee_EmployeePromotionLetterList String str: SELECT a.SrNo,a.BranchName+' ('+a.BranchId+')'AS BranchName, a.DepartmentName, a.DesignationName, a.EmployeeId, a.EmployeeName, Convert(CHAR,a.PermotionDate,106)AS PermotionDate, a.PermotionDetail, a.EntryUser,Convert(CHAR,a.EntryTime,106)AS EntryTime,(SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='EmployeePromotionLetterHTML')+'?EmployeeId='+a.EmployeeId AS EmployeePromotionLetterHTML FROM EmployeePromotionLetterDetail a WITH(nolock) WHERE 1=1 AND a.EntryTime>='1/6/0202 12:00:00 AM' AND a.EntryTime<'1/7/2026 12:00:00 AM' AND a.BranchId='102' ORDER BY a.BranchName, a.EmployeeName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_jeqjddbb StackTrace: at Employee_EmployeePromotionLetterList.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 07/01/2026 03:10:17 PM PageName: DataTableResult String str: SELECT a.SrNo,a.BranchName+' ('+a.BranchId+')'AS BranchName, a.DepartmentName, a.DesignationName, a.EmployeeId, a.EmployeeName, Convert(CHAR,a.PermotionDate,106)AS PermotionDate, a.PermotionDetail, a.EntryUser, Convert(CHAR,a.EntryTime,106)AS EntryTime, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='EmployeePromotionLetterHTML')+'?EmployeeId='+a.EmployeeId AS EmployeePromotionLetterHTML, 'Employee_PrintRDLCPage.aspx?Report=' + (SELECT ReportValue FROM ProjectReportSetting WITH(nolock)WHERE ReportName='EmployeePromotionLetter')+'&EmployeeId='+a.EmployeeId AS EmployeePromotionLetter FROM EmployeePromotionLetterDetail a WITH(nolock) WHERE 1=1 AND a.EntryTime>='1/7/0202 12:00:00 AM' AND a.EntryTime<'1/8/2026 12:00:00 AM' AND a.BranchId IN ('100','102','101') ORDER BY a.BranchName, a.EmployeeName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: The conversion of a varchar data type to a smalldatetime data type resulted in an out-of-range value. Source: .Net SqlClient Data Provider StackTrace: 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.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.Read() at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 07/01/2026 03:10:17 PM PageName: Employee_EmployeePromotionLetterList String str: SELECT a.SrNo,a.BranchName+' ('+a.BranchId+')'AS BranchName, a.DepartmentName, a.DesignationName, a.EmployeeId, a.EmployeeName, Convert(CHAR,a.PermotionDate,106)AS PermotionDate, a.PermotionDetail, a.EntryUser, Convert(CHAR,a.EntryTime,106)AS EntryTime, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='EmployeePromotionLetterHTML')+'?EmployeeId='+a.EmployeeId AS EmployeePromotionLetterHTML, 'Employee_PrintRDLCPage.aspx?Report=' + (SELECT ReportValue FROM ProjectReportSetting WITH(nolock)WHERE ReportName='EmployeePromotionLetter')+'&EmployeeId='+a.EmployeeId AS EmployeePromotionLetter FROM EmployeePromotionLetterDetail a WITH(nolock) WHERE 1=1 AND a.EntryTime>='1/7/0202 12:00:00 AM' AND a.EntryTime<'1/8/2026 12:00:00 AM' AND a.BranchId IN ('100','102','101') ORDER BY a.BranchName, a.EmployeeName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_csf5kthg StackTrace: at Employee_EmployeePromotionLetterList.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 07/01/2026 03:10:25 PM PageName: DataTableResult String str: SELECT a.SrNo,a.BranchName+' ('+a.BranchId+')'AS BranchName, a.DepartmentName, a.DesignationName, a.EmployeeId, a.EmployeeName, Convert(CHAR,a.PermotionDate,106)AS PermotionDate, a.PermotionDetail, a.EntryUser, Convert(CHAR,a.EntryTime,106)AS EntryTime, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='EmployeePromotionLetterHTML')+'?EmployeeId='+a.EmployeeId AS EmployeePromotionLetterHTML, 'Employee_PrintRDLCPage.aspx?Report=' + (SELECT ReportValue FROM ProjectReportSetting WITH(nolock)WHERE ReportName='EmployeePromotionLetter')+'&EmployeeId='+a.EmployeeId AS EmployeePromotionLetter FROM EmployeePromotionLetterDetail a WITH(nolock) WHERE 1=1 AND a.EntryTime>='1/7/0202 12:00:00 AM' AND a.EntryTime<'1/8/2026 12:00:00 AM' AND a.BranchId='102' ORDER BY a.BranchName, a.EmployeeName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: The conversion of a varchar data type to a smalldatetime data type resulted in an out-of-range value. Source: .Net SqlClient Data Provider StackTrace: 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.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.Read() at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 07/01/2026 03:10:25 PM PageName: Employee_EmployeePromotionLetterList String str: SELECT a.SrNo,a.BranchName+' ('+a.BranchId+')'AS BranchName, a.DepartmentName, a.DesignationName, a.EmployeeId, a.EmployeeName, Convert(CHAR,a.PermotionDate,106)AS PermotionDate, a.PermotionDetail, a.EntryUser, Convert(CHAR,a.EntryTime,106)AS EntryTime, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='EmployeePromotionLetterHTML')+'?EmployeeId='+a.EmployeeId AS EmployeePromotionLetterHTML, 'Employee_PrintRDLCPage.aspx?Report=' + (SELECT ReportValue FROM ProjectReportSetting WITH(nolock)WHERE ReportName='EmployeePromotionLetter')+'&EmployeeId='+a.EmployeeId AS EmployeePromotionLetter FROM EmployeePromotionLetterDetail a WITH(nolock) WHERE 1=1 AND a.EntryTime>='1/7/0202 12:00:00 AM' AND a.EntryTime<'1/8/2026 12:00:00 AM' AND a.BranchId='102' ORDER BY a.BranchName, a.EmployeeName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_csf5kthg StackTrace: at Employee_EmployeePromotionLetterList.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 07/01/2026 03:10:33 PM PageName: DataTableResult String str: SELECT a.SrNo,a.BranchName+' ('+a.BranchId+')'AS BranchName, a.DepartmentName, a.DesignationName, a.EmployeeId, a.EmployeeName, Convert(CHAR,a.PermotionDate,106)AS PermotionDate, a.PermotionDetail, a.EntryUser, Convert(CHAR,a.EntryTime,106)AS EntryTime, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='EmployeePromotionLetterHTML')+'?EmployeeId='+a.EmployeeId AS EmployeePromotionLetterHTML, 'Employee_PrintRDLCPage.aspx?Report=' + (SELECT ReportValue FROM ProjectReportSetting WITH(nolock)WHERE ReportName='EmployeePromotionLetter')+'&EmployeeId='+a.EmployeeId AS EmployeePromotionLetter FROM EmployeePromotionLetterDetail a WITH(nolock) WHERE 1=1 AND a.EntryTime>='1/7/0202 12:00:00 AM' AND a.EntryTime<'1/8/2026 12:00:00 AM' AND a.BranchId='102' ORDER BY a.BranchName, a.EmployeeName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: The conversion of a varchar data type to a smalldatetime data type resulted in an out-of-range value. Source: .Net SqlClient Data Provider StackTrace: 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.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.Read() at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 07/01/2026 03:10:33 PM PageName: Employee_EmployeePromotionLetterList String str: SELECT a.SrNo,a.BranchName+' ('+a.BranchId+')'AS BranchName, a.DepartmentName, a.DesignationName, a.EmployeeId, a.EmployeeName, Convert(CHAR,a.PermotionDate,106)AS PermotionDate, a.PermotionDetail, a.EntryUser, Convert(CHAR,a.EntryTime,106)AS EntryTime, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='EmployeePromotionLetterHTML')+'?EmployeeId='+a.EmployeeId AS EmployeePromotionLetterHTML, 'Employee_PrintRDLCPage.aspx?Report=' + (SELECT ReportValue FROM ProjectReportSetting WITH(nolock)WHERE ReportName='EmployeePromotionLetter')+'&EmployeeId='+a.EmployeeId AS EmployeePromotionLetter FROM EmployeePromotionLetterDetail a WITH(nolock) WHERE 1=1 AND a.EntryTime>='1/7/0202 12:00:00 AM' AND a.EntryTime<'1/8/2026 12:00:00 AM' AND a.BranchId='102' ORDER BY a.BranchName, a.EmployeeName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_csf5kthg StackTrace: at Employee_EmployeePromotionLetterList.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 07/01/2026 03:14:49 PM PageName: DataTableResult String str: SELECT a.SrNo,a.BranchName+' ('+a.BranchId+')'AS BranchName, a.DepartmentName, a.DesignationName, a.EmployeeId, a.EmployeeName, Convert(CHAR,a.PermotionDate,106)AS PermotionDate, a.PermotionDetail, a.EntryUser, Convert(CHAR,a.EntryTime,106)AS EntryTime, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='EmployeePromotionLetterHTML')+'?EmployeeId='+a.EmployeeId AS EmployeePromotionLetterHTML, 'Employee_PrintRDLCPage.aspx?Report=' + (SELECT ReportValue FROM ProjectReportSetting WITH(nolock)WHERE ReportName='EmployeePromotionLetter')+'&EmployeeId='+a.EmployeeId AS EmployeePromotionLetter FROM EmployeePromotionLetterDetail a WITH(nolock) WHERE 1=1 AND a.EntryTime>='1/7/0202 12:00:00 AM' AND a.EntryTime<'1/8/2026 12:00:00 AM' AND a.BranchId='102' ORDER BY a.BranchName, a.EmployeeName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: The conversion of a varchar data type to a smalldatetime data type resulted in an out-of-range value. Source: .Net SqlClient Data Provider StackTrace: 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.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.Read() at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 07/01/2026 03:14:49 PM PageName: Employee_EmployeePromotionLetterList String str: SELECT a.SrNo,a.BranchName+' ('+a.BranchId+')'AS BranchName, a.DepartmentName, a.DesignationName, a.EmployeeId, a.EmployeeName, Convert(CHAR,a.PermotionDate,106)AS PermotionDate, a.PermotionDetail, a.EntryUser, Convert(CHAR,a.EntryTime,106)AS EntryTime, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='EmployeePromotionLetterHTML')+'?EmployeeId='+a.EmployeeId AS EmployeePromotionLetterHTML, 'Employee_PrintRDLCPage.aspx?Report=' + (SELECT ReportValue FROM ProjectReportSetting WITH(nolock)WHERE ReportName='EmployeePromotionLetter')+'&EmployeeId='+a.EmployeeId AS EmployeePromotionLetter FROM EmployeePromotionLetterDetail a WITH(nolock) WHERE 1=1 AND a.EntryTime>='1/7/0202 12:00:00 AM' AND a.EntryTime<'1/8/2026 12:00:00 AM' AND a.BranchId='102' ORDER BY a.BranchName, a.EmployeeName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_csf5kthg StackTrace: at Employee_EmployeePromotionLetterList.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 07/01/2026 03:15:15 PM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 07/01/2026 03:16:21 PM PageName: DataTableResult String str: SELECT a.SrNo,a.BranchName+' ('+a.BranchId+')'AS BranchName, a.DepartmentName, a.DesignationName, a.EmployeeId, a.EmployeeName, Convert(CHAR,a.PermotionDate,106)AS PermotionDate, a.PermotionDetail, a.EntryUser, Convert(CHAR,a.EntryTime,106)AS EntryTime, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='EmployeePromotionLetterHTML')+'?EmployeeId='+a.EmployeeId AS EmployeePromotionLetterHTML, 'Employee_PrintRDLCPage.aspx?Report=' + (SELECT ReportValue FROM ProjectReportSetting WITH(nolock)WHERE ReportName='EmployeePromotionLetter')+'&EmployeeId='+a.EmployeeId AS EmployeePromotionLetter FROM EmployeePromotionLetterDetail a WITH(nolock) WHERE 1=1 AND a.EntryTime>='1/7/0202 12:00:00 AM' AND a.EntryTime<'1/8/2026 12:00:00 AM' AND a.BranchId IN ('100','102','101') ORDER BY a.BranchName, a.EmployeeName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: The conversion of a varchar data type to a smalldatetime data type resulted in an out-of-range value. Source: .Net SqlClient Data Provider StackTrace: 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.SqlDataReader.TryHasMoreRows(Boolean& moreRows) at System.Data.SqlClient.SqlDataReader.TryReadInternal(Boolean setTimeout, Boolean& more) at System.Data.SqlClient.SqlDataReader.Read() at System.Data.Common.DataAdapter.FillLoadDataRow(SchemaMapping mapping) at System.Data.Common.DataAdapter.FillFromReader(DataSet dataset, DataTable datatable, String srcTable, DataReaderContainer dataReader, Int32 startRecord, Int32 maxRecords, DataColumn parentChapterColumn, Object parentChapterValue) at System.Data.Common.DataAdapter.Fill(DataTable[] dataTables, IDataReader dataReader, Int32 startRecord, Int32 maxRecords) at System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32 startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior) at System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) at ClassMaster.DataTableResult(String query) TargetSite: Void OnError(System.Data.SqlClient.SqlException, Boolean, System.Action`1[System.Action]) Time: 07/01/2026 03:16:21 PM PageName: Employee_EmployeePromotionLetterList String str: SELECT a.SrNo,a.BranchName+' ('+a.BranchId+')'AS BranchName, a.DepartmentName, a.DesignationName, a.EmployeeId, a.EmployeeName, Convert(CHAR,a.PermotionDate,106)AS PermotionDate, a.PermotionDetail, a.EntryUser, Convert(CHAR,a.EntryTime,106)AS EntryTime, (SELECT ReportValue FROM ProjectReportSetting WITH(nolock) WHERE ReportName='EmployeePromotionLetterHTML')+'?EmployeeId='+a.EmployeeId AS EmployeePromotionLetterHTML, 'Employee_PrintRDLCPage.aspx?Report=' + (SELECT ReportValue FROM ProjectReportSetting WITH(nolock)WHERE ReportName='EmployeePromotionLetter')+'&EmployeeId='+a.EmployeeId AS EmployeePromotionLetter FROM EmployeePromotionLetterDetail a WITH(nolock) WHERE 1=1 AND a.EntryTime>='1/7/0202 12:00:00 AM' AND a.EntryTime<'1/8/2026 12:00:00 AM' AND a.BranchId IN ('100','102','101') ORDER BY a.BranchName, a.EmployeeName String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Object reference not set to an instance of an object. Source: App_Web_csf5kthg StackTrace: at Employee_EmployeePromotionLetterList.btnSearch_Click(Object sender, EventArgs e) TargetSite: Void btnSearch_Click(System.Object, System.EventArgs) Time: 10/01/2026 03:31:24 PM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 10/01/2026 03:31:24 PM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_44hxre3w StackTrace: at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanDisbursementReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 10/01/2026 06:51:05 PM PageName: IndividualLoan_IndvLoanEMIPaidReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanEMIPaidReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 10/01/2026 06:51:05 PM PageName: IndividualLoan_IndvLoanEMIPaidReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_n0cs2zfm StackTrace: at IndividualLoan_IndvLoanEMIPaidReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanEMIPaidReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 10/01/2026 06:56:06 PM PageName: IndividualLoan_IndvLoanArrearOrODReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanArrearOrODReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 10/01/2026 06:56:06 PM PageName: IndividualLoan_IndvLoanArrearOrODReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_rl4oi5un StackTrace: at IndividualLoan_IndvLoanArrearOrODReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanArrearOrODReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 10/01/2026 07:00:01 PM PageName: IndividualLoan_IndvLoanArrearOrODReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanArrearOrODReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 10/01/2026 07:00:01 PM PageName: IndividualLoan_IndvLoanArrearOrODReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_rl4oi5un StackTrace: at IndividualLoan_IndvLoanArrearOrODReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanArrearOrODReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 10/01/2026 07:20:24 PM PageName: IndividualLoan_IndvLoanEMIPaidReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanEMIPaidReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 10/01/2026 07:20:24 PM PageName: IndividualLoan_IndvLoanEMIPaidReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_n0cs2zfm StackTrace: at IndividualLoan_IndvLoanEMIPaidReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanEMIPaidReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 10/01/2026 07:25:59 PM PageName: IndividualLoan_IndvLoanEMIPaidReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanEMIPaidReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 10/01/2026 07:25:59 PM PageName: IndividualLoan_IndvLoanEMIPaidReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_n0cs2zfm StackTrace: at IndividualLoan_IndvLoanEMIPaidReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanEMIPaidReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 11/01/2026 11:48:53 AM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 13/01/2026 10:13:43 AM PageName: AdminLogOut String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at System.Web.HttpResponse.Redirect(String url, Boolean endResponse, Boolean permanent) at AdminLogOut.btnLogout_Click(Object sender, EventArgs e) TargetSite: Void AbortInternal() Time: 14/01/2026 05:33:29 PM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 14/01/2026 05:33:29 PM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_44hxre3w StackTrace: at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanDisbursementReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 17/01/2026 10:52:49 AM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 17/01/2026 10:52:49 AM PageName: IndividualLoan_IndvLoanDisbursementReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_44hxre3w StackTrace: at IndividualLoan_IndvLoanDisbursementReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanDisbursementReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 18/01/2026 03:58:05 PM PageName: IndividualLoan_IndvLoanEMIPaidReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanEMIPaidReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 18/01/2026 03:58:05 PM PageName: IndividualLoan_IndvLoanEMIPaidReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_n0cs2zfm StackTrace: at IndividualLoan_IndvLoanEMIPaidReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanEMIPaidReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String) Time: 20/01/2026 11:51:04 AM PageName: IndividualLoan_IndvLoanOutstandingReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: mscorlib StackTrace: at System.Threading.Thread.AbortInternal() at System.Threading.Thread.Abort(Object stateInfo) at System.Web.HttpResponse.AbortCurrentThread() at System.Web.HttpResponse.End() at IndividualLoan_IndvLoanOutstandingReport.ExportToExcel(DataTable DT, String fileName) TargetSite: Void AbortInternal() Time: 20/01/2026 11:51:04 AM PageName: IndividualLoan_IndvLoanOutstandingReport String str: String sql: Data: System.Collections.ListDictionaryInternal HelpLink: InnerException: Message: Thread was being aborted. Source: App_Web_1skyodly StackTrace: at IndividualLoan_IndvLoanOutstandingReport.ExportToExcel(DataTable DT, String fileName) at IndividualLoan_IndvLoanOutstandingReport.btnExcel_Click(Object sender, EventArgs e) TargetSite: Void ExportToExcel(System.Data.DataTable, System.String)