<?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: Getting Object reference not set to an instance of an object when we invoke http request from BluePrism tool in Digital Exchange</title>
    <link>https://community.blueprism.com/t5/Digital-Exchange/Getting-Object-reference-not-set-to-an-instance-of-an-object/m-p/62040#M2300</link>
    <description>&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had similar issue. And problem appeared because bot user used to login to Windows, had temp windows profile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Piotr Wieczerzak&lt;/SPAN&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>Tue, 05 Apr 2022 08:29:00 GMT</pubDate>
    <dc:creator>Piotr__Wieczerzak</dc:creator>
    <dc:date>2022-04-05T08:29:00Z</dc:date>
    <item>
      <title>Getting Object reference not set to an instance of an object when we invoke http request from BluePrism tool</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Getting-Object-reference-not-set-to-an-instance-of-an-object/m-p/62038#M2298</link>
      <description>&lt;P&gt;I have done configuration in Blueprism RPA tool to invoke REST POST Call.&lt;/P&gt;

&lt;P&gt;I am getting following error when I ran it .&lt;/P&gt;

&lt;P&gt;'Could not execute code stage because exception thrown by code stage: Object reference not set to an instance of an object.'.&lt;/P&gt;

&lt;P&gt;Please let me know why we get this error and let me know if you need more information about the issue.&lt;/P&gt;

--------------------------------------------------&lt;BR /&gt;

&lt;B&gt;Disclaimer:&lt;/B&gt; This content was auto-posted from Stackoverflow. The original Stackoverflow question is here &lt;A href="https://stackoverflow.com/questions/57602224/getting-object-reference-not-set-to-an-instance-of-an-object-when-we-invoke-http"&gt;Stackoverflow Post&lt;/A&gt;, posted by &lt;A href="https://stackoverflow.com/users/2730398/manzur"&gt;manzur&lt;/A&gt;.</description>
      <pubDate>Thu, 22 Aug 2019 11:01:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Getting-Object-reference-not-set-to-an-instance-of-an-object/m-p/62038#M2298</guid>
      <dc:creator>Digital_WorkerB</dc:creator>
      <dc:date>2019-08-22T11:01:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Object reference not set to an instance of an object when we invoke http request from BluePrism tool</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Getting-Object-reference-not-set-to-an-instance-of-an-object/m-p/62039#M2299</link>
      <description>The most likely reason for the exception is that something in your code stage is null. Without seeing the code itself, it is hard to know where the issue would be.&lt;BR /&gt;&lt;BR /&gt;I would suggest executing the API call with a tool like Postman (&lt;A href="https://www.getpostman.com/" target="_blank" rel="noopener"&gt;https://www.getpostman.com/&lt;/A&gt;) first to make sure the API call you are creating works properly. Then try running the code you have written in Visual Studio. It is likely that Visual Studio will point out the same error and will reveal which line or object is the issue. When the code works in Visual Studio, you should be able to move it over to your Blue Prism Code Stage.&lt;BR /&gt;&lt;BR /&gt;Alternatively, depending on which version of Blue Prism you are using, you can use the Web API function to configure your REST API call (System &amp;gt; Objects &amp;gt; Web API Services). This would remove the need to use a code stage to execute API calls.&lt;BR /&gt;&lt;BR /&gt;Cheers.&amp;nbsp;&lt;A href="https://www.getpostman.com/" target="_blank" rel="noopener"&gt;&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Charles Kovacs&lt;BR /&gt;Developer Consultant&lt;BR /&gt;Blue Prism&lt;BR /&gt;America/Chicago&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Wed, 18 Sep 2019 17:39:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Getting-Object-reference-not-set-to-an-instance-of-an-object/m-p/62039#M2299</guid>
      <dc:creator>charliekovacs</dc:creator>
      <dc:date>2019-09-18T17:39:00Z</dc:date>
    </item>
    <item>
      <title>RE: Getting Object reference not set to an instance of an object when we invoke http request from BluePrism tool</title>
      <link>https://community.blueprism.com/t5/Digital-Exchange/Getting-Object-reference-not-set-to-an-instance-of-an-object/m-p/62040#M2300</link>
      <description>&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had similar issue. And problem appeared because bot user used to login to Windows, had temp windows profile.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&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;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Piotr Wieczerzak&lt;/SPAN&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>Tue, 05 Apr 2022 08:29:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Digital-Exchange/Getting-Object-reference-not-set-to-an-instance-of-an-object/m-p/62040#M2300</guid>
      <dc:creator>Piotr__Wieczerzak</dc:creator>
      <dc:date>2022-04-05T08:29:00Z</dc:date>
    </item>
  </channel>
</rss>

