Rave 报告主详细信息给出 evariantoverflowerror
我有一个使用主查询和子查询的报告 - 主查询在分组依据中选择三个字段:billstatus、oscategory(服务器或工作站)和组名
子查询从同一视图中选择一堆信息,没有分组依据。
我使用 rave 向导创建了一个主详细信息报告,在组名和类别上链接父级和子级。
我过去对许多报告都这样做过...但是这个让我很舒服...
查询将毫无问题地打开,我可以使用 F9 在 Rave 中预览报告 - 但是当我尝试运行程序时生成报告,它给我以下错误: 带有消息“将类型(十进制)的变体转换为类型(货币)时溢出”的类 EVariantOverflowError。
我在选择列表中没有小数值,但是,查询确实使用了几个参数:groupname、DateStart 和 DateEnd
此时任何想法都会有所帮助,因为当我设置时,我什至无法运行没有字段的报告它作为主/细节与两个查询
master:
SELECT groupname, oscategory, billstatus
FROM MyView
WHERE groupname = :groupname
AND lastcheckin >= :StartDate
AND firstcheckin < :EndDate
AND BillStatus <> 'Do Not Bill'
GROUP BY groupname, oscategory, billstatus
child:
SELECT machine_groupid, agentguid, machName, groupname, firstcheckin, lastcheckin, currentuser, lastloginname, lastreboot, agentversion, contactname, contactemail,
contactphone, contactnotes, enabletickets, enableremotecontrol, enablechat, loginname, credentialname, primarykserver, secondarykserver, quickcheckinsecs, agenttempdir,
manufacturer, productname, machineversion, sysserialnumber, chassisserialnumber, chassisassettag, busspeed, maxmemorysize, maxmemoryslots, chassismanufacturer,
chassistype, chassisversion, motherboardmanufacturer, motherboardproductcode, motherboardversion, motherboardserialnumber, computername, subnetmask,
defaultgateway, dnsserver1, dnsserver2, dnsserver3, dnsserver4, dhcpenabled, dhcpserver, winsenabled, primarywinsserver, secondarywinsserver, connectiongatewayip,
ostype, osinfo, majorversion, minorversion, macaddr, loginnamemach, billstatus, oscategory, cpudesc, cpuspeed, cpucount, totalram,
(manufacturer + ' ' + LTRIM(RTRIM(productname))) as displaypc,
('CPU/Memory: ' + CONVERT(varchar(10), cpuspeed) + ' MHZ x ' + CONVERT(varchar(10), cpucount) + ' / ' + CONVERT(varchar(10), totalram) + ' Mb') as cpuspecs,
(ostype + ' ' + osinfo) as osdisplay,
(cpudesc + '/' + maxmemorysize + ' x ' + maxmemoryslots) as memorydisplay,
('Ip Address: ' + ipaddress) as ipinformation
FROM MyView
WHERE groupname = :groupname
and machName is not null
AND lastcheckin >= :StartDate
AND firstcheckin < :EndDate
AND BillStatus <> 'Do Not Bill'
I have a report that uses a master and a child query - the master selects three fields in a group by: billstatus, oscategory(server or workstation) and groupname
The child query selects a bunch of information from the same view with no group by.
I used the rave wizard to create a master detail report, linking the parent and child on groupname and oscategory.
I have done this for many reports in the past... but this one is giving me fits...
The queries will open without a problem, I can preview the report in Rave using F9 - but when I try to RUN the program to generate the report, it gives me the following error:
class EVariantOverflowError with message 'Overflow while converting variant of type (Decimal) into type (Currency).
I have no decimal values in the select list, however, the queries do use a couple of parameters: groupname, DateStart, and DateEnd
Any ideas would be helpful at this point as I can't even run the report with no fields when I set it up as master/detail with the two queries
master:
SELECT groupname, oscategory, billstatus
FROM MyView
WHERE groupname = :groupname
AND lastcheckin >= :StartDate
AND firstcheckin < :EndDate
AND BillStatus <> 'Do Not Bill'
GROUP BY groupname, oscategory, billstatus
child:
SELECT machine_groupid, agentguid, machName, groupname, firstcheckin, lastcheckin, currentuser, lastloginname, lastreboot, agentversion, contactname, contactemail,
contactphone, contactnotes, enabletickets, enableremotecontrol, enablechat, loginname, credentialname, primarykserver, secondarykserver, quickcheckinsecs, agenttempdir,
manufacturer, productname, machineversion, sysserialnumber, chassisserialnumber, chassisassettag, busspeed, maxmemorysize, maxmemoryslots, chassismanufacturer,
chassistype, chassisversion, motherboardmanufacturer, motherboardproductcode, motherboardversion, motherboardserialnumber, computername, subnetmask,
defaultgateway, dnsserver1, dnsserver2, dnsserver3, dnsserver4, dhcpenabled, dhcpserver, winsenabled, primarywinsserver, secondarywinsserver, connectiongatewayip,
ostype, osinfo, majorversion, minorversion, macaddr, loginnamemach, billstatus, oscategory, cpudesc, cpuspeed, cpucount, totalram,
(manufacturer + ' ' + LTRIM(RTRIM(productname))) as displaypc,
('CPU/Memory: ' + CONVERT(varchar(10), cpuspeed) + ' MHZ x ' + CONVERT(varchar(10), cpucount) + ' / ' + CONVERT(varchar(10), totalram) + ' Mb') as cpuspecs,
(ostype + ' ' + osinfo) as osdisplay,
(cpudesc + '/' + maxmemorysize + ' x ' + maxmemoryslots) as memorydisplay,
('Ip Address: ' + ipaddress) as ipinformation
FROM MyView
WHERE groupname = :groupname
and machName is not null
AND lastcheckin >= :StartDate
AND firstcheckin < :EndDate
AND BillStatus <> 'Do Not Bill'
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是我的日期格式 - 我使用的是 StartOfTheMonth 函数,它返回扩展值而不是日期值。我在函数周围添加了一个 'DateOf() ,一切正常,
谢谢大家:-)
It was my date formatting - I was using the StartOfTheMonth function which returns an extended value instead of a date value. I added a 'DateOf() around the function and everything worked nicely
Thanks all :-)