录入预算报错时报错:

分析:这个错误是select into 语句返回多行的结果,但具体在哪?

两种方法查找,trace 或者debug

1.trace

启用调试

获取trace文件

-bash-3.2$ tkprof ERPDEV_ora_7532_RICK.trc $HOME/7532_rick.fchela.txt         



TKPROF: Release 11.2.0.2.0 - Development on Mon Jul 28 11:21:34 2014



Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.








分析trace文件

TKPROF: Release 11.2.0.2.0 - Development on Mon Jul 28 11:39:10 2014



Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.



Trace file: ERPDEV_ora_7532_RICK.trc

Sort options: default



********************************************************************************

count    = number of times OCI procedure was executed

cpu      = cpu time in seconds executing

elapsed  = elapsed time in seconds executing

disk     = number of physical reads of buffers from disk

query    = number of buffers gotten for consistent read

current  = number of buffers gotten in current mode (usually for update)

rows     = number of rows processed by the fetch or execute call

********************************************************************************



SQL ID: ga9j9xk5cy9s0 Plan Hash: 467424113



select /*+ index(idl_sb4$ i_idl_sb41) +*/ piece#,length,piece

from

idl_sb4$ where obj#=:1 and part=:2 and version=:3 order by piece#





call     count       cpu    elapsed       disk      query    current        rows

------- ------  -------- ---------- ---------- ---------- ----------  ----------

Parse        8      0.00       0.00          0          0          0           0

Execute      8      0.00       0.01          0          0          0           0

Fetch       22      0.01       0.15         12         66          0          14

------- ------  -------- ---------- ---------- ---------- ----------  ----------

total       38      0.01       0.17         12         66          0          14

...........

内容太多找不到出错点

用debug

分析保存时触发器执行顺序

(1)WHEN-V ALIDA TE-RECORD(将页面上的所有数据提交到数据库,若页面上有重复的数据,则提交

第一次时成功但只是将数据先写到数据库中一类似临时表的地方,在提交第二条重复记录的时候报错,执

行事务回滚,原来执行成功的指令也将被撤消)

(2) PRE-INSER T

(3) ON-INSER T

(4) POST-INSER T

(5) POST-FORMS-COMMIT

(6) PRE-BLOCK(BLOCK 级)

(7) KEY-COMMIT

(8) WHEN-NEW-ITEM-INST ANCE

做界面跟踪

好像是在WHEN-V ALIDA TE-RECORD 里面

备份AU_TOP下的fmb文件以及PA_TOP下的fmx文件

在form触发器里debug

发现不是 WHEN-V ALIDA TE-RECORD 里面

在pre-insert以及on-insert外层定位

FND_MESSAGE.DEBUG('validate');

matrix1.when_validate_record;

FND_MESSAGE.DEBUG('end validate');

FND_MESSAGE.DEBUG('on-insert');

matrix5.validate_resource_level;

FND_MESSAGE.DEBUG('on-insert -1');

matrix.insert_update_record;

FND_MESSAGE.DEBUG('end on-insert');



发现是在on-insert里面的matrix.insert_update_record;报错



做精确定位

if(:matrix_control.p1 is not null) then

