How to get the range as collection without header in Excel VBO?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-12-16 12:02 AM
Hi everyone,
I am facing the issue to get the range in excel without headers. My excel template has some headers with two rows that will show as XXX... in collection. I cannot get the value in those columns since I cannot type the correct field names. So I am thinking to enter the header manually and get the range with amount I needed into collection. But it seems Blue Prism will automatically set the first row as header and cannot directly import the value I need. Is there any way to work around this issue?
Thanks.
Leo
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-12-16 02:54 PM
Have you looked at all the Get Worksheet actions, I think one of them has an option to use header on not?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
28-12-16 07:47 PM
Thank you for your advice. However, my worksheet is too big to use get worksheet function. I cannot view it after I put it into collection. Blue Prism prompts a message to force closing it.
Is it possible that I can get the field name like this in excel:
XXXXX
YY
In collection it will only show XXXX...
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
29-12-16 03:12 PM
If your excel document is too large then I suggest you use the get workseet action that allows you to read smaller ranges.
Another option for you is to then use the utility collections object to get the field (header) names of your collection. You could then use the actions in that object to rename headers etc.
What you want to do is certainly possible - it just requires you to experiment with different Excel and Collection actions. If in doubt contact a more experienced lead developer or get your implementation lead to reach out to your Blue Prism DEM for advice.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
04-01-17 02:51 PM
Another option you might want to consider is using the OLEDB VBO. This allows you to get the data you need into collection, using a SQL Query.
