hi all,
Please help me for below
if any column missing/ or data type wrong in excel sheet then that particular mail Auto send to that user
thanks in advance
Regards,
Ram Gurav
hi all,
Please help me for below
if any column missing/ or data type wrong in excel sheet then that particular mail Auto send to that user
thanks in advance
Regards,
Ram Gurav
@Ram_Gurav1 can you show me excel sheet
Hello @Ram_Gurav1
Try the following Steps
DT.Columns.Count=5
”, if 5 columns are present it will process the next step, Else you can send the mail to sender with specific messagesNot LookuValue=-1
, same an above flow for then and else.Hello @Ram_Gurav1 ,
In config file (under settings or assets) store required column names as
PreDefined_ColumnNames = A,B,C,D.
Use a Try-Catch block.
PreDefined_ColumnNames | data type = List Of String
Assign
PreDefined_ColumnNames = Config(“PreDefined_ColumnNames”).ToString.Split(","c).ToList()
Use a for loop to loop through the items of PreDefined_ColumnNames
BoolVal = DataTable.Columns.Cast(Of DataColumn).Select(Function(x) x.ColumnName).ToArray().Contains(item)
Where item is a predefined column name (used from for loop)
Create a variable UnMatched_ColumnNames | data type = String
Assign
UnMatched_ColumnNames = If(BoolVal,Nothing, UnMatched_ColumnNames+“,”+item )
Outside for loop
If(String.IsNullOrEmpty(UnMatched_ColumnNames))
Use send Mail message activity and send email for UnMatched Column Names
Regards,
Rohith