简体   繁体   English

编辑订阅时出现rsElementTypeMismatch错误

[英]rsElementTypeMismatch error When I Edit Subscription

I updated the scheduling options in Step 7 of a data-driven subscription. 我在数据驱动订阅的第7步中更新了计划选项。 The subscription did not execute at the specified time - no error message was displayed. 订阅未在指定的时间执行-没有显示错误消息。 When I clicked "Edit", the following message appears: 当我单击“编辑”时,出现以下消息:

"The value provided for the StartDateTime field is not valid for its type. It cannot be converted from a string value to the type that is required. (rsElementTypeMismatch)" “为StartDateTime字段提供的值对其类型无效。无法将其从字符串值转换为所需的类型。(rsElementTypeMismatch)”

I have since run the subscription directly from its SQL Agent job. 此后,我直接从其SQL Agent作业运行预订。 The dates and times in the job are valid. 作业中的日期和时间有效。

Searching on "rsElementTypeMismatch" has not proven useful - I have reviewed most MSDN pages, MSSQLTIPS, etc. related to this error but they do not allow me to edit the actual subscription. 在“ rsElementTypeMismatch”上搜索没有被证明有用-我已经查看了大多数与该错误相关的MSDN页面,MSSQLTIPS等,但它们不允许我编辑实际的订阅。

StartDateTime does not exist within the report, datasets or underlying SQL code. StartDateTime在报表,数据集或基础SQL代码中不存在。 Nor can I find it as a column within the ReportServer tables. 我也找不到它作为ReportServer表中的一列。

Any suggestions on some useful info related to "rsElementTypeMismatch" or the error in general would be greatly appreciated. 任何有关“ rsElementTypeMismatch”或该错误的有用信息的建议,将不胜感激。

Using SSRS 2008 R2. 使用SSRS 2008 R2。

Thank you 谢谢

I have had a similar problem myself, and from the research I have done it appears to be a mismatch between the locality settings of the PC (Internet Explorer), from which the report is run from, the server on which SSRS is installed or the Database server that the data is pulled from. 我本人也遇到过类似的问题,根据我所做的研究,它似乎是从中运行报告的PC(Internet Explorer)的本地设置,安装了SSRS的服务器或从中提取数据的数据库服务器。

In my instance a server upgrade had been carried out and one server had a locality set as English (Which is American English), and the remainder where British English. 在我的实例中,已经执行了服务器升级,并且一台服务器的位置设置为英语(这是美国英语),其余设置为英国英语。

This error is to do with the way each locality deals with dates. 此错误与每个地区处理日期的方式有关。 America language shows dates as MM/DD/YYYY, while British Language shows dates as DD/MM/YYYY. 美国语言将日期显示为MM / DD / YYYY,而英国语言将日期显示为DD / MM / YYYY。

Applications wont allow for example the 30th day to be a month, so it throws it out. 应用程序不允许将30日定为一个月,因此将其排除在外。

I was unable to edit the subscription and had to recreate it from scratch. 我无法编辑订阅,不得不从头开始重新创建。

The StartDateTime Field you are receiving the error on, may be on the actual report or within a parameter on the report. 您正在接收错误的StartDateTime字段可能在实际报告中,也可能在报告的参数中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM