<?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 Object Reference not set to an instance of an object in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/44698#M1093</link>
    <description>The code stage has no errors compiled, while running it fires this error ==&amp;gt;Object Reference not set to an instance of an object&lt;BR /&gt;&lt;BR /&gt;Why is not saying which is the error??&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Cohen&lt;BR /&gt;RPA Developer&lt;BR /&gt;&lt;BR /&gt;Romania&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Mon, 09 Dec 2019 15:33:00 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-12-09T15:33:00Z</dc:date>
    <item>
      <title>Object Reference not set to an instance of an object</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/44698#M1093</link>
      <description>The code stage has no errors compiled, while running it fires this error ==&amp;gt;Object Reference not set to an instance of an object&lt;BR /&gt;&lt;BR /&gt;Why is not saying which is the error??&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Cohen&lt;BR /&gt;RPA Developer&lt;BR /&gt;&lt;BR /&gt;Romania&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Dec 2019 15:33:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/44698#M1093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-12-09T15:33:00Z</dc:date>
    </item>
    <item>
      <title>RE: Object Reference not set to an instance of an object</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/44699#M1094</link>
      <description>Object Reference related errors are run time errors not compiler errors. These errors normally come when you try to refer to a data item/variable which is null (Null Reference exception)&amp;nbsp; or else if you are trying to refer to a variable which is not yet initialized.&amp;nbsp; .&lt;BR /&gt;&lt;BR /&gt;Can you please post your code so that we can guide you further?&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Vivek Goel&lt;BR /&gt;RPA Architect&lt;BR /&gt;Asia/Singapore&lt;BR /&gt;+6594554364&lt;BR /&gt;&lt;A href="https://www.rpatools.com/" target="test_blank"&gt;https://www.rpatools.com/&lt;/A&gt;&lt;BR /&gt;"If you like this post, please press the "Recommend" Button.&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Dec 2019 03:30:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/44699#M1094</guid>
      <dc:creator>vivek.kumar.goel</dc:creator>
      <dc:date>2019-12-10T03:30:00Z</dc:date>
    </item>
    <item>
      <title>RE: Object Reference not set to an instance of an object</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/44700#M1095</link>
      <description>Hi Vivek,&lt;BR /&gt;&lt;BR /&gt;Could you guide me through my code related to the same issue:&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Page page = System.Web.HttpContext.Current.Handler as Page;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;str = "page doesn't exist";&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;if (page != null)&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;{ str = "page exists!!"; &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;BR /&gt;There is the same runtime exception - object reference not set. I have the dll and reference mentioned in the Init page though.&lt;BR /&gt;&lt;BR /&gt;Along with the above if you could additionally help me with the below:&lt;BR /&gt;I am trying to run this code through code stage in BP to call a java script function "JSFUNCTION" - the JS function already exists in the webpage.&lt;BR /&gt;&lt;STRONG&gt;System.Web.UI.Page page = new System.Web.UI.Page();&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;ClientScriptManager cs = page.ClientScript;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;cs.RegisterStartupScript(page.GetType(), "Javascript", "JSFUNCTION(false,this);", true);&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The run is successful but nothing happens on the page, the function works when called from Console (dev tool in browser).&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Rohan Shankar&lt;BR /&gt;Analyst&lt;BR /&gt;Ericsson&lt;BR /&gt;Asia/Kolkata&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Fri, 31 Jul 2020 12:48:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/44700#M1095</guid>
      <dc:creator>RohanShankar</dc:creator>
      <dc:date>2020-07-31T12:48:00Z</dc:date>
    </item>
    <item>
      <title>RE: Object Reference not set to an instance of an object</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/44701#M1096</link>
      <description>&lt;P&gt;An Object is an instance of a Class , it is stored some where in memory. A reference is what is used to describe the pointer to the memory location where the Object resides. The message "object &lt;A href="http://csharp.net-informations.com/language/reference.htm" target="_blank" rel="noopener"&gt;reference not set&lt;/A&gt; to an instance of an object" means that you are referring to an object the does not exist or was deleted or cleaned up. It's usually better to avoid a NullReferenceException than to handle it after it occurs. To prevent the error, objects that could be null should be tested for null before being used.&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;if (mClass != null)&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;{&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;// Go ahead and use mClass&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;mClass.property = ...&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;}&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;else&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;{&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;// Attempting to use mClass here will result in NullReferenceException&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;}&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;evan chirger&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Dec 2020 05:52:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/44701#M1096</guid>
      <dc:creator>evanchirger1</dc:creator>
      <dc:date>2020-12-22T05:52:00Z</dc:date>
    </item>
    <item>
      <title>RE: Object Reference not set to an instance of an object</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/44702#M1097</link>
      <description>Hi, &lt;BR /&gt;I had similar issue. And problem appeared because bot user used to login to Windows, had temp windows profile. &lt;BR /&gt;Once I used other user at this VDI with normal profile, and also return bot user to use normal profile, issue disappeared.&amp;nbsp;&lt;BR /&gt;Best Regards&lt;BR /&gt;Piotr Wieczerzak&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Piotr Wieczerzak&lt;BR /&gt;Senior developer and analyst&lt;BR /&gt;Brown Brothers Harriman&lt;BR /&gt;Europe/Warsaw&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Tue, 05 Apr 2022 08:27:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/44702#M1097</guid>
      <dc:creator>Piotr__Wieczerzak</dc:creator>
      <dc:date>2022-04-05T08:27:00Z</dc:date>
    </item>
    <item>
      <title>RE: Object Reference not set to an instance of an object</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/44703#M1098</link>
      <description>&lt;P&gt;Hi Piotr - I am currently seeing this issue now on our bots. We use HTTP request to retrieve credentials from CyberArk and then send those credentials to Login Agent. I have suddenly started seeing this 'object reference not set to an instance..' error. Can you elaborate a bit more on what caused this issue on your end and how it got resolved?&lt;/P&gt;
&lt;P&gt;What do you mean when you said bot user had temp profile and when you say return bot user to normal profile.&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Thanks so much!&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Maneesh Vemula&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Sun, 11 Feb 2024 19:11:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/44703#M1098</guid>
      <dc:creator>maneesh.vemula1</dc:creator>
      <dc:date>2024-02-11T19:11:00Z</dc:date>
    </item>
    <item>
      <title>RE: Object Reference not set to an instance of an object</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/44704#M1099</link>
      <description>&lt;P&gt;Hi Maneesh,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;temp profile means that during each login to Windows using this same user bot is creating new profile - something like bot1 during first login, then bot01.temp01, next bot01.temp02 etc... each login new profile.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I was able to login VDI using permanent profile issue disappeared.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Best regards&lt;/P&gt;
&lt;P&gt;Piotr&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Piotr Wieczerzak&lt;BR /&gt;Senior developer and analyst&lt;BR /&gt;Brown Brothers Harriman&lt;BR /&gt;Europe/Warsaw&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Feb 2024 08:46:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/44704#M1099</guid>
      <dc:creator>Piotr__Wieczerzak</dc:creator>
      <dc:date>2024-02-19T08:46:00Z</dc:date>
    </item>
    <item>
      <title>Re: Object Reference not set to an instance of an object</title>
      <link>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/114150#M50983</link>
      <description>&lt;P&gt;Let me share my solution in case it helps anyone in the future. I was receiving same error for microsoft graph sharepoint api object. What I did to get a more relevant error was find what function the code stage was calling. Then i went to Initialize page, found the function under global code. I removed the try/catch block so that the relevant error can actually come through instead of this reference not set error. This helped me narrow down my issue which turned out to be a timeout problem. I increased timeout and problem resolved.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 18:37:53 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/Object-Reference-not-set-to-an-instance-of-an-object/m-p/114150#M50983</guid>
      <dc:creator>luismartinez888</dc:creator>
      <dc:date>2024-09-17T18:37:53Z</dc:date>
    </item>
  </channel>
</rss>

