<?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 DLL error The type initializer 'AFIPinvoice.AFIPparser' threw an exception in Product Forum</title>
    <link>https://community.blueprism.com/t5/Product-Forum/DLL-error-The-type-initializer-AFIPinvoice-AFIPparser-threw-an/m-p/61891#M15086</link>
    <description>&lt;P&gt;Hi all, we are using a C# DLL to parse a pdf invoice to a collection. In Dev an QA environment the parser works fine, but in producción we are getting this error:&lt;/P&gt;
&lt;P&gt;"ERROR: Internal : Could not execute code stage because exception thrown by code stage: The type initializer 'AFIPinvoice.AFIPparser' threw an exception".&lt;/P&gt;
&lt;P&gt;The prod environment is an exact copy of the QA environment, and we've checked that the .net libraries versions and the DLL files in prod are exactly the same as the files in DEV and QA.&lt;/P&gt;
&lt;P&gt;The dll file is located in the BP folder in prod.&lt;/P&gt;
&lt;P&gt;¿Do you have any clue about what could be the cause of this issue?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20964.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/21114i7761059F8475B2C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="20964.png" alt="20964.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ariel Albano&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
    <pubDate>Thu, 27 Oct 2022 12:33:00 GMT</pubDate>
    <dc:creator>ArielALBANO1982</dc:creator>
    <dc:date>2022-10-27T12:33:00Z</dc:date>
    <item>
      <title>DLL error The type initializer 'AFIPinvoice.AFIPparser' threw an exception</title>
      <link>https://community.blueprism.com/t5/Product-Forum/DLL-error-The-type-initializer-AFIPinvoice-AFIPparser-threw-an/m-p/61891#M15086</link>
      <description>&lt;P&gt;Hi all, we are using a C# DLL to parse a pdf invoice to a collection. In Dev an QA environment the parser works fine, but in producción we are getting this error:&lt;/P&gt;
&lt;P&gt;"ERROR: Internal : Could not execute code stage because exception thrown by code stage: The type initializer 'AFIPinvoice.AFIPparser' threw an exception".&lt;/P&gt;
&lt;P&gt;The prod environment is an exact copy of the QA environment, and we've checked that the .net libraries versions and the DLL files in prod are exactly the same as the files in DEV and QA.&lt;/P&gt;
&lt;P&gt;The dll file is located in the BP folder in prod.&lt;/P&gt;
&lt;P&gt;¿Do you have any clue about what could be the cause of this issue?&lt;/P&gt;
&lt;P&gt;Thanks!&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="20964.png"&gt;&lt;img src="https://community.blueprism.com/t5/image/serverpage/image-id/21114i7761059F8475B2C3/image-size/large?v=v2&amp;amp;px=999" role="button" title="20964.png" alt="20964.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Ariel Albano&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Oct 2022 12:33:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/DLL-error-The-type-initializer-AFIPinvoice-AFIPparser-threw-an/m-p/61891#M15086</guid>
      <dc:creator>ArielALBANO1982</dc:creator>
      <dc:date>2022-10-27T12:33:00Z</dc:date>
    </item>
    <item>
      <title>RE: DLL error The type initializer 'AFIPinvoice.AFIPparser' threw an exception</title>
      <link>https://community.blueprism.com/t5/Product-Forum/DLL-error-The-type-initializer-AFIPinvoice-AFIPparser-threw-an/m-p/61892#M15087</link>
      <description>Hello &lt;a href="https://community.blueprism.com/t5/user/viewprofilepage/user-id/1434"&gt;@ArielALBANO1982&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;I'd suggest wrapping your initialization code in a try...catch block and then checking to see if there are additional details in the exception message or possibly an inner exception message. Something I've seen on various occasions is a mismatch in some of the lower-level DLL versions (ex. System.Memory.dll, System.Buffers.dll, etc).&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Also, if your DLL is placed in the Blue Prism Automate folder, you don't need to provide the fully qualified path for the DLL declaration. The Automate folder is the root execution folder of the Automate.exe so it will automatically look for your DLL there.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;​&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;Eric Wilson&lt;BR /&gt;Director, Integrations and Enablement&lt;BR /&gt;Blue Prism Digital Exchange&lt;BR /&gt;------------------------------&lt;BR /&gt;</description>
      <pubDate>Thu, 27 Oct 2022 17:38:00 GMT</pubDate>
      <guid>https://community.blueprism.com/t5/Product-Forum/DLL-error-The-type-initializer-AFIPinvoice-AFIPparser-threw-an/m-p/61892#M15087</guid>
      <dc:creator>ewilson</dc:creator>
      <dc:date>2022-10-27T17:38:00Z</dc:date>
    </item>
  </channel>
</rss>

