<?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 VBA error in sandbox in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/VBA-error-in-sandbox/m-p/71083#M43750</link>
    <description>&lt;P&gt;This is really bizarre.&amp;nbsp; I have two Access applications running a test app and a client app.&lt;/P&gt;&lt;P&gt;In the test app, I have used the following to post a request and get a response, and it works fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test App&lt;BR /&gt;Post_URL: &lt;A href="https://test.authorize.net/gateway/transact.dll" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;&lt;BR /&gt;Post string:x_login=mylogin&amp;amp;x_tran_key=mykey&amp;amp;x_delim_data=TRUE&amp;amp;&lt;/P&gt;&lt;P&gt;x_delim_char=|&amp;amp;x_relay_response=FALSE&amp;amp;x_type=AUTH_CAPTURE&amp;amp;&lt;/P&gt;&lt;P&gt;x_method=CC&amp;amp;x_card_num=4111111111111111&amp;amp;x_exp_date=0320&amp;amp;&lt;/P&gt;&lt;P&gt;x_amount=608.78&amp;amp;x_description=My%20Client%20Name%20&amp;amp;&lt;/P&gt;&lt;P&gt;x_invoice_num=79012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code that actually posts this looks like:&lt;/P&gt;&lt;P&gt;Dim objRequest As New MSXML2.XMLHTTP&lt;BR /&gt;objRequest.Open "POST", TempVars!Post_Url, False&lt;BR /&gt;objRequest.send post_string&lt;BR /&gt;post_response = objRequest.responseText&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the response looks like:&lt;/P&gt;&lt;P&gt;1|1|1|This transaction has been approved.|0L2DGF|Y|60139380095|79012|My Client Name|608.76|CC|auth_capture|||||||||||||||||||||||||||P|2|||||||||||XXXX1111|Visa|||||||KUSP422B9Z14N6LIB9XSZ1F||||||||||&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I run basically this with basically an identical post string in the client application:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Client Name&lt;BR /&gt;URL: &lt;A href="https://test.authorize.net/gateway/transact.dll" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;&lt;BR /&gt;Post: x_login=mylogin&amp;amp;x_tran_key=mykey&amp;amp;x_delim_data=TRUE&amp;amp;&lt;/P&gt;&lt;P&gt;x_delim_char=|&amp;amp;x_relay_response=FALSE&amp;amp;x_type=AUTH_CAPTURE&amp;amp;&lt;/P&gt;&lt;P&gt;x_method=CC&amp;amp;x_card_num=4111111111111111&amp;amp;x_exp_date=0320&amp;amp;&lt;/P&gt;&lt;P&gt;x_amount=608.78&amp;amp;x_description=My%20Client%20Name%20&amp;amp;&lt;/P&gt;&lt;P&gt;x_invoice_num=04168&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get an error message: -2147467259 Unspecified error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the line of code that is highlighted, generating the error is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;objRequest.send post_string&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Invoice_Num value in both of these applications is based on:&lt;/P&gt;&lt;P&gt;x_invoice_num=" &amp;amp; URLEncode(Right(Timer * 100, 5))&lt;/P&gt;&lt;P&gt;to avoid duplicates&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code in the test application works fine, every time returning approved and unapproved messages depending on the values passed, but the client application is returning this error, every time it is run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am beyond frustrated!&lt;/P&gt;</description>
    <pubDate>Sun, 15 Mar 2020 18:02:52 GMT</pubDate>
    <dc:creator>dalefye1</dc:creator>
    <dc:date>2020-03-15T18:02:52Z</dc:date>
    <item>
      <title>VBA error in sandbox</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/VBA-error-in-sandbox/m-p/71083#M43750</link>
      <description>&lt;P&gt;This is really bizarre.&amp;nbsp; I have two Access applications running a test app and a client app.&lt;/P&gt;&lt;P&gt;In the test app, I have used the following to post a request and get a response, and it works fine:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Test App&lt;BR /&gt;Post_URL: &lt;A href="https://test.authorize.net/gateway/transact.dll" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;&lt;BR /&gt;Post string:x_login=mylogin&amp;amp;x_tran_key=mykey&amp;amp;x_delim_data=TRUE&amp;amp;&lt;/P&gt;&lt;P&gt;x_delim_char=|&amp;amp;x_relay_response=FALSE&amp;amp;x_type=AUTH_CAPTURE&amp;amp;&lt;/P&gt;&lt;P&gt;x_method=CC&amp;amp;x_card_num=4111111111111111&amp;amp;x_exp_date=0320&amp;amp;&lt;/P&gt;&lt;P&gt;x_amount=608.78&amp;amp;x_description=My%20Client%20Name%20&amp;amp;&lt;/P&gt;&lt;P&gt;x_invoice_num=79012&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code that actually posts this looks like:&lt;/P&gt;&lt;P&gt;Dim objRequest As New MSXML2.XMLHTTP&lt;BR /&gt;objRequest.Open "POST", TempVars!Post_Url, False&lt;BR /&gt;objRequest.send post_string&lt;BR /&gt;post_response = objRequest.responseText&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And the response looks like:&lt;/P&gt;&lt;P&gt;1|1|1|This transaction has been approved.|0L2DGF|Y|60139380095|79012|My Client Name|608.76|CC|auth_capture|||||||||||||||||||||||||||P|2|||||||||||XXXX1111|Visa|||||||KUSP422B9Z14N6LIB9XSZ1F||||||||||&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But when I run basically this with basically an identical post string in the client application:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Client Name&lt;BR /&gt;URL: &lt;A href="https://test.authorize.net/gateway/transact.dll" target="_blank"&gt;https://test.authorize.net/gateway/transact.dll&lt;/A&gt;&lt;BR /&gt;Post: x_login=mylogin&amp;amp;x_tran_key=mykey&amp;amp;x_delim_data=TRUE&amp;amp;&lt;/P&gt;&lt;P&gt;x_delim_char=|&amp;amp;x_relay_response=FALSE&amp;amp;x_type=AUTH_CAPTURE&amp;amp;&lt;/P&gt;&lt;P&gt;x_method=CC&amp;amp;x_card_num=4111111111111111&amp;amp;x_exp_date=0320&amp;amp;&lt;/P&gt;&lt;P&gt;x_amount=608.78&amp;amp;x_description=My%20Client%20Name%20&amp;amp;&lt;/P&gt;&lt;P&gt;x_invoice_num=04168&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get an error message: -2147467259 Unspecified error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the line of code that is highlighted, generating the error is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;objRequest.send post_string&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Invoice_Num value in both of these applications is based on:&lt;/P&gt;&lt;P&gt;x_invoice_num=" &amp;amp; URLEncode(Right(Timer * 100, 5))&lt;/P&gt;&lt;P&gt;to avoid duplicates&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code in the test application works fine, every time returning approved and unapproved messages depending on the values passed, but the client application is returning this error, every time it is run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am beyond frustrated!&lt;/P&gt;</description>
      <pubDate>Sun, 15 Mar 2020 18:02:52 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/VBA-error-in-sandbox/m-p/71083#M43750</guid>
      <dc:creator>dalefye1</dc:creator>
      <dc:date>2020-03-15T18:02:52Z</dc:date>
    </item>
  </channel>
</rss>

