I wrote a little c# script that will read excel file (csv) and query (insert) each row to the SQL table.
When i run the script on the editor the script will run perfectly and i have verified that the SQL Table is updated.
However, when i run the workflow in designer, i receive a warning/error that breaks my script.
Message:
Microsoft Excel cannot access the file 'C:\****\*****\Desktop\****\LF STUFF\APexcel.xlsx'. There are several possible reasons:
• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as a currently open workbook.
My guess is that maybe the workflow designer has a user but is not an authenticated windows user so it does not have read/write to access such file.
if that's the case how do i go about creating access for my designer user or maybe my assembly issue? i am positive that my reference assembly is good because the GAC setting is Yes.
tldr: script runs on editor but not on designer :
if anyone wants to throw suggestions --- Let the comments flow