<?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 Correct Syntax for fields of &amp;quot;Save As&amp;quot; MS Word VBO action? in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Correct-Syntax-for-fields-of-quot-Save-As-quot-MS-Word-VBO/m-p/79083#M31033</link>
    <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15663.jpg"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15828i1070C2B536072D79/image-size/large?v=v2&amp;amp;px=999" role="button" title="15663.jpg" alt="15663.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;I'm working with an MS Word VBO business object action labelled as "Save As". It has three fields that require input and I have been getting the same error for quite some time now. It is as follows:&lt;BR /&gt;&lt;BR /&gt;"Internal : Could not execute code stage because exception thrown by code stage: Bad file name"&lt;/DIV&gt;
&lt;P&gt;I have crafted a very simple implementation in order to streamline the process of saving the generated Word document.&lt;/P&gt;
&lt;P&gt;Here are some screenshots:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://cdn.filestackcontent.com/S2G7B533TAC2408Yfauf" class="img-responsive" data-mce-hlimagekey="b22e9165-2e97-5ba6-62f1-ffa7fdb7092c" data-mce-hlselector="#MainCopy_ctl02_TinyMCEEditor_TinyMCEContent" /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15664.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15826iB32819FB53481364/image-size/large?v=v2&amp;amp;px=999" role="button" title="15664.png" alt="15664.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;IMG src="https://cdn.filestackcontent.com/hA91FK0iSDCCrJ1ed7pt" class="img-responsive" data-mce-hlimagekey="974f6545-d89b-9717-b099-d2608458d4d4" data-mce-hlselector="#MainCopy_ctl02_TinyMCEEditor_TinyMCEContent" /&gt;&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15665.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15829i42798CB990215000/image-size/large?v=v2&amp;amp;px=999" role="button" title="15665.png" alt="15665.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15666.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15825i5F9ED9C635F1DCF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="15666.png" alt="15666.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15667.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15827iEEB5D538D7F489F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="15667.png" alt="15667.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;Would you happen to know the proper syntax--or better yet, where to find a compilation that contains examples of the proper syntax?&lt;BR /&gt;&lt;BR /&gt;Thank You!&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Lenny Adams&lt;BR /&gt;Technology Early Career Development Program (TECDP) Intern&lt;BR /&gt;Cigna&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Fri, 24 Apr 2020 23:37:00 GMT</pubDate>
    <dc:creator>LennyAdams</dc:creator>
    <dc:date>2020-04-24T23:37:00Z</dc:date>
    <item>
      <title>Correct Syntax for fields of "Save As" MS Word VBO action?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Correct-Syntax-for-fields-of-quot-Save-As-quot-MS-Word-VBO/m-p/79083#M31033</link>
      <description>&lt;P&gt;Hi There,&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15663.jpg"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15828i1070C2B536072D79/image-size/large?v=v2&amp;amp;px=999" role="button" title="15663.jpg" alt="15663.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;I'm working with an MS Word VBO business object action labelled as "Save As". It has three fields that require input and I have been getting the same error for quite some time now. It is as follows:&lt;BR /&gt;&lt;BR /&gt;"Internal : Could not execute code stage because exception thrown by code stage: Bad file name"&lt;/DIV&gt;
&lt;P&gt;I have crafted a very simple implementation in order to streamline the process of saving the generated Word document.&lt;/P&gt;
&lt;P&gt;Here are some screenshots:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://cdn.filestackcontent.com/S2G7B533TAC2408Yfauf" class="img-responsive" data-mce-hlimagekey="b22e9165-2e97-5ba6-62f1-ffa7fdb7092c" data-mce-hlselector="#MainCopy_ctl02_TinyMCEEditor_TinyMCEContent" /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15664.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15826iB32819FB53481364/image-size/large?v=v2&amp;amp;px=999" role="button" title="15664.png" alt="15664.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;IMG src="https://cdn.filestackcontent.com/hA91FK0iSDCCrJ1ed7pt" class="img-responsive" data-mce-hlimagekey="974f6545-d89b-9717-b099-d2608458d4d4" data-mce-hlselector="#MainCopy_ctl02_TinyMCEEditor_TinyMCEContent" /&gt;&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15665.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15829i42798CB990215000/image-size/large?v=v2&amp;amp;px=999" role="button" title="15665.png" alt="15665.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15666.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15825i5F9ED9C635F1DCF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="15666.png" alt="15666.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15667.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15827iEEB5D538D7F489F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="15667.png" alt="15667.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;Would you happen to know the proper syntax--or better yet, where to find a compilation that contains examples of the proper syntax?&lt;BR /&gt;&lt;BR /&gt;Thank You!&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Lenny Adams&lt;BR /&gt;Technology Early Career Development Program (TECDP) Intern&lt;BR /&gt;Cigna&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 24 Apr 2020 23:37:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Correct-Syntax-for-fields-of-quot-Save-As-quot-MS-Word-VBO/m-p/79083#M31033</guid>
      <dc:creator>LennyAdams</dc:creator>
      <dc:date>2020-04-24T23:37:00Z</dc:date>
    </item>
    <item>
      <title>RE: Correct Syntax for fields of "Save As" MS Word VBO action?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Correct-Syntax-for-fields-of-quot-Save-As-quot-MS-Word-VBO/m-p/79084#M31034</link>
      <description>Hi, you entered the double quotes in the data item. They are not needed to make text in Data Items. Only use quotes to mark a string in the Expression editor/inputs.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Anton Hosang&lt;BR /&gt;RPA Developer&lt;BR /&gt;Smart Automation Services&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sat, 25 Apr 2020 09:45:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Correct-Syntax-for-fields-of-quot-Save-As-quot-MS-Word-VBO/m-p/79084#M31034</guid>
      <dc:creator>AntonHosang1</dc:creator>
      <dc:date>2020-04-25T09:45:00Z</dc:date>
    </item>
    <item>
      <title>RE: Correct Syntax for fields of "Save As" MS Word VBO action?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Correct-Syntax-for-fields-of-quot-Save-As-quot-MS-Word-VBO/m-p/79085#M31035</link>
      <description>&lt;P&gt;Hi Anton,&lt;BR /&gt;&lt;BR /&gt;Thank you for your response. I have adjusted the data item text field and yet the same error (Bad Filename) is still being thrown by BP. Here's a screenshot for reference:&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15655.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15816i50DD0FC7C4560CC1/image-size/large?v=v2&amp;amp;px=999" role="button" title="15655.png" alt="15655.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Any other ideas as to why this is still happening?&lt;BR /&gt;&lt;BR /&gt;Thank You.&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Lenny Adams&lt;BR /&gt;Technology Early Career Development Program (TECDP) Intern&lt;BR /&gt;Cigna&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 26 Apr 2020 11:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Correct-Syntax-for-fields-of-quot-Save-As-quot-MS-Word-VBO/m-p/79085#M31035</guid>
      <dc:creator>LennyAdams</dc:creator>
      <dc:date>2020-04-26T11:11:00Z</dc:date>
    </item>
    <item>
      <title>RE: Correct Syntax for fields of "Save As" MS Word VBO action?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Correct-Syntax-for-fields-of-quot-Save-As-quot-MS-Word-VBO/m-p/79086#M31036</link>
      <description>&lt;DIV class="uconBody"&gt;&lt;DIV dir="auto"&gt;Hi Team,&amp;nbsp;&lt;DIV dir="auto"&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV dir="auto"&gt;Please use create instance first then you will get the output.&lt;/DIV&gt;&lt;DIV dir="auto"&gt;Pass that output ie.handle for all actions like create document and save as . Hope you will not get the error and also use close instance before killing ms Word.&amp;nbsp;&lt;/DIV&gt;&lt;DIV dir="auto"&gt;&lt;BR /&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;------Original Message------&lt;BR /&gt;&lt;BR /&gt;Hi, you entered the double quotes in the data item. They are not needed to make text in Data Items. Only use quotes to mark a string in the Expression editor/inputs.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Anton Hosang&lt;BR /&gt;RPA Developer&lt;BR /&gt;Smart Automation Services&lt;BR /&gt;Europe/London&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 27 Apr 2020 19:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Correct-Syntax-for-fields-of-quot-Save-As-quot-MS-Word-VBO/m-p/79086#M31036</guid>
      <dc:creator>Mohammed_OmerAl</dc:creator>
      <dc:date>2020-04-27T19:11:00Z</dc:date>
    </item>
    <item>
      <title>RE: Correct Syntax for fields of "Save As" MS Word VBO action?</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Correct-Syntax-for-fields-of-quot-Save-As-quot-MS-Word-VBO/m-p/79087#M31037</link>
      <description>Hi Mohammad,&lt;BR /&gt;&lt;BR /&gt;Thank you so much for your insight! I utilized it and was able to successfully use the MS Word VBO "Save As" action.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I will post a summary of the solution steps here just in case anyone needs them in the future. :c)&lt;BR /&gt;&lt;BR /&gt;=========================================================================================&lt;BR /&gt;&lt;BR /&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #1f497d;"&gt;&lt;SPAN style="color: #333300; font-size: 12pt;"&gt;The solution looks like this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #1f497d;"&gt;&lt;SPAN style="color: #333300; font-size: 12pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;
&lt;DIV class="media" style="overflow: hidden; zoom: 1;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15661.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15824i88F22CF71D93DFF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="15661.png" alt="15661.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #1f497d;"&gt;&lt;SPAN style="color: #333300; font-size: 12pt;"&gt;&lt;BR /&gt;It appears that my primary issue was that I had NOT created an MS Word instance first!!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #1f497d;"&gt;&lt;SPAN style="color: #333300; font-size: 12pt;"&gt;&lt;BR /&gt;Once I followed the following procedure, it FINALLY worked:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #1f497d;"&gt;&lt;SPAN style="color: #333300; font-size: 12pt;"&gt;&lt;BR /&gt;1) Create MS Word Instance and pass output to Handle data item.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #1f497d;"&gt;&lt;SPAN style="color: #333300; font-size: 12pt;"&gt;2) Create MS Word document and pass output to DocumentName data item.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #1f497d;"&gt;&lt;SPAN style="color: #333300; font-size: 12pt;"&gt;3) Type test text in MS Word document (passed Message data item to input parameter).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #1f497d;"&gt;&lt;SPAN style="color: #333300; font-size: 12pt;"&gt;4) Use "Save As" MS Word VBO action the following arguments:&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV class="media" style="overflow: hidden;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="15662.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/15832iB011EB172A9727C8/image-size/large?v=v2&amp;amp;px=999" role="button" title="15662.png" alt="15662.png" /&gt;&lt;/span&gt;&lt;/DIV&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #1f497d;"&gt;&lt;SPAN style="color: #333300; font-size: 12pt;"&gt;5) Detach from created MS Word Instance.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #1f497d;"&gt;&lt;SPAN style="color: #333300; font-size: 12pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt; color: #1f497d;"&gt;&lt;SPAN style="color: #333300; font-size: 12pt;"&gt;And that did the trick!&lt;BR /&gt;&lt;BR /&gt;Thanks for the feedback, Team. :c)&lt;/SPAN&gt;&lt;/P&gt;
&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Lenny Adams&lt;BR /&gt;Technology Early Career Development Program (TECDP) Intern&lt;BR /&gt;Cigna&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Apr 2020 01:15:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Correct-Syntax-for-fields-of-quot-Save-As-quot-MS-Word-VBO/m-p/79087#M31037</guid>
      <dc:creator>LennyAdams</dc:creator>
      <dc:date>2020-04-28T01:15:00Z</dc:date>
    </item>
  </channel>
</rss>