--{



l_period_type_code    := null;

fnd_message.debug(' insert_update_record 3');

fnd_message.debug(' :matrix_control.p1 3:'||:matrix_control.p1);

select period_type_code into l_period_type_code

from pa_budget_periods_v where period_name = :matrix_control.p1;

fnd_message.debug(' insert_update_record 4');

找到问题,form被以前开发中修改过,取期间code时没加模块限制,返回多行数据



解决,加模块限制

--modify  by cxy 2014-07-28

select period_type_code into l_period_type_code

from pa_budget_periods_v where period_name = :matrix_control.p1

and period_type_m = 'PA Period';

PA模块报错-实际返回的行数超出请求的行数(分析标准FORM报错解决思路)的更多相关文章

  1. oracle:ORACLE 实际返回的行数超出请求的行数

    写的存储过程,执行后一直报实际返回的行数超出请求的行数的错误. 原因:select prdt_id into prdt_id from.... 两个变量名称相同造成的..哎  第一个变量换成大写..问 ...

  2. LoadXml 加载XML时,报错:“根级别上的数据无效。 行1,位置1“

    ==XML=================================== <?xml version="1.0" encoding="utf-8" ...

  3. MO拆分计划行程序中写入PRODUCTIONORDERS表数据出现重复导致报错(BUG)20180502

    错误提示:ORA-00001: 违反唯一约束条件 (ABPPMGR.C0248833319_6192)ORA-06512: 在 "STG.FP_MO_SPLIT", line 19 ...

  4. vs报错“以下文件中的行尾不一致,是否将行尾标准化”

    vs报错"以下文件中的行尾不一致,是否将行尾标准化" 分析: 通过读取源文件,发现换行都使用的是"\n"   Windows和Unix不同的标准引起的...即& ...

  5. C#操作FTP报错,远程服务器返回错误:(550)文件不可用(例如,未找到文件,无法访问文件)的解决方法

    最近在做项目的时候需要操作ftp进行文件的上传下载,但在调用using (var response = (FtpWebResponse)FtpWebRequest.GetResponse())的时候总 ...

  6. post数据时报错:远程服务器返回错误: (400) 错误的请求。

    网上查了多种方法,有不少说法,报400说是传的数据格式不对,最后的结论确实是数据格式不对. Content_Type为:application/json,配的数据格式有些麻烦,特别数多层,单层还好.例 ...

  7. linux 终端报错 Out of memory: Kill process[PID] [process name] score问题分析

    从Out of memory来看是内存超出了,后面的 Kill process[PID] [process name] score好像和进程有关了,下面我们就一起来看看linux 终端报错 Out o ...

  8. ObsoleteAttribute 可适用于除程序集、模块、参数或返回值以外的所有程序元素。 将元素标记为过时可以通知用户:该元素在产品的未来版本中将被移除。

    官方文档:https://msdn.microsoft.com/zh-cn/library/system.obsoleteattribute(v=vs.110).aspx 备注 ObsoleteAtt ...

  9. phpize命令在安装AMQP插件是报错phpize:Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF envir的解决方法

    phpize命令在安装AMQP插件是报错phpize:Cannot find autoconf. Please check your autoconf installation and the $PH ...

随机推荐

  1. javascript面向对象(给对象添加属性和方法的方式)

    1.在定义对象时,直接把属性和方法添加 <script type="text/JavaScript"> //给对象直接在定义时添加属性和方法         var g ...

  2. 如何在Eclipse中快速添加main方法

    在创建类时自动添加,只需要勾选"public static void main(String[]   args)"

  3. TortiseGit 添加SSH-Key

    TortoiseGit 使用扩展名为ppk的密钥,而不是ssh-keygen生成的rsa密钥.使用命令ssh-keygen -C "邮箱地址" -t rsa产生的密钥在Tortoi ...

  4. 31. Next Permutation(中等,搞清楚啥是 next permutation)

    Implement next permutation, which rearranges numbers into the lexicographically next greater permuta ...

  5. Unity使用C++作为游戏逻辑脚本的研究

    文章申明:本文来自JacksonDunstan的博客系列文章内容摘取和翻译,版权归其所有,附上原文的链接,大家可以有空阅读原文:C++ Scripting( in Unity) 一.C#和C++的通信 ...

  6. Junit 注解 类加载器 .动态代理 jdbc 连接池 DButils 事务 Arraylist Linklist hashset 异常 哈希表的数据结构,存储过程 Map Object String Stringbufere File类 文件过滤器_原理分析 flush方法和close方法 序列号冲突问题

    Junit 注解 3).其它注意事项: 1).@Test运行的方法,不能有形参: 2).@Test运行的方法,不能有返回值: 3).@Test运行的方法,不能是静态方法: 4).在一个类中,可以同时定 ...

  7. Java不走弯路教程(1.环境搭建)

    1.环境搭建在开始写第一个Java程序之前,我们需要做一些简单的准备工作. 1.1 还记得DOS吗 我们可以通过图形界面来操作我们的电脑.但作为程序员,你首先需要学会用命令行的方式来操作电脑,因为不是 ...

  8. Codeforces Round #305 (Div. 2) B. Mike and Fun 暴力

     B. Mike and Fun Time Limit: 20 Sec  Memory Limit: 256 MB 题目连接 http://codeforces.com/contest/548/pro ...

  9. Node.js 调试器

    稳定性: 3 - 稳定 V8 提供了强大的调试工具,可以通过 TCP protocol 从外部访问.Node 内置这个调试工具客户端.要使用这个调试器,以debug参数启动 Node,出现提示: % ...

  10. Docker 备份、恢复、迁移数据卷

    可以利用数据卷对其中的数据进行进行备份.恢复和迁移. 备份 首先使用 --volumes-from 标记来创建一个加载 dbdata 容器卷的容器,并从本地主机挂载当前到容器的 /backup 目录. ...