job called c# exe
the job failed but not in the logs
the answer - the bug was in the finally block - no error handling
job called c# exe
the job failed but not in the logs
the answer - the bug was in the finally block - no error handling
if your format is mm/dd/yyy system read range will read it correctly
if its dd-MMM-yyyy it will read an excel number
bad bug
will not read hidden columns
if you use excel scope activity, excel is supposed to close
after the scope is closed. It takes a while for excel to close. In windows 10
and 0365 it takes a very long time to close. When reopening excel, excel can
hang.
Before each scope make sure to kill excel processes
Issue – the kill doesn’t always work
Open excel scope only once and keep the session in a shared
variable throughout the bot

Instead of using scope use the following:

1)
If the spreadsheet contains email addresses you will get
invalid url issue – go into excel and remove the links
2)
If there are dates, this will pick up the excel numeric date
You need to convert back to date:
DateTime conv = DateTime.FromOADate(d);
There is no delete range
Use write cell (write a value of “”) instead
removes multiple spaces on between words
select
'data source=' + @@servername +
';initial catalog=' + db_name() +
case type_desc
when 'WINDOWS_LOGIN'
then ';trusted_connection=true'
else
';user id=' + suser_name()
end
from sys.server_principals
where name = suser_name()