Dear fellow users, I'm trying to send an error message to the user, but only my Data logs are not working, could you please help me out? Note, I put breakpoints to compile my
application, but it does not fall within the code referring to Data, it was to work : /
This is the part of the code that is not falling on the breakpoint and not displaying the logs for the user:
- private void setProcessInter (Process process, Interested party, DataRow line, int i)
- {
- i = 4;
- i ++;
- try
- {
- if (! line.ItemArray [17] .ToString ().) Equals (""))
- processInterested.CodeSep = decimal.Parse (line.ItemArray [17] .ToString ());
- else
- processInterested.CodeSep = null;
- try
- {
- DateTime DateSep = DateTime.Parse (line.ItemArray [18] .ToString ());
- processInterested.DateSep = DateSep;
- }
- catch
- {
- logErro.Append ("The cell S" + (line ["index"]) + "must be filled with a date.");
- fileInvalidated = true;
- }
- try
- {
- DateTime DataEntrySefaz = DateTime.Parse (line.ItemArray [19] .ToString ());
- processInterested.DateInputSelf = DateEntrySelf;
- }
- catch
- {
- logErro.Append ("The T cell" + (line ["index"]) + "must be filled with a date.");
- fileInvalidated = true;
- }
- try
- {
- DateTime DateRequestPgto = DateTime.Parse (line.ItemArray [0] .ToString ());
- processInterestedDate = DateRequisitionoPgto;
- }
- catch
- {
- logErro.Append ("cell A" + (row ["index"]) + "must be filled with a date.");
- fileInvalidated = true;
- }
- processInterested.Interested = interested;
- catch (Exception error)
- {
- fileInvalidated = true;
- logErro.Append (error.Message + "
"); - }
- }

Sankara Krishnan VenugopalRank #833 · 2.7K reputationPosted May 22, 2018, 12:38 AM EDT
");
Robson Amaral152 reputationPosted May 22, 2018, 4:04 AM EDT
Sankara Krishnan VenugopalRank #833 · 2.7K reputationPosted May 22, 2018, 4:36 AM EDT
Sanjit Kumar SinghRank #1,366 · 1.2K reputationPosted May 22, 2018, 6:05 AM EDT
Robson Amaral152 reputationPosted May 22, 2018, 7:37 AM EDT
Robson Amaral152 reputationPosted May 22, 2018, 7:42 AM EDT
Sankara Krishnan VenugopalRank #833 · 2.7K reputationPosted May 22, 2018, 9:41 PM EDT