壹佰网|ERP100 - 企业信息化知识门户

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 653|回复: 1

[财务] APP-SQLAP-10000: ORA-00001, Cannot create supplier

[复制链接]
发表于 2013/1/16 15:07:04 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。如果您注册时有任何问题请联系客服QQ: 83569622  。

您需要 登录 才可以下载或查看,没有帐号?注册

x
一个参考资料

Dear sir,

I'm having problem with error as below. Cannot create new supplier due to this error.

APP-SQLAP-10000: ORA-00001: unique constraint
(PO.PO_VENDORS_U1) violated occurred in
AP_VENDORS_PKG.INSERT_ROW <-APXVDMVD
with parameters (ROWID=, VENDOR_ID=1095)
while performing the following operation:
Insert in PO_VENDORS.


Action:

Reset the value of minimum value of sequence P)_VENDORS_S maximum value of vendor_id from
po_vendors table

1) Get value of following query":

select max(vendor_id) from po_vendors


If the value returned by this query is X

2) Get value of following query:

select PO_VENDORS_S.nextval from dual

If the value returned from this query is Y

3) Check X>Y+1 If yes then

drop sequence Po_Vendors_S;

create sequence Po_Vendors_S minvalue <replace this by X>;




The issue still not solved. Is there anything else that we can do to solve this issue?

Thank you
mish
 楼主| 发表于 2013/1/16 15:07:20 | 显示全部楼层
Hi Mish,

http://www.dba-oracle.com/sf_ora_00001_uni...nt_violated.htm

MetaLink offers information regarding trace files and ORA-00001applying to version 11.5.9 on all platforms. Here, it is commonly found that ORA-0001will be thrown when an item is being imported. Though ORA-00001 does not appear in the log file, neither is ORA-0001 appearing in MTL_INTERFACES_ERRORS, when the import complete the table is shown as failing upon enable INCOIN. ORA-0001 is shown in MTL_INTERFACES_ERRORS as err=1 ie unique constraint violated.

This signifies ORA-00001 because of an orphan record in the MTL_REVISIONS_INTERFACE table, perhaps because of an import program that has been run in the past. ORA-0001 is an issue here because upon inserting a new record in MTL_SYSTEM_ITEMS_INTERFACE the import inserts the record in MTL_REVISIONS_INTERFACE before to attempts passing the record to MTL_ITEM_REVISIONS_B via the MTL_REVISIONS_INTERFACE. Because SELECT via MTL_REVISIONS_INTERFACE fetch one or more records, due to orphan records, the INSERT fails, and ORA-0001 is thrown.

MetaLink advises that upon truncating MTL_REVISIONS_INTERFACE will take care of ORA-00001by using the instructions below:

Create table backup_<tarno> as select * from MTL_REVISIONS_INTERFACE
Truncate table MTL_REVISIONS_INTERFACE
Resubmit item for item import
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|手机版|壹佰网 ERP100 ( 京ICP备19053597号-2 )

Copyright © 2005-2012 北京海之大网络技术有限责任公司 服务器托管由互联互通
手机:13911575376
网站技术点击发送消息给对方83569622   广告&合作 点击发送消息给对方27675401   点击发送消息给对方634043306   咨询及人才点击发送消息给对方138011526

GMT+8, 2025/11/30 06:06 , Processed in 0.025605 second(s), 18 queries , File On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表