首页 \ 问答 \ 0x80040e51说明:“提供程序无法导出参数信息,并且尚未调用SetParameterInfo。”(0x80040e51 Description: “Provider cannot derive parameter information and SetParameterInfo has not been called.”)

0x80040e51说明:“提供程序无法导出参数信息,并且尚未调用SetParameterInfo。”(0x80040e51 Description: “Provider cannot derive parameter information and SetParameterInfo has not been called.”)

我正在尝试使用where子句执行对oracle的查询

BETWEEN date AND date2

第一轮研究表明,Oracle OLEDB提供程序不允许参数化查询,并且这些应该在变量中设置。 所以我创建了3个变量。 2来保存我正确填充的日期,并且一个保存查询,并且结尾的表达式为:

 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')"

当我在表达式构建器中单击“评估表达式”时,它会正确评估

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')

而且我能够使用其他工具成功地运行这个预测。

但是当我尝试运行包时,我收到:

[mySource 1 ]错误:SSIS错误代码DTS_E_OLEDBERROR。 发生了OLE DB错误。 错误代码:0x80040E51。 OLE DB记录可用。 来源:“OraOLEDB”Hresult:0x80040E51描述:“提供程序无法派生参数信息,并且尚未调用SetParameterInfo”。

mySource是OLE DB源的地方。 它的AccessMode被设置为“来自变量的SQL命令”并将SQLCommandVariable设置为我的查询变量。

我也尝试手动设置所有输出外部列,并更改我在查询中选择的一些值以抛弃oracle DATE数据类型:

to_char(PT.CREATED_DTTM,'DD/MM/YYYY HH:MI:SS AM')

对于SSIS我还是个新手,所以我甚至不确定我是否在正确的位置寻找这个错误的根源。 任何人有想法何去何从?

截图请求。 正如你可以看到“从变量”查询在预览模式下按预期工作,但是当我尝试执行它时,我得到错误。

控制流数据源调试错误


I am trying to execute a query against oracle with the where clause including

BETWEEN date AND date2

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:

 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')"

When I click "Evaluate Expression" in the expression builder, it evaluates correctly to

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')

And I am able to run this against oracle successfully using other tools.

But when I try to run the package, I receive:

[mySource 1] 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.".

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.

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:

to_char(PT.CREATED_DTTM,'DD/MM/YYYY HH:MI:SS AM')

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?

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.

Control Flow Data Source Debug error


原文:https://stackoverflow.com/questions/10416875
更新时间:2023-06-22 19:06

相关问答

更多
  • 我需要加载时编织,所以我必须为aspectjweaver和spring-instrument添加-javaagent ,并添加一个链接到我的@Aspect类的META-INF/aop.xml ,但只要我这样做,我就是允许做@Around("call(* org.mule.api.transport.MessageReceiver.routeMessage(org.mule.api.MuleMessage))")来获取Mule的调用。 I needed load-time-weaving, so I had ...
  • 这是Mule代码中的一个错误:我已经报告过,你可以跟踪MULE-8342 。 在此期间,您可以尝试以下方法: 如果您可以控制远程服务器,请在其多部分响应中添加Content-Disposition标头。 暂时使用http:outbound-endpoint代替http:request ,直到修复上述错误。 This is a bug in Mule's code: I've reported it as such, you can track MULE-8342. In the meantime, you ...
  • 问题是您正在使用Java类并在类中使用public static void main(String[] args) ,这就是它失败的原因,并且无法找到要调用的方法 您可以简单地使用smtp输出绑定,而不是使用Java文件并使其变得复杂:
  • 我解决了扩展类FileMessageReceiver并覆盖下面方法的问题 public void processFile(File file) throws MuleException { try { super.processFile(file); } catch (Exception e) { logger.info("Fail to read file " + e); } } 在我的连接器中,我添加了标签服务 - 覆盖属性messageRece ...
  • 我想知道哪些其他例外情况是不适宜的,或者与不良做法有关。 以下是您不应该捕捉的所有异常的列表: 任何你不知道如何处理的例外 以下是异常处理的最佳做法: 如果您不知道如何处理异常,请不要接收它。 这可能听起来很蹩脚,但它们都是正确的,这就是你需要知道的。 I would like to know which other exceptions are inadvisable to catch, or are associated with bad practices. Here is the list of a ...
  • 在流中配置默认异常策略应该允许您捕获异常(甚至是运行时异常)并处理它们。 有关详细信息,请阅读错误处理参考指南 。 Ok..i did some hit and trial and i figured out that When the Exception is thrown, an Exception Strategy is required like default-exception-strategy OR custom-exception-strategy is required, that wou ...
  • 你确定这个例外没有被捕获吗? catch-exception-strategy的默认行为是记录捕获的异常。 这就是您在日志中看到堆栈跟踪的原因。 对于mule 3.8及以上版本:您可以使用复选框( Log Exceptions )禁用/启用此行为: 或以XML格式( logException=false ):
  • 我认为这是系统异常的情况,其中没有创建可以被异常处理组件捕获的消息(请参阅系统与消息异常的Mule文档 )。 您可以尝试编写自定义消息接收器来覆盖processFile方法(请参阅此文章获取灵感),或者手动检查是否存在重复文件并使用单独的文件:outbound-endpoint来编写文件。 I think this is a case of a System Exception, where no message is created that could be caught by the exceptio ...
  • 我想清楚我的问题是什么:我使用了验证:所有组件,它只集合了所有不同验证器之间的所有消息,并抛出了一个有效忽略我的验证配置的messageException。 我的建议:避免使用所有验证器。 听起来不错,但是你失去了自定义的异常能力。 I figured out what my problem was: I was using the validation:all component, which just aggregated all of the messages between all of the d ...
  • Jersey组件需要绑定到http端点,因此不确定它是否可以在VM端点后面工作,因为传递传输障碍等时所有的http标头和请求信息都将丢失。您可以尝试将标头从入站复制到出站在vm调用之前,但仍不确定这是否有效。 The Jersey component needs to be bound to an http endpoint, so not sure it can work behind a VM endpoint as all the http header and request information ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。