Professional Documents
Culture Documents
In this Document
Symptoms
Cause
Solution
References
--------------------------------------------------------------------------------
This document is being delivered to you via Oracle Support's Rapid Visibility (RaV)
Rapid Visibility (RaV) process, and therefore has not been subject to an
independent technical review.
Creation of a discrete job for the same item in another organization may succeed.
CauseThe issue is most likely due to a missing routing revision record in the
MTL_RTG_ITEM_REVISIONS table. SolutionRun the following scripts to determine if you
have missing routing revision records.
To view a count of routings with missing routing revisions, run the following
query:
SELECT
mp.organization_code org,
count(*)
FROM
bom_operational_routings bor,
mtl_parameters mp,
mtl_item_flexfields mif
WHERE
bor.organization_id = mp.organization_id and
bor.organization_id = mif.organization_id and
bor.assembly_item_id = mif.inventory_item_id and
bor.alternate_routing_designator is null and
not exists
(select 'x' from MTL_RTG_ITEM_REVISIONS rrev
where rrev.inventory_item_id = bor.assembly_item_id and
rrev.organization_id = bor.organization_id)
GROUP BY mp.organization_code;
To view the detail for routings with missing routing revisions, run the following
query:
SELECT
mp.organization_code org,
mif.item_number item,
bor.alternate_routing_designator,
bor.organization_id,
bor.assembly_item_id,
bor.routing_sequence_id
FROM
bom_operational_routings bor,
mtl_parameters mp,
mtl_item_flexfields mif
WHERE
bor.organization_id = mp.organization_id and
bor.organization_id = mif.organization_id and
bor.assembly_item_id = mif.inventory_item_id and
bor.alternate_routing_designator is null and
not exists
(select 'x' from MTL_RTG_ITEM_REVISIONS rrev
where rrev.inventory_item_id = bor.assembly_item_id and
rrev.organization_id = bor.organization_id);
If a count greater than 0 is returned, please log a Service Request with Oracle
Support to obtain a data fix.
@ Note to Support:
@
@ The following data fix was provided in Bug.1981761 -
@ "MISSING ROUTING REVISIONS IN MTL_RTG_ITEM_REVISIONS AFTER UPGRADE 10.7 11I"@
This fix should be approved by Development.
@
@ -- INSERT 1 - create missing routing revision for a single routing
@ -- when prompted, enter the org code and item name of
@ -- one of the routings returned by the previously run
@ -- select query.
@ INSERT INTO mtl_rtg_item_revisions
@ (
@ inventory_item_id, organization_id, process_revision, last_updated_by,
@ last_update_date, created_by, creation_date, effectivity_date,
@ last_update_login, implementation_date
@ )
@ SELECT
@ bor.assembly_item_id, bor.organization_id, mp.starting_revision, 1,
@ bor.creation_date, 1, bor.creation_date, bor.creation_date, -1,@
bor.creation_date
@ FROM
@ bom_operational_routings bor,
@ mtl_parameters mp,
@ mtl_item_flexfields mif
@ WHERE
@ mp.organization_code = '&org' and
@ bor.organization_id = mp.organization_id and
@ bor.alternate_routing_designator is null and
@ bor.organization_id = mif.organization_id and
@ bor.assembly_item_id = mif.inventory_item_id and
@ mif.item_number = '&item' and
@ not exists ( select 'x' from MTL_RTG_ITEM_REVISIONS rrev
@ where rrev.inventory_item_id = bor.assembly_item_id and
@ rrev.organization_id = bor.organization_id);
@
@ -- INSERT 2 - create missing routing revisions for all routings having a missing
routing revision
@ INSERT INTO mtl_rtg_item_revisions
@ (
@ inventory_item_id, organization_id, process_revision, last_updated_by,
@ last_update_date, created_by, creation_date, effectivity_date,
@ last_update_login, implementation_date@ )
@ SELECT
@ bor.assembly_item_id, bor.organization_id, mp.starting_revision, 1,
@ bor.creation_date, 1, bor.creation_date, bor.creation_date, -1,@
bor.creation_date
@ FROM
@ bom_operational_routings bor,
@ mtl_parameters mp
@ WHERE
@ bor.organization_id = mp.organization_id and
@ bor.alternate_routing_designator is null and
@ not exists ( select 'x' from MTL_RTG_ITEM_REVISIONS rrev
@ where rrev.inventory_item_id = bor.assembly_item_id and
@ rrev.organization_id = bor.organization_id);
--------------------------------------------------------------------------------
Help us improve our service. Please email us your comments for this document. .