You are on page 1of 4

APPLIES TO: Oracle Project Manufacturing - Version 11.5.10.2 to 12.1.3 [Release 11.5 to 12.

1] Information in this document applies to any platform.

GOAL Solving Error Code "TASK-RULE NOT FOUND(TASK_ID)" SOLUTION The Follow Scripts can be used to get the correct Project_ID and Task_ID for WIP Projects: 1) SELECT PJM_TASK_AUTO_ASSIGN.WIPMAT_TASK_WNPS( T.ORGANIZATION_ID , t.source_project_id , T.INVENTORY_ITEM_ID , :CATEGORY_ID_FROM_2_1 , T.SUBINVENTORY_CODE , 'COMPLETION' , decode(t.transaction_source_type_id, 5, t.transaction_source_id, null) , e.primary_item_id , O.STANDARD_OPERATION_ID , T.DEPARTMENT_ID ) SOURCE_TASK_ID, PJM_TASK_AUTO_ASSIGN.Inv_Task_WNPS( T.ORGANIZATION_ID , t.source_project_id , T.INVENTORY_ITEM_ID , e.primary_item_id , :CATEGORY_ID_FROM_2_1 , T.SUBINVENTORY_CODE ) TASK_ID FROM mtl_material_transactions t , wip_entities e , WIP_OPERATIONS O WHERE transaction_id in (40888051, 41742823) AND e.organization_id = t.organization_id AND e.wip_entity_id = t.transaction_source_id AND O.ORGANIZATION_ID (+) = T.ORGANIZATION_ID AND O.WIP_ENTITY_ID (+) = T.TRANSACTION_SOURCE_ID . 2) SELECT PJM_TASK_AUTO_ASSIGN.WIPMAT_TASK_WNPS( T.ORGANIZATION_ID , t.source_project_id , T.INVENTORY_ITEM_ID

, :CATEGORY_ID_FROM_2_2 , T.SUBINVENTORY_CODE , 'COMPLETION' , decode(t.transaction_source_type_id, 5, t.transaction_source_id, null) , e.primary_item_id , O.STANDARD_OPERATION_ID , T.DEPARTMENT_ID ) SOURCE_TASK_ID, PJM_TASK_AUTO_ASSIGN.Inv_Task_WNPS( T.ORGANIZATION_ID , t.source_project_id , T.INVENTORY_ITEM_ID , e.primary_item_id , :CATEGORY_ID_FROM_2_2 , T.SUBINVENTORY_CODE ) TASK_ID FROM mtl_material_transactions t , wip_entities e , WIP_OPERATIONS O WHERE transaction_id in (40888112, 41743654) AND e.organization_id = t.organization_id AND e.wip_entity_id = t.transaction_source_id AND O.ORGANIZATION_ID (+) = T.ORGANIZATION_ID AND O.WIP_ENTITY_ID (+) = T.TRANSACTION_SOURCE_ID SOLUTION: =========
Please perform the following on the TEST instance: 1. update mtl_material_transactions set error_code = NULL, error_explanation = NULL, source_project_id = &source_project_id source_task_id = &source_task_id task_id = &source_task_id pm_cost_collected = 'N', pm_cost_collector_group_id = NULL where transaction_id in (&transaction_id, &transaction_id); . 2. follow the instructions in note 422044.1 re-run the cost collection program

How To Reset Transactions That Have Erred in Project Cost Collection (Doc ID 422044.1)

To Bottom

Modified:04-Nov-2013

Type:HOWTO

In this Document Goal Solution

APPLIES TO: Oracle Project Manufacturing - Version 11.5.8 and later Information in this document applies to any platform. ***Checked for relevance on 04-NOV-2013*** GOAL After running the Cost Collection Manager program to transfer misc issues to Projects, some transactions were marked with pm_cost_collected = E. After fixing the reason for the error, how do I reset the transactions for processing again by the Cost Collector?

SOLUTION

1. Run the following scripts to reset the flags for the errored records: a) For Material Transactions: update mtl_material_transactions SET LAST_UPDATE_DATE = SYSDATE, LAST_UPDATED_BY = -6775937, LAST_UPDATE_LOGIN = -6775937, PROGRAM_APPLICATION_ID = -6775937, PROGRAM_ID = -6775937, PROGRAM_UPDATE_DATE = SYSDATE, PM_COST_COLLECTED = 'N', PM_COST_COLLECTOR_GROUP_ID =NULL, ERROR_CODE = NULL, ERROR_EXPLANATION = NULL WHERE PM_COST_COLLECTED = 'E'

and actual_cost <> 0 / COMMIT / b) For Resource/Overhead Transactions: DELETE WIP_TXN_INTERFACE_ERRORS WTIE WHERE WTIE.TRANSACTION_ID IN (SELECT WT.TRANSACTION_ID FROM WIP_TRANSACTIONS WT WHERE PM_COST_COLLECTED = 'E') / COMMIT / UPDATE WIP_TRANSACTIONS SET LAST_UPDATE_DATE = SYSDATE, LAST_UPDATED_BY = -6775937, LAST_UPDATE_LOGIN = -6775937, PROGRAM_APPLICATION_ID = -6775937, PROGRAM_ID = -6775937, PROGRAM_UPDATE_DATE = SYSDATE, PM_COST_COLLECTED ='N', PM_COST_COLLECTOR_GROUP_ID =NULL WHERE PM_COST_COLLECTED = 'E' / COMMIT / 2. Re-run the Cost Collection Manager concurrent program