COGNOS开发常见错误总结

本文总结了Cognos使用过程中常见的错误及其解决办法,包括配置数据锁定、数据溢出、用户权限等问题,并提供了详细的步骤指导。

1、The configuration data is locked by another instance of cognos Configuration:?
启动Cognos Configuration 启动界面显示对话框提示:The configuration data is
locked by another instance of cognos Configuration:?
出现这个问题的一般原因是,有另外一个地方打开 cognos configuration 了,
cognos不让打开两个,所以cognos configuration 被锁住了。
解决方法:
1. 在cognos\c8\configuration目录下,找到cogstartup.lock文件,把这个文件删除。
2. 把cognos\c8\bin\jre\1.5.0\lib\ext 目录下的bcprov-jdk14-134.jar拷贝到了,
   java_home目录下的jre中。
3. 重启机器。
4. 如果你的电脑安装了360安全卫士的木马防火墙,一定要把它关了,
   因为它会把cognos configuration强行不正常的关闭。

来源:(http://blog.sina.com.cn/s/blog_5f36c7690100if23.html) - COGNOS开发常见错误总结_曾经Lv_新浪博客

2、PDS-PPE-0104
A record was rejected. An arithmetic overflow occurred. PDS-PPE-0104 A record was rejected. An arithmetic overflow occurred. (Data)
交叉表报数据溢出错误,原因是交叉表默认支持19位数,其中cognos配置默认小数位7为,小数点一位,因此整数最高位为11为,若数据量较大,就会报错误。
Cognos配置文件修改:
操作步骤:
1、将 c8_location/configuration/CQEConfig.xml.sample 文件复制到 c8_location/bin 并将其重命名为 CQEConfig.xml。
2、在编辑器中打开 c8_location/configuration/CQEConfig.xml。请确保您的编辑器支持以 UTF-8 格式保存文件。
3、找到“crosstabDecimalPrecision”参数并将该值减小到所需的小数精度。
4、保存 CQEConfig.xml 文件。
5、使用 Cognos Configuration,停止 Cognos 8 然后重新启动。修改字符集(注册表)
              <section name="ParameterMaps">
                     <map name="_governor" priority="90">
                            <!-- Description:  Specifies the number of digits after the decimal point that must be kept for a numeric value.  Default is 7.  -->
                            <entry name="crosstabDecimalPrecision" value="4"/>   <!--  默认是7 -->
                     <!-- -->
                     </map>
              </section>
3、RQP-DEF-0326
  不允许身份为“{All Authenticated Users, Everyone, Consumers, QueryUserClass_RCDT}”的用户使用自定义 SQL
  解决方案:administrator登陆Cognos Connection 进入安全-》功能,选择Report Studio,点击《用户定义的SQL》设置属性--》权限
  将 改写从父条目获取访问权限勾选上
4、UDA-SQL-0458 PREPARE
失败,因为此查询要求在本地处理数据。 尚未启用允许本地处理的选项。 UDA-SQL-0504 数据库不支持在 OLAP 函数规范中使用 DISTINCT 关键字。 此操作要求在本地处理数据。
  解决方案: 在Framework Manager 中的Project 中的 Data sources 的 Properties 中的Query Processing 设置为 limited local

5、UDA-SQL-0460
本地处理期间出现一般例外。 UDA-EE-0036 The operator must be an expression, not "<null>".
  解决方案:提示页传入的参数用cast转换,比如:cast(?统计月份? as varchar(6))
6、RQP-DEF-0103
 Cross joins are not permitted.
  Enable cross joins in the model
 解决方案:
 1. Open the model in Framework Manager.
 2. Click the "Project" menu, and then "Edit Governors..."
 3. Set "Cross-Product joins" to "Allow."
 4. Publish the package.
 5. The report should be able to be run without the cross join error now.

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值