<?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 I created a copy of Word &amp; Excel VBO's to house our custom actions, now I get the error 'Create_Instance' is not declared. It may be inaccessible due to its protection level. in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/I-created-a-copy-of-Word-Excel-VBO-s-to-house-our-custom-actions/m-p/51149#M6256</link>
    <description>To allow us to add our own Excel &amp;amp; Word VBO actions, but to avoid the de-merging/re-merging hell that comes if upgrading VBO's, I've created copies of any VBO's we wish to extend.

I intentionally created the copies, so that I could retain all the global code, etc.

I've since deleted any original published actions, and have added any new actions into these new objects.

However, I am getting a compile error on both of the new Word &amp;amp; Excel VBO's

"Compiler error at line 100: 'Create_Instance' is not declared. It may be inaccessible due to its protection level."

I have double checked all external references and namespace imports. They are the same as the original objects.

Any thoughts? I think there's something else fishy going on.
&amp;nbsp;</description>
    <pubDate>Sun, 17 Mar 2019 05:20:00 GMT</pubDate>
    <dc:creator>PatrickOttery1</dc:creator>
    <dc:date>2019-03-17T05:20:00Z</dc:date>
    <item>
      <title>I created a copy of Word &amp; Excel VBO's to house our custom actions, now I get the error 'Create_Instance' is not declared. It may be inaccessible due to its protection level.</title>
      <link>https://community.blueprism.com/t5/Product-Forum/I-created-a-copy-of-Word-Excel-VBO-s-to-house-our-custom-actions/m-p/51149#M6256</link>
      <description>To allow us to add our own Excel &amp;amp; Word VBO actions, but to avoid the de-merging/re-merging hell that comes if upgrading VBO's, I've created copies of any VBO's we wish to extend.

I intentionally created the copies, so that I could retain all the global code, etc.

I've since deleted any original published actions, and have added any new actions into these new objects.

However, I am getting a compile error on both of the new Word &amp;amp; Excel VBO's

"Compiler error at line 100: 'Create_Instance' is not declared. It may be inaccessible due to its protection level."

I have double checked all external references and namespace imports. They are the same as the original objects.

Any thoughts? I think there's something else fishy going on.
&amp;nbsp;</description>
      <pubDate>Sun, 17 Mar 2019 05:20:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/I-created-a-copy-of-Word-Excel-VBO-s-to-house-our-custom-actions/m-p/51149#M6256</guid>
      <dc:creator>PatrickOttery1</dc:creator>
      <dc:date>2019-03-17T05:20:00Z</dc:date>
    </item>
    <item>
      <title>Yep, something fishy with…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/I-created-a-copy-of-Word-Excel-VBO-s-to-house-our-custom-actions/m-p/51150#M6257</link>
      <description>Yep, something fishy with the way Blue Prism handles global code in a&amp;nbsp;copied object.
I manually created a brand new object, then manually pasted in all the exact same global code, assembly references and namespace imports and everything is working just fine.
I'm using v5.0.30, but we're soon upgrading to v6.4.
I this a known bug?
Is it fixed in v6.4 and up?
Regards,
Patrick.</description>
      <pubDate>Sun, 17 Mar 2019 05:25:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/I-created-a-copy-of-Word-Excel-VBO-s-to-house-our-custom-actions/m-p/51150#M6257</guid>
      <dc:creator>PatrickOttery1</dc:creator>
      <dc:date>2019-03-17T05:25:00Z</dc:date>
    </item>
    <item>
      <title>Hi Patrick,
First, let me…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/I-created-a-copy-of-Word-Excel-VBO-s-to-house-our-custom-actions/m-p/51151#M6258</link>
      <description>Hi Patrick,
First, let me mention that I don't know why this is a thing and I agree with you that it's odd. But, it seems that function references in the Global Code can actually point to Code Stages across the VBO. This blew my mind when I realized it, but I guess it makes a kind of sense. Notice that the Code Stage 'Create Instance' on the page 'Create Instance' has a space in it. The function reference in the global code has an underscore so that it is valid in the VB.NET code: 'Create_Instance()'.
There are two ways to fix the issue. One, you could delete all the global code that is interdependent, surrounding that function. This is what I did because in our Wrapper objects, we aren't using any of the global code. Or Two, you could put the code stage back for 'Create Instance'. Both of these will remove the Compiler Error.
Dave</description>
      <pubDate>Sun, 17 Mar 2019 18:53:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/I-created-a-copy-of-Word-Excel-VBO-s-to-house-our-custom-actions/m-p/51151#M6258</guid>
      <dc:creator>david.l.morris</dc:creator>
      <dc:date>2019-03-17T18:53:00Z</dc:date>
    </item>
    <item>
      <title>Hi Dave, thanks for taking a…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/I-created-a-copy-of-Word-Excel-VBO-s-to-house-our-custom-actions/m-p/51152#M6259</link>
      <description>Hi Dave, thanks for taking a look.
This is fully resolved&amp;nbsp;if I simply create a blank object, then manually import all the global code, etc.
The issue only came about when duplicating the object and removing the actions I did not need.
I did try deleting all the global code, then re-importing and it didn't change the behaviour.
I believe there must be a reference to the original object guid&amp;nbsp;within the new object.&amp;nbsp;
At this point, I don't have the time to fully investigate and raise a bug, but I'd suggest it's something worth your time to investigate yourselves.
Regards,
Patrick.</description>
      <pubDate>Mon, 18 Mar 2019 02:10:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/I-created-a-copy-of-Word-Excel-VBO-s-to-house-our-custom-actions/m-p/51152#M6259</guid>
      <dc:creator>PatrickOttery1</dc:creator>
      <dc:date>2019-03-18T02:10:00Z</dc:date>
    </item>
    <item>
      <title>Hi Dave,
Apologies, I was…</title>
      <link>https://community.blueprism.com/t5/Product-Forum/I-created-a-copy-of-Word-Excel-VBO-s-to-house-our-custom-actions/m-p/51153#M6260</link>
      <description>Hi Dave,
Apologies, I was incorrect with my above statement. Working all weekend with a cold had my thinking sideways.
I've followed your advice and things are indeed now running as required.
Thanks again for your help.
Regards,
Patrick.</description>
      <pubDate>Mon, 18 Mar 2019 03:24:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/I-created-a-copy-of-Word-Excel-VBO-s-to-house-our-custom-actions/m-p/51153#M6260</guid>
      <dc:creator>PatrickOttery1</dc:creator>
      <dc:date>2019-03-18T03:24:00Z</dc:date>
    </item>
  </channel>
</rss>

