<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: MS Excel VBO - Exception has been thrown by the target of an invocation in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123050#M53915</link>
    <description>&lt;P&gt;Hi Sayeed,&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are yes but the Excel is a template saved a .xltx so multiple users can open the Excel and save their own report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the process on 4 DW's 3 of 4 will be successful. The 3 DW's successfully generated their report and saved them to the file path.&lt;/P&gt;&lt;P&gt;The other DW gets the "invocation error".&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also ran this process using 1 DW to test and would get the same error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would it still be worth trying the Environment Lock?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Oct 2025 13:23:54 GMT</pubDate>
    <dc:creator>shenryifds</dc:creator>
    <dc:date>2025-10-02T13:23:54Z</dc:date>
    <item>
      <title>MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123022#M53909</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an error I've been trying to resolve for some time now and cannot seem to find the cause or resolution.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error I am getting is "Exception has been thrown by the target of an invocation".&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is happening at the "Write Collection" stage.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Essentially what my process is doing is the Digital Worker is accession a web application (Chorus) and extracting comments from a list of work items. These comments that are extracted are saved to a collection.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When all of the items are completed I'm left with a collection of comments. This collection can have 1,000+ rows. The length of comments can vary.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When writing collection to the Excel file, it is failing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me add that it does not always fail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I mean is that I will have 4 DW's running the same process and 1 of the 4 will fail with this error while the other 3 will be successful and I can see the report they've each generated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It also isn't isolated to any 1 DW. DW 1 can work one time and another run it may be the one to fail.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've looked this up extensively and also have a ticket open with support.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My recent thought was that the DW was maybe extracting a comment where the character count exceeds the max character count that can be written to Excel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Excel has a max character count of 32,767 characters or around there.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To test this I manually added a comment to a work item of over 40,000 characters. If I read the comment I get all of the characters saved to my data item and collection but when I go to write my collection to Excel I see that it doesn't write all 40,000 characters. It just writes up to the most characters Excel can hold.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing to note is that while in Design Studio, if I manually add text to a data item, it can only hold up to 32,767 characters. It won't allow me to type any more.&amp;nbsp;However if I read text and save it to a data item, it can hold more characters (ie: the 40,000).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shenryifds_2-1759243853699.png" style="width: 400px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/41617i4B4AD38962878A52/image-size/medium/is-moderation-mode/true?v=v2&amp;amp;px=400" role="button" title="shenryifds_2-1759243853699.png" alt="shenryifds_2-1759243853699.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if while running in production we'd get the same result.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking for any feedback or assistance here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Sep 2025 14:51:26 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123022#M53909</guid>
      <dc:creator>shenryifds</dc:creator>
      <dc:date>2025-09-30T14:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123040#M53912</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/59766"&gt;@shenryifds&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;So, I don't think it is the&amp;nbsp;&lt;EM&gt;number&lt;/EM&gt; of characters, as much as it is likely the&amp;nbsp;&lt;EM&gt;specific&lt;/EM&gt; characters that are contained in the source information.&amp;nbsp; There are two things that have tripped me up in the [recent] past...&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;The less likely issue is a conversion issue within a data type.&amp;nbsp; For me this was a date value--manually entered, and patently incorrect (i.e., Jan 1, 1022)--which is valid as a Visual Basic/Blue Prism Date, but it is not valid as an Excel Date value.&lt;/LI&gt;&lt;LI&gt;I do not know if it is a 'dirty little secret', but something I have to keep in mind is that Collections are comma-delimited structures.&amp;nbsp; It is not a comma (Oxford or otherwise) that has caused me many issues, but errant unpaired quotation marks (i.e. single double-quotes).&amp;nbsp; In the 'States', there has been a convention of using the single- and double-quotes as place holders for measure of length.&amp;nbsp; So, ten feet, three inches would be displayed as 10' 3".&amp;nbsp; It seems to be declining in use, but I do run across it with item descriptions.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Specifically locating the source of your problem can be tedious.&amp;nbsp; If you can parse the files in a text editor outside of your process, you should be okay.&amp;nbsp; If you know what you are looking for, you might be able to visually scan the Collection and see the issue.&amp;nbsp; Barring that, I stepped through my process in debug, at a moderate to slow speed, and inserted a "Show" action before the "Write" action.&amp;nbsp; Then I sat back and tried to pay attention as the spreadsheet was populated cell by cell.&amp;nbsp; When it inevitably threw an exception, I was able to identify the offending line.&amp;nbsp; Of course, there could be more than once instance of the issue.&lt;/P&gt;&lt;P&gt;I hope this at least sets you in the right direction.&amp;nbsp; Best of luck,&lt;/P&gt;&lt;P&gt;Red&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 16:46:27 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123040#M53912</guid>
      <dc:creator>stepher</dc:creator>
      <dc:date>2025-10-01T16:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123042#M53913</link>
      <description>&lt;P&gt;Hi Stepher,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly, thank you so much for your input. This really helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Funny enough, it seems we're on the same page.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In terms of the data types, my collection columns are all text data types. Even if a date it's still text.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In Excel all of my columns were formatted to general. I've since changed this to text to match my collection. Not sure it matters but still something to try.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have eliminated the possibility of it being the character length by stepping through the process and purposely writing a string of over 40,000 characters. What I observed here is that Blue Prism will simply write up to the max character count in Excel.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is a process with high volume (1,000+ items) but to test further and try and replicate this error I've been processing 50-60 items.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shenryifds_0-1759341282160.png" style="width: 673px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/41623iCFD01A1F64AFC4FB/image-dimensions/673x365/is-moderation-mode/true?v=v2" width="673" height="365" role="button" title="shenryifds_0-1759341282160.png" alt="shenryifds_0-1759341282160.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was actually able to get the same error thrown in Design Studio. I ran it a few times to see a pattern and I could see that it kept happening at row 16 and at the same cell. This cell came right after a date, however this date is coming in as a text format (collection example above). So it did write the date but then the next cell it failed. The next cell however was simply text again but in this case the field was blank.&lt;/P&gt;&lt;P&gt;The expectation here was that it would just write "" to that cell. That's what it did in the above rows when that field was blank.&lt;/P&gt;&lt;P&gt;What I did next was simply put a 0 in that collection field and ran it again. Again it failed at row 16 but this time at a different cell. It was was the last column of the row.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This row is for "comments" which are comments the DW has extracted from a work item in an application. These comments are free form and can contain any character. I noticed there were "=" and what looked like "*". I removed these characters and it the next time it worked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to reverse this to see if it would fail again. I first removed the 0 I placed in that empty field and ran the process again and it worked. I then tried to add some "=" and other characters to test and it worked again...this confused me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you're right though in that it does have something to do with the characters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will continue to test and try and pinpoint exactly what's going on here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thank you again. Your help has been much appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Oct 2025 18:04:03 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123042#M53913</guid>
      <dc:creator>shenryifds</dc:creator>
      <dc:date>2025-10-01T18:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123049#M53914</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/59766"&gt;@shenryifds&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wanted to check whether or not all 4 DW's are writing data on same excel?&lt;/P&gt;&lt;P&gt;If yes then are you using &lt;STRONG&gt;Environment Locking&lt;/STRONG&gt;&amp;nbsp;in your process before writing data to excel?&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.blueprism.com/en-US/bundle/blue-prism-enterprise-6-7/page/helpEnvironmentLocking.htm" target="_self"&gt;https://docs.blueprism.com/en-US/bundle/blue-prism-enterprise-6-7/page/helpEnvironmentLocking.htm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because if all 4 DW's will be writing data to same excel then there are high chances of data loss in case of more than 1 DW trying to update the excel.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Sayeed Bin Abdullah&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 12:04:49 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123049#M53914</guid>
      <dc:creator>SayeedBinAbdullah</dc:creator>
      <dc:date>2025-10-02T12:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123050#M53915</link>
      <description>&lt;P&gt;Hi Sayeed,&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are yes but the Excel is a template saved a .xltx so multiple users can open the Excel and save their own report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run the process on 4 DW's 3 of 4 will be successful. The 3 DW's successfully generated their report and saved them to the file path.&lt;/P&gt;&lt;P&gt;The other DW gets the "invocation error".&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also ran this process using 1 DW to test and would get the same error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would it still be worth trying the Environment Lock?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Oct 2025 13:23:54 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123050#M53915</guid>
      <dc:creator>shenryifds</dc:creator>
      <dc:date>2025-10-02T13:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123065#M53917</link>
      <description>&lt;P&gt;It is recommended to use &lt;STRONG&gt;Environment Locking&lt;/STRONG&gt; when multiple &lt;STRONG&gt;DWs&lt;/STRONG&gt;&amp;nbsp;are working on the same file.&lt;/P&gt;&lt;P&gt;For example, if &lt;STRONG&gt;DW1&lt;/STRONG&gt; opens an Excel file and begins updating it, and at the same time &lt;STRONG&gt;DW2&lt;/STRONG&gt; tries to open the same file, the file will open in &lt;STRONG&gt;read-only&lt;/STRONG&gt; mode for DW2. As a result, even if DW2 makes changes, those updates will not be saved because the file was opened as read-only.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Sayeed Bin Abdullah&lt;/P&gt;</description>
      <pubDate>Sat, 04 Oct 2025 05:14:40 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123065#M53917</guid>
      <dc:creator>SayeedBinAbdullah</dc:creator>
      <dc:date>2025-10-04T05:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123066#M53918</link>
      <description>&lt;P&gt;Thanks Sayeed,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've ran the process using 4 DW's before and 3 of the 4 will be successful.&lt;/P&gt;&lt;P&gt;They will all open the Excel template. It does open as Read Only but they then Save As. When the process is completed I will see all 3 reports saved to the path.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try using the Environment Lock to see if that helps.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've got the same error when running on 1 DW as well so I didn't think that was the problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your feedback and I will try this.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Oct 2025 15:30:59 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123066#M53918</guid>
      <dc:creator>shenryifds</dc:creator>
      <dc:date>2025-10-04T15:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123091#M53920</link>
      <description>&lt;DIV&gt;Quick update here.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;To try and find the bug or what's going on here I decided to try processing the same 1,377 items.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This time though in order for me to try and look at every item, I ran the process in batches of 50.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So I'd run the process on 50 items to extract my comments and then write to Excel and save it.&lt;/DIV&gt;&lt;DIV&gt;I would then review the report to see if there were any special characters or anything unusual.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I would find all kind of characters like "=" or "*" for example but they would always write to Excel no problem.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;That eliminated the possibility of it being some character or formatting that was causing BP to throw this error.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I did for all 1,377 items in debug mode.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What I ended up with as 28 or so reports.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I was successful all times.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I then got all of these reports into a collection and wrote it to a separate report to combine them.&lt;/DIV&gt;&lt;DIV&gt;I did this several times again trying to recreate the error but was successful every time.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So writing that much data all at once also seems fine.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I will trying to run a full end to end process with the DW again today to see what happens this time around.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 06 Oct 2025 14:00:30 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123091#M53920</guid>
      <dc:creator>shenryifds</dc:creator>
      <dc:date>2025-10-06T14:00:30Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123112#M53925</link>
      <description>&lt;P&gt;Also if there are separate reports getting created for each DW then Environment Locking will not be required in this case.&lt;/P&gt;&lt;P&gt;However, to be extra sure you can modify your flow to create an individual .xltx file at the beginning of the flow itself with file name like for example ExcelComment_DW1.xltx&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And also is there any specific requirement that you are using .xltx instead of .xlsx?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2025 16:49:09 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123112#M53925</guid>
      <dc:creator>SayeedBinAbdullah</dc:creator>
      <dc:date>2025-10-06T16:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123114#M53926</link>
      <description>&lt;P&gt;Hi Sayeed,&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you say to add an individual xltx file at the beginning of the flow, are you saying each DW create their own&amp;nbsp; xltx file?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the .xltx file, the reason I went this route was because previously I did have it saved as .xlsx however I would get an error that the "application is busy". I took that as an indication that multiple DW's could not access this file at the same time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My resolution was to use the .xltx file because I had read that multiple users could open the file at the same time without any conflict.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, I want to add that I tried running this process again in production and for the first time it worked. All 4 DW's completed the process and successfully generated their Excel report.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="shenryifds_0-1759774870989.png" style="width: 721px;"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/41627iD7B77F78E5F47DCB/image-dimensions/721x119/is-moderation-mode/true?v=v2" width="721" height="119" role="button" title="shenryifds_0-1759774870989.png" alt="shenryifds_0-1759774870989.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You can see reports saved around the same time.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now why it worked this time vs other times? I am not sure.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I no longer think that the issue is surrounding the character count or any special characters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It worked in debug mode but running and writing to excel in smaller batches but then I also did the full run in prod on all 4 DW's.&lt;/P&gt;&lt;P&gt;For now I would keep testing to see if I can have multiple successful runs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Oct 2025 18:24:50 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123114#M53926</guid>
      <dc:creator>shenryifds</dc:creator>
      <dc:date>2025-10-06T18:24:50Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123117#M53928</link>
      <description>&lt;P&gt;Yes, I’m referring to the creation of a &lt;STRONG&gt;.xltx&lt;/STRONG&gt; file by each DW before starting Excel activities.&lt;/P&gt;&lt;P&gt;If &lt;STRONG&gt;Environment Locking&lt;/STRONG&gt; is applied while opening the template file and creating individual DW Excel files, the “&lt;STRONG&gt;application is busy&lt;/STRONG&gt;” error will not occur and you will be able to use &lt;STRONG&gt;.xlsx&lt;/STRONG&gt; file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 04:55:04 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123117#M53928</guid>
      <dc:creator>SayeedBinAbdullah</dc:creator>
      <dc:date>2025-10-07T04:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123126#M53931</link>
      <description>&lt;P&gt;Thanks Sayeed,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see what you're saying.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 successful runs with the .XLTX file.&lt;/P&gt;&lt;P&gt;Is it worth going back to the .XLSX file and using the environment lock? Is there any harm using the .XLTX file?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 12:30:34 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123126#M53931</guid>
      <dc:creator>shenryifds</dc:creator>
      <dc:date>2025-10-07T12:30:34Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123128#M53932</link>
      <description>&lt;P&gt;There’s absolutely no harm in continuing with the &lt;STRONG&gt;.xltx&lt;/STRONG&gt; format. In fact, it’s often a more reliable option when multiple Digital Workers (DWs) are running in parallel.&lt;/P&gt;&lt;P&gt;However, you can also try using the &lt;STRONG&gt;.xlsx&lt;/STRONG&gt; approach to see if the “&lt;STRONG&gt;Application is busy&lt;/STRONG&gt;” error still occurs.&lt;/P&gt;&lt;P&gt;If it doesn’t, try generating individual output files for each DW in a single run (rather than running them in batches) to check if you’re able to replicate the issue you encountered earlier.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 13:33:32 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123128#M53932</guid>
      <dc:creator>SayeedBinAbdullah</dc:creator>
      <dc:date>2025-10-07T13:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123129#M53933</link>
      <description>&lt;P&gt;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/59766"&gt;@shenryifds&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1799"&gt;@SayeedBinAbdullah&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I am still not convinced that the issue is due to multiple machines attempting to access your report template file at the same time (whether as an '.xltx' or as an '.xlsx').&amp;nbsp; The reason for this is that you mentioned identifying a break in the writing of the Collection at a very specific cell location.&amp;nbsp; So, this is occurring after the machine has opened its Indvidual version of the file.&lt;/P&gt;&lt;P&gt;I still favor the 'errant character' theory.&amp;nbsp; I also realize that, as I read back my initial response that I skipped about half-a-thought--which was the bridge between mentioning the text editor and my probably-not-entirely-correct assumption that Collections are comma-delimited structures...&lt;/P&gt;&lt;P&gt;One of the other things that I do to troubleshoot these types of issues is to send my collection to a text file, instead of the Excel workbook.&amp;nbsp; I then use my text editor of choice (NotePad++, but you can use whatever suits you) to review the file.&amp;nbsp; There are two things I look for:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;'Spontaneous' Quotation Marks:&amp;nbsp; The first time I did this, I noticed that one of the fields contained a pair of double-quotes.&amp;nbsp; But that was not expected in my dataset.&amp;nbsp; It took me longer than I would like to admit seeing that the data within the double-quotes contained a comma.&amp;nbsp; This led me back to my original Collection, where I confirmed that a comma was present.&lt;/LI&gt;&lt;LI&gt;Nonprintable Characters: One of the reasons I use NP++ is that it can be configured to highlight formatting and nonprintable characters.&amp;nbsp; I have had nonprintable characters occur when end-users have cut and pasted values from browsers.&amp;nbsp; Additionally, these pop up from time to time when I am parsing email text.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I doubt your specific issue is nonprintable characters, only because I don't think they usually cause Excel much heartburn.&amp;nbsp; But the other benefit I have had to sending my collection to text filers is that I can sometimes catch breaks in expected patterns.&lt;/P&gt;&lt;P&gt;Anyway, it looks like you are making some progress.&amp;nbsp; Again, best of luck,&lt;/P&gt;&lt;P&gt;Red&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 14:02:56 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123129#M53933</guid>
      <dc:creator>stepher</dc:creator>
      <dc:date>2025-10-07T14:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123130#M53934</link>
      <description>&lt;P&gt;Thank you Stepher,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to add that I have now had 2 successful runs back to back.&amp;nbsp;&lt;/P&gt;&lt;P&gt;After doing my test in debug mode I haven't since replicated the error. I will be continuing to run the process to see if I can continue to have successful runs.&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I was testing in debug mode and writing to Excel in smaller batches I would be reviewing the collection and would find all kinds of special characters.&lt;/P&gt;&lt;P&gt;I would also purposely add different characters spontaneously throughout the collection trying to force an error but was always successful. I'd add a quotation mark for example but no error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Quite stumped here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regarding the process being successful the last 2 runs, I'm not sure exactly why.&amp;nbsp;&lt;/P&gt;&lt;P&gt;In terms of changes I recall I made sure my Excel columns were formatted to text to match my collection data types. This was me just trying anything at this point.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I was initially using an enhanced version of the Excel VBO and then switched to the basic version to test. I've since reverted back to the enhanced version.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll continue to test and send updates.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you all!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 14:17:20 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123130#M53934</guid>
      <dc:creator>shenryifds</dc:creator>
      <dc:date>2025-10-07T14:17:20Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123135#M53937</link>
      <description>&lt;P&gt;I've now had 4 successful runs with all 4 DW's successfully generating and saving their reports.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting as I'm not sure what the big difference here.&amp;nbsp;&lt;/P&gt;&lt;P&gt;One thing to note is that the previous runs that were failing are from last week. What this process does at the start is run a SQL query to extract data.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We also updated the SQL query but I don't think that would matter.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The query is still pulling the same data at the end of the day. I'm really just trying to think of all the possibilities.&lt;/P&gt;&lt;P&gt;I'm happy I'm having successful runs but I still don't understand the original root cause. I'm worried I can see this error again at some point.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Oct 2025 19:50:54 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123135#M53937</guid>
      <dc:creator>shenryifds</dc:creator>
      <dc:date>2025-10-07T19:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123177#M53941</link>
      <description>&lt;P&gt;Yeh, Collections are .NET DataTables&lt;/P&gt;</description>
      <pubDate>Wed, 08 Oct 2025 15:48:10 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123177#M53941</guid>
      <dc:creator>Anton__Hosang</dc:creator>
      <dc:date>2025-10-08T15:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: MS Excel VBO - Exception has been thrown by the target of an invocation</title>
      <link>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123657#M54084</link>
      <description>&lt;P&gt;Target Invocation error mostly when BP lost connection with Excel.&lt;BR /&gt;for huge data i always prefer to export in XML file , xml file open easily in excel file. BP will not lose connection with XML in exporting and reading from XML.&lt;/P&gt;&lt;P&gt;you can think about using XML files&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 13:17:17 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/MS-Excel-VBO-Exception-has-been-thrown-by-the-target-of-an/m-p/123657#M54084</guid>
      <dc:creator>naveed_raza</dc:creator>
      <dc:date>2025-11-28T13:17:17Z</dc:date>
    </item>
  </channel>
</rss>

