Note that there are some explanatory texts on larger screens.

plurals
  1. PO0x80040e51 Description: "Provider cannot derive parameter information and SetParameterInfo has not been called."
    primarykey
    data
    text
    <p>I am trying to execute a query against oracle with the where clause including </p> <pre><code>BETWEEN date AND date2 </code></pre> <p>First round of research shows that the oracle OLEDB provider does not allow for parameterized queries, and these should be set in variables. So I have created 3 variables. 2 to hold my dates that are populated correctly, and one to hold the query with the expression ending in: </p> <pre><code> BETWEEN to_date('" + (DT_WSTR, 30)@[User::lastRun] + "','DD/MM/YYYY HH:MI:SS AM') AND to_date('" + (DT_WSTR, 30) @[User::thisRun] + "','DD/MM/YYYY HH:MI:SS AM')" </code></pre> <p>When I click "Evaluate Expression" in the expression builder, it evaluates correctly to</p> <pre><code>BETWEEN to_date('1/1/1900','DD/MM/YYYY HH:MI:SS AM') AND to_date('1/1/2010','DD/MM/YYYY HH:MI:SS AM') </code></pre> <p>And I am able to run this against oracle successfully using other tools.</p> <p>But when I try to run the package, I receive:</p> <blockquote> <p>[mySource <a href="https://i.stack.imgur.com/0PjKy.png" rel="nofollow noreferrer">1</a>] Error: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80040E51. An OLE DB record is available. Source: "OraOLEDB" Hresult: 0x80040E51 Description: "Provider cannot derive parameter information and SetParameterInfo has not been called.".</p> </blockquote> <p>Where mySource is the OLE DB Source. It has it's AccessMode set to "SQL Command From Variable" and SQLCommandVariable set to my query variable.</p> <p>I also tried manually setting all of the Output external columns, and changing some of the values I was selecting in the query to cast away the oracle DATE datatype: </p> <pre><code>to_char(PT.CREATED_DTTM,'DD/MM/YYYY HH:MI:SS AM') </code></pre> <p>I'm still pretty new to SSIS, so I am not even sure I am looking in the correct place for the root of this error. Anyone have ideas where to go from here?</p> <p>Screenshots as requested. As you can see the "from variable" query works as expected in preview mode, but when I try to execute it I get the error.</p> <p><img src="https://i.stack.imgur.com/0PjKy.png" alt="Control Flow"> <img src="https://i.stack.imgur.com/sMv3l.png" alt="Data Source"> <img src="https://i.stack.imgur.com/s5yGa.png" alt="Debug error"></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload