Hi Team,
I am try to import excel file using dialog box and in dialog box i have added pre validation button what this pre validation button is do if in excel file have any incorrect data like if column size is more then 10 then it will show the error.
for that i have use exception handling
try
{
ttsBegin;
// Add condition
ttsCommit;
}
Catch
{
catch (Exception::Error)
info("Data is not correct”);
}
So when i click on pre validation button first time no error is showing but when i click on second time error is coming. I have checked using debugger both time same value is taking.
Can you let me know why when i click on pre validation button first time no error is coming and when i click on second time at that time error is coming but i want to show the error when i click on pre validation button on first time.
Regards,
Rahul