最具影响力的数字化技术在线社区

168主编 发表于 2017-5-17 18:17:17

常见的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 local5、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.
页: [1]
查看完整版本: 常见的cognos错误以及解决办法