Pending transaction

2023-05-16

In this Document   Purpose   Last Review Date   Instructions for the Reader   Troubleshooting Details      

1. Pending WIP Material Transactions?      

2. Pending WIP Completion Transactions.      

3. Pending WIP Move Transactions

4. Pending WIP Resource Transactions?      

5. Pending Close Discrete Jobs ?     

6. Uncosted Transactions?   References

Oracle Work in Process - Version: 10.7.16.1 to 11.0.3 Information in this document applies to any platform. Checked for relevance on December 19, 2006 Appearance updated, no changes to technical content March 8, 2007

Purpose

These scripts are provided for Troubleshooting purposes only by Oracle Support Services. The scripts have been tested and work as intended. However, you should always test any script. before relying on it. Please proof read these scripts prior to running them! Due to differences in the way text editors, email packages and operating systems handle text formatting (spaces, tabs and carriage returns), these scripts may not be in an executable state when you first receive them. Check over the script. to ensure that errors of this type are corrected.

Last Review Date

December 19, 2006

Instructions for the Reader

A Troubleshooting Guide is provided to assist in debugging a specific issue. When possible, diagnostic tools are included in the document to assist in troubleshooting.

Troubleshooting Details

1. Pending WIP Material Transactions?

First check if the Inventory Transaction Manager is running and if there are any records pending or in error in the inventory transactions interface. These can be queried via the Inventory Transactions Interface Inquiry screen. Navigate Inventory/Transactions/Transaction Open Interface.

Records can be deleted and/or resubmitted with this form. Check Pending Transactions, Navigate Inventory/Transactions/Pending Transactions. Records can only be resubmitted via the form. If there are Pending Transactions that are stuck in the MTL_MATERIAL_TRANSACTIONS_TEMP table with transaction_type_id=5,(backflush/wip transactions)with proces_flag =E, they need to be submitted. To investigate why the Transactions are Failing, run the following SQL Script.:


select transaction_source_id , inventory_item_id, process_flag,
error_code, error_explanation,
transaction_source_type_id, organization_id
from mtl_material_transactions_temp
where process_flag = ?E?
and transaction_source_id= ;  

Use this script. to resubmit the Transactions:


update mtl_material_transactions_temp
set process_flag = 'Y',
lock_flag = 'N',
transaction_mode= 3,
error_code = NULL,
error_explaination = NULL
where process_flag = 'E'
and transaction_source_id= ;  

2. Pending WIP Completion Transactions.

There are 2 ways of performing Completion Transactions. In the WIP Move Transactions Form. ( Navigation -> WIP/Move Transactions/Move Transactions, Set Transaction Type to Complete). In the WIP Material Transaction Form. (Navigation -> WIP/Material Transactions/Completion Transactions) Records are created by doing a WIP Assembly Completion. They are Stuck in MTL_MATERIAL_TRANSACTIONS_TEMP Table. (Navigate -> Inventory/Transaction/Pending Transactions) for the error messages: Or run the following SQL script. To find the ORGANIZATION_ID run this script.

select organization_id, organization_code
from org_organization_definitions
where organization_name like 'xxx%'; ( xxx is organization name )  
To find the WIP_Entity_Id run this script.

select wip_entity_id
from wip_entities
where wip_entity_name = < Wip job or repetitive assembly>
and organization_id= 'xxx'; ( xxx is organization id )  

select error_code, error_explanation,lock_flag,
inventory_item_id, transaction_action_id,
transaction_source_type_id, process_flag,
organization_id
from mtl_material_transactions_temp
where organization_id =
and transaction_source_id = ;
( wip_entity_id is obtained from above SQL statement )  

3. Pending WIP Move Transactions

WIP_MOVE_TXN_INTERFACE: Contains information about the shop floor move transactions that need to be processed. To View the pending move transaction (Navigation -> WIP/Move Transactions/Pending Move Transactions.) Records can be updated, deleted, and resubmitted via the form. The Transaction Processing mode should be set to online processing. If there are any errored move Transactions in wip_move_txn_interface, then these Transactions must be resubmitted. Run the following scripts: To find how many rows are in Error:

select count(*)
from wip_move_txn_interface
where process_status = 3 ;  
To find how many rows are in Pending:

select transaction_id, wip_entity_id, process_phase, process_status, wip_entity_name
from wip_move_txn_interface
where process_status in (1,3)  
(Process Status = 1 indicates Pending, 3 indicates "Error" ) To find how many rows are in Error and What the messages are:

select error_message, error_column
from wip_txn_interface_errors
where request_id= 

( for the two that have a request id )  
Use this script. to update the Error Records:

update wip_move_txn_interface
set group_id=null,
request_Id = null,
process_status=1,
transaction_id=null
where transaction_id=;  

Restart the interface managers (Move and Cost Manager). Launch the Move Transaction Manager even if the TP:WIP Move Transaction Profile ption = on-line processing. (Navigation -> Inventory/Setup/Transactions/Interface Managers). Use the "Launch Manager" button under the special option on the tool bar.

4. Pending WIP Resource Transactions?

Do the following to re-submit ERRORED RESOURCE COST records; 1. Ensure that there is no (Resource) cost worker running. 2. Stop the (Resource) Cost Manager. 3. Take backup of this table WIP_COST_TXN_INTERFACE 4. To check for pending transactions, run the following SQL;


select transaction_id, request_id, group_id,
process_status , wip_entity_name
from wip_cost_txn_interface
where process_status in ( 1,3); ( process_status= 1 indicates 'Pending', 3 indicates 'Error' )  

5. Update the table.


update wip_cost_txn_interface
set group_id=NULL,
transaction_id = NULL,
process_status= 1 ( set it to Pending )
where process_status = 3; ( error records )  

6. Restart the (Resource) Cost Manager.

5. Pending Close Discrete Jobs ?

Go into SQL*Plus as apps user / and run the following sql script.:


wipcljob.sql  

Use this script. to Report a Range of Discrete Jobs for a specific Organization, that cannot be Closed Due to Pending Transactions against them. This is a sql script. which queries the database and generates output which shows the Transactions that are causing the problem. This script. ONLY identifies data, it does NOT update or correct any data. This script. can also be downloaded here; Pending Jobs SQL Scripts Note 106242.1 Make certain that no workers are running and the Cost Manager has been taken down when running the update scripts. In order for a job to be successfully closed, there must be NO Transactions for the job in WIP_MOVE_TXN_INTERFACE. If there are, then run the following script. Use this script. to Find Pending Rows:


select transaction_id, wip_entity_id, process_phase,
process_status, wip_entity_name
from wip_move_txn_interface
where process_status in (1,3); (process status = 1 indicates Pending, 3 indicates "Error" )

update wip_move_txn_interface
set group_id=null,
process_status=1,
transaction_id=null
where transaction_id=;  

There must be NO transactions for the job in WIP_COST_TXN_INTERFACE. WIP_COST_TXN_INTERFACE contains information about cost transactions that WIP needs to process.


select transaction_id, wip_entity_id,
process_phase, process _status
from wip_cost_txn_interface
where process_status in (1, 3);  

If there are transactions for the job, then run the following script.:


update wip_cost_txn_interface
set group_id=null,
process_status=1,
transaction_id=null
where transaction_id=;  

There must be no transactions for the job in MTL_MATERIAL_TRANSACTIONS_TEMP. The mtl_material_transactions_temp table is the Key for all material transactions. First make sure the Inventory Transaction Manager is running.


select transaction_source_id , inventory_item_id, process_flag,
error_code, error_explanation,
transaction_source_type_id, organization_id
from mtl_material_transactions_temp
where process_flag = ?E?
and transaction_source_type_id=5; ( 5 = Job/schedule )  

If there are transactions for the job in MTL_MATERIAL_TRANSACTIONS_TEMP then run the following script.:


update mtl_material_transactions_temp
set process_flag = 'Y',
lock_flag = 'N',
transaction_mode = 3,
error_code = NULL,
error_explanation = NULL
where organization_id =
and transaction_source_id = ;  

There must be NO uncosted transactions for the job in MTL_MATERIAL_TRANSACTIONS (WHERE COSTED_FLAG IN ('N', 'E'))


select request_id, costed_flag, transaction_id,
transaction_group_id, inventory_item_id, transaction_source_id
from mtl_material_transactions
where costed_flag in ('N', 'E')
and transaction_source_type_id=5
and organization_id = < org. id > ;  

Update the records for re-submission to the Cost Manager.


update mtl_material_transactions
set costed_flag = 'N',
request_id = NULL,
transaction_group_id = NULL,
error_code = NULL,
error_explanation = NULL
where costed_flag in ('N', 'E');  

Re-start the Cost Manager to run against this schema . If the above condition were satisfied, but the problem still occurs. CHANGE STATUS in WIP_DISCRETE_JOBS & DELETE FROM WIP_DJ_CLOSE_TEMP. 1. You need to make the changes with sqlplus. 2. You need to make sure the Status_type =5 in WIP_DISCRETE_JOBS to Complete, No charges allowed' 3. You need to delete all corresponding records in WIP_DJ_CLOSE_TEMP. To find any rows for the job:


select count (*) from wip_dj_close_temp
where wip_entity_id = < job's wip entity id>
and wip_entity_name = < job number > ;  

1. In WIP_entities table check the Entity_type ( 3 = Closed Discrete Job). 2. In Wip_discrete_jobs check the status_type (12 = Closed). Note: FILE: wiprsjob.sql This script. is used to reset Discrete Jobs that cannot be Closed due to Pending Transactions against them. This script. can be downloaded here;

RESET Pending Close Jobs SQL Script. Note 106245.1

6. Uncosted Transactions?

When Closing the Inventory Period End, you may receive a message saying that you cannot close the Period End because a specified number of Uncosted Transactions exist. This can happen when the Cost Manager job comes down or is taken down during run time, leaving some Transactions in an 'in between' state, with a request_id but costed_flag set to 'N'. In Standard Costing the error message is listed in the log file of the cost worker. However, In Average Costing the error is detailed in the MMT table itself (error_code, error_explanation). There must be NO Uncosted Transactions for the job in MTL_MATERIAL_TRANSACTIONS (WHERE COSTED_FLAG IN ('N', 'E'))


select request_id, costed_flag, transaction_id,
transaction_group_id, inventory_item_id, transaction_source_id
from mtl_material_transactions
where costed_flag in ('N', 'E')
and transaction_source_type_id=5
and organization_id = < org. id > ;  

(If this picks up any records - Uncosted Transactions exist). If this table has Uncosted Transactions that errored out then see the scripts provided. IMPORTANT: Ensure that your Cost Manager is NOT running against this Schema. Create a backup table for the records you are updating (always a good practice);


create table mtl_material_txn_bkup as
(select * from mtl_material_transactions
where costed_flag in ('N', 'E');  

Update the records for re-submission to the Cost Manager.


update mtl_material_transactions
set costed_flag = 'N',
request_id = NULL,
transaction_group_id = NULL,
error_code = NULL,
error_explanation = NULL
where costed_flag in ('N','E');  

Re-start the Cost Manager to run against this schema. To resolve any WIP Transactions:


select transaction_id, request_id, group_id,
process_status , wip_entity_name
from wip_cost_txn_interface
where process_status in ( 1,3) ;

(Process_status= 1 indicates 'Pending' 3 indicates "Error" ) (ie. only uncosted transactions exist in this table)  

To update the table :


update wip_cost_txn_interface
set request_id = null,
group_id = null,
process_status = 1
where process_status = 3;

(Process_status= ? ( 1 indicates 'Pending', 3 indicates "Error" )  

The next Cost Manager run should pick up the Transactions and Reprocess them. If the Transactions fail due to an ERROR condition ie. costed_flag = 'E'. then there are Pending Transactions in WIP_COST_TXN_INTERFACE where the process_status=1. The Cost Manager is active, but never selects these rows for processing. If you are using Average Costing, then verify that a Transaction has not errored out in MTL_MATERIAL_TRANSACTIONS. If a Transaction errored out there, other transactions will not be costed in WIP_COST_TXN_INTERFACE. If using Average Costing, then all transactions are processed sequentially. If one transaction errors out, then no further processing can be done. To determine if there is an errored transaction in MTL_MATERIAL_TRANSACTIONS use the following script.:


select request_id, costed_flag, transaction_id,
transaction_group_id, inventory_item_id, transaction_source_id
from mtl_material_transactions
where costed_flag in ('N', 'E')
and transaction_source_type_id=5
and organization_id = < org. id > ;  

To determine the error that has occured on this Transaction, reprocess it and look in the Cost Manager Log file for the error message. To Reprocess this Transaction:


update mtl_material_transactions
set costed_flag = 'N',
request_id = NULL,
transaction_group_id = NULL,
error_code = NULL,
error_explanation = NULL
where costed_flag is in ('N', 'E');
COMMIT;  

To view the Log File for the most Recent Cost Manager Run, use Sysadmin Responsibility and query up requests that begin Cost Manager%. Correct the error that occurs. Once this error has been properly addressed, the Cost Manager should then begin processing Transactions in WIP_COST_TXN_INTERFACE. Check for a need to increase the extent the tablespace and resubmit. A script. to check for max extent, invalid objects, and table space follows;


select owner,object_name, object_type
from all_objects
where status = 'INVALID';

select segment_name,tablespace_name,extents,max_extents
from dba_segments
where max_extents >5;  

1. Check the tablespace for the mtl_transaction_accounts. 2. Check if the Material Cost Transaction worker ( CMCMCW) is running .  

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16860121/viewspace-713363/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/16860121/viewspace-713363/

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

Pending transaction 的相关文章

  • [Eclipse]-Eclipse下导入外部jar包的3种方式

    Eclipse下导入外部jar包的3种方式 1 最常用的普通操作方式2 快速版的操作方式 用户Jar包式3 快速版的操作方式 文件夹导入式 1 最常用的普通操作方式 右击 项目 选择Properties xff0c 在弹出的对话框左侧列表中
  • 1.FFmpeg(Windows版)安装

    FFmpeg Windows版 官网下载与安装 1 FFmpeg官网 官网地址是 xff1a https ffmpeg org ffmpeg介绍 xff1a https www ffmpeg org about html 关于ffmpeg使
  • 19.Win10安装Linux(Ubuntu 20.04)双系统

    Win10安装Linux xff08 Ubuntu 20 04 xff09 双系统 1 电脑配置2 下载Ubuntu 系统镜像2 1官网地址2 2 阿里2 3 清华源 3 制作U盘启动盘3 1 UltraISO 下载地址3 2 Etcher
  • 22.Ubuntu出现“由于没有公钥,无法验证下列签名”

    由于没有公钥 xff0c 无法验证下列签名 1 无公钥错误2 输入命令导入公钥3 注意 1 无公钥错误 使用sudo apt update时出现以下错误 xff1a 我图中的公钥就是 xff1a 3B4FE6ACC0B21F32 xff08
  • 15. Java字符串操作(StringJoiner)

    字符串操作 xff08 StringJoiner xff09 1 StringJoiner2 在字符串拼接中体验下StringJoiner 3 StringJoiner构造方法4 StringJoiner成员方法5 练习6 总结 1 Str
  • 39.Java-interface接口

    interface接口 1 interface2 接口的定义和使用3 接口中成员的特点4 接口和类之间的关系5 实例6 接口中新增的方法6 1 JDK8以后新增2种方法6 1 1 允许在接口中定义默认方法6 1 2 允许在接口中定义静态方法
  • 修改工单号码的流水号

    The job number is defined by sequence WIP JOB NUMBER S in the database The WIP numbering also uses the prefix defined in
  • 40.java-单列集合Set(HashSet,LinkedHashSet,TreeSet)

    Set集合 1 Set集合特点2 Set集合实现类3 HashSet3 1 底层原理3 1 1 哈希表组成3 1 2 哈希值3 1 3 对象的哈希值特点 3 2 数据添加元素的过程3 3 HashSet的三个问题3 4 实例 xff1a 去

随机推荐

  • 41.Java单列集合LinkedList

    单列集合LinkedList 1 LinkedList集合2 源码3 ArrayList和LinkedList的区别 1 LinkedList集合 在许多情况下 xff0c ArrayList效率更高 xff0c 因为通常需要访问列表中的某
  • hiveh和presto中date_add

    日期增加函数 date add语法 hive gt select date add 2016 12 29 10 presto gt select date add day 1 TIMESTAMP 2014 03 08 09 00 00 ht
  • synchronized关键字

    https tech meituan com 2018 11 15 java lock html https juejin im post 5ae6dc04f265da0ba351d3ff https leejay top posts Sy
  • CAS

    一 CAS简介 比较并交换 compare and swap CAS xff0c 是原子操作的一种 xff0c 可用于在多线程编程中实现不被打断的数据交换操作 xff0c 从而避免多线程同时改写某一数据时由于执行顺序不确定性以及中断的不可预
  • 帧内预测

    转载于 xff1a https www cnblogs com charybdis p 6049108 html 为什么要有帧内预测 xff1f 因为一般来说 xff0c 对于一幅图像 xff0c 相邻的两个像素的亮度和色度值之间经常是比较
  • 找出数组中没有出现的最小正整数

    题目描述 xff1a 给定一个无序整型数组arr 找到数组中未出现的最小整数 例子 arr 61 1 2 3 4 return 1 arr 61 1 2 3 4 return 5 时间复杂度O n 空间复杂度O 1 解题思路 xff1a x
  • 公有云弹性IP的实现原理及优势

    原文链接 xff1a http news west cn 26218 html 在利用公有云服务部署我们的应用时 xff0c 为了访问到我们的服务器 xff0c 我们需要为我们的服务部署公网IP 公有云服务商除了可以为服务器提供固定的公网I
  • vim 怎么取消高亮 或取消选中状态

    原文链接 xff1a https blog csdn net weixin 40539892 article details 78946659 神操作 在vim中编写代码 xff0c 常常会遇到多行注释和取消注释的情况 xff0c 在VS中
  • 工单关联销售订单

    CREATE OR REPLACE TRIGGER CUX WIP DISCRETE JOBS BEFORE INSERT ON INV MTL RESERVATIONS FOR EACH ROW when NEW SUPPLY SOURC
  • P2P(Peer to Peer)对等网络

    P2P xff08 Peer to Peer xff09 对等网络 P2P技术属于覆盖层网络 Overlay Network 的范畴 xff0c 是相对于客户机 服务器 C S 模式来说的一种网络信息交换方式 在C S模式中 xff0c 数
  • JAVA四大域对象总结

    JAVA四大域对象总结 根据有作用范围由小到大 xff1a page 当前jsp页面 page域指的是pageContext request 一次请求 request域request HttpServletContext session 一
  • Java中如何判断两个对象是否相等

    如何判断两个对象相等 xff0c 这个问题实际上可以看做是如何对equals方法和hashcode方法的理解 从以下几个点来理解equals和hashCode方法 xff1a 1 equals的作用及与 61 61 的区别 2 hashco
  • nginx中的日志管理

    我们观察nginx的server段 可以看到如下类似信息 access log logs host access log main 这说明 该server 它的访问日志的文件是 logs host access log 使用的格式 main
  • 用SQL来校验证件号码是否合法

    正确时返回证件号 xff0c 错误时返回错误原因 select t centno xingming ZJHM FUNC AAC002 15 18 ZJHM from TABLEt where ZJHM lt gt FUNC AAC002 1
  • 微信聊天记录做成词云~

    最近快毕业了 xff0c 所以想把微信聊天记录全部导出 做成词云 然后寄给好友 xff0c 想想都很浪漫 xff0c 哈哈 先上词云结果图 xff08 结果图拿 三国演义 做的 xff0c 想啥呢 xff0c 我才不会把我的聊天记录发到网上
  • iOS collectionView添加头部底部view

    定义一个collectionview 创建colloectionview private func createCollectionView let layout 61 UICollectionViewFlowLayout layout s
  • UIBezierPath详解

    使用UIBezierPath类可以创建基于矢量的路径 xff0c 这个类在UIKit中 此类是Core Graphics框架关于path的一个封装 使用此类可以定义简单的形状 xff0c 如椭圆或者矩形 xff0c 或者有多个直线和曲线段组
  • 树莓派vnc连接

    网上大多数的树莓派连接都是采用tightvncserver xff0c 事实上刷入最新版的树莓派系统已经自带vnc 了 xff0c 不需要用那个tightvncserver了 xff0c 因为它用起来太不方便安装后还要设置自启动等等 xff
  • VSCode 编写C#代码有提示,但是没有报错

    使用VSCode去编写C 的时候 xff0c 突然遇到一个问题 xff1a 按道理这里的Demoalkdfljadflk是一个未定义的类 xff0c 应该会给红色的波浪线提示 xff0c 到这里没有 xff0c 同时代码不能跟踪进入到源码
  • Pending transaction

    In this Document Purpose Last Review Date Instructions for the Reader Troubleshooting Details 1 Pending WIP Material Tra