Excel Related Error

Shweta

Active Member
Hi,

Good Morning.

Can anyone please help with a small query described below:

I have an excel file at a below location, where date is dynamic, which will change the other day bot will run.

C:\Blueprism\ExcelOperations\abc_16-Nov-2018.xlsx

To open this file, I am storing the path in a data item and then passing it in input parameters of Open Workbook. But its throwing error that file does not exists or is not a file.
I tried below two options, but none of them seems to be working. Please help.

C:\Blueprism\ExcelOperations\abc_&[FormattedDate]&.xlsx
C:\Blueprism\ExcelOperations\abc_[FormattedDate].xlsx

where Formatted Date stores : 16-Nov-2018
 

Shweta

Active Member
One more query related to this:
Appreciate, if you can help in that as well.

I need to send the same file as an attachment too in email.. And attachments accepts collection type. So, how can i store its path in Collection?

In path field, its shows text type. and I am unable to pass the data item also.
 

Attachments

  • Collection properties.PNG
    4.7 KB · Views: 6

sivagelli

Well-Known Member
Define a collection with Field as Path.
Using Calc stage store the above path in to CollectionName.Path. Now you can use pass this in Send Message action.
 

Shweta

Active Member
Thanks Ramya.
But what, if we have date also appended in the text file name, which keeps on changing every other day.
 
Top