Troubleshooting Oracle ASCP
Troubleshooting Oracle ASCP
ASCP Error
1. Failed attempt to lock : LOCK TABLE MSC_BOMS PARTITION (BOMS_21) IN EXCLUSIVE MODE
NOWAIT
ORA-02149: Specified partition does not exist
Cause: FDPSTP failed due to ORA-02149: Specified partition does not exist
ORA-06512: at "SYSTEM.AD_DDL", line 165
ORA-06512: at "APPS.MSC_MANAGE_PLAN_PARTITIONS", line 371
ORA-14074: partition bound must collate higher than th
1. In this example the plan partition which has become corrupt has plan_id = 999999 as the
error showed the partitioned table having the issue was WO_SUB_COMP_999999
3. Drop the plan partition having the issue with the Drop Partition concurrent request
4. Create a new plan partition with the Create Partition concurrent request
Set the profile option MSC: APCC Category Set 1 to a valid category
Staging tables' data is not collected. Please submit the request - Planning ODS LOAD.
The most likely cause is that a previous run of collections has failed before completing. To
resolve this:
1) Access Advanced Planning Administrator responsibility and run the concurrent program
Planning Data Pull Purge Staging Tables and run for the instance and set Validation to No.
2) Once this has completed please run the ASCP Standard Collection again and you will see
that it will no longer fail for this error.
Cause: Planning data collection has run more than defined timeout parameter.
Cause: mrfgrq_flush_demands failed due to ORA-01830: date format picture ends before
converting entire input string
14. Launch supply chain planning process: Loader Worker With Direct Load Option
16. Create instance in APS destination with decentralized implementation failed with message:
Currently installed/licensed options of Advanced Supply Chain Planning product do not
allow Distributed Instances. Please consult the implementation guide and upgrade notes for
detail
Solution:
On the APS destination, you should set profile GMP: APS Installation Level = 3
IF the EBS Source is R12.0 or 12.1 or higher, then you also need to set this profile on the EBS
source instance as well.
IF the EBS source is 11.5.10, then this profile should not be required.
Reference: Currently Installed/Licensed Options Of Ascp Product Do Not Allow Distributed
Instances (Doc ID 1188082.1)
ASCP 1
User: MII.ASCP us
ASCP 2
User: MII.ASCP
us
Solusi:
Recompile invalid object dan buat user khusus untuk destination (planning) instance ke
source instance (user antara destination dengan source harus sama). Refresh collection
snapshot dilakukan menggunakan user tersebut
ASCP 1
User1: MII.ASCP us
User: MII.ASCP2
22. Launch Plan (production plan) (from EBS source, decentralized environment)
us
APP-FND-01564: ORACLE error 1854 in mrfgrq_flush_demands
Cause: mrfgrq_flush_demands failed due to ORA-01854: julian date must be between 1 and
5373484
*kasus: Production plan dan baru ada perubahan dblink
Diketahui terdapat 3 invalid object di MSC_DEMAND
Cause:
The issue is caused by the following setup: executable MSONEW was not relinked.
This issue is described in: Bug 2174505 MEMORY BASED PLANNER: APP-FND-1564: ORACLE
ERROR 1854 IN MRFGRQ_FLUSH_DEMANDS
Solution:
Please recompile all MSC/MSO invalid objects if there are any.
Please do the followings successfully to relink the executable again and retest:
adrelink.sh force=y "mso MSONEW"
Important: Users should also relink all MSC/MSO/MSR executables with Adadmin to
make sure all executables are relinked properly.
Re-run the plan
24. Refresh collection snapshot in source instance is end with error neither standard collection is
destination instance
Error:
21-FEB 15:57:53 : ORA-12537: TNS:connection closed
21-FEB 15:57:53 : Error_Stack...
21-FEB 15:57:53 : ORA-12537: TNS:connection closed
Root cause: New destination instance created and have same instance name
ASCP 1
User: MII.ASCP us
ASCP 2
Instance: ADF
us
Solution:
Drop ASCP 2 instance which have same name with ASCP 1 instance and create new
instance in ASCP 2 with different name
ASCP 1
User1: MII.ASCP us
Instance: ADI
us
27. Refresh Collection Snapshot (in source instance, MSC: Source Setup Required : Y)
Error: User defined exception
Solution: Set Profile option Concurrent: Sequential Requests to No
Reference: Doc ID 1297393.1
28. Gather Schema Statistic Error
Error:
Error #1: ERROR: While GATHER_TABLE_STATS:
object_name=MSC.OPERATION_RESOURCES_ADF***ORA-20000: Unable to analyze TABLE
"MSC"."OPERATION_RESOURCES_ADF", insufficient privileges or does not exist***
Error #2: ERROR: While GATHER_TABLE_STATS:
object_name=MSC.OPERATION_RESOURCE_SEQS_ADF***ORA-20000: Unable to analyze
TABLE "MSC"."OPERATION_RESOURCE_SEQS_ADF", insufficient privileges or does not exist***
dan tabel2 yang lain
32. Launch Plan error Loader Worker With Direct Load Option
value used for ROWS parameter changed from 1000 to 22
Record 1: Rejected - Error on table "MSC"."MSC_SYSTEM_ITEMS#".
ORA-14400: inserted partition key does not map to any partition
Solution : If the setup of the profile MSC:Share Plan Partitions to Yes is required for business
reason then ensure that the partitions are correctly created.Basically for this setup we need to have
the _999999 partition exist.So if the partition does not exist just create partition using the request
"Create APS Partition" with Plan = 1 with the profile MSC:Share Plan Partitions set to Yes so that it
creates the necessary _999999 partitions.
Doc. ID : MSCPLD Loader Worker Fails With ORA-14400 (Doc ID 960022.1)
33. FORMULA, RECIPES NOT COLLECTED TO ASCP 12.24 IN STANDARD COLLECTION
Solution : Run this query to define which recipes are still un-collected
select *
from GMD_RECIPE_ROUTING_STEPS
where recipe_id in
(select recipe_id
from gmd_recipe_validity_rules
where recipe_validity_rule_id = < recipe_validity_rule_id from 2) above>)
Try to create production batch with one of those above items. If any error appears as screen below :
Solution :
Doc ID 552415.1
Then, create APS Partition:
- Plan partition count = 5
- Instance partition count = 1
36. Running Collection Error in Planning ODS Load Error
ORA-14098: index mismatch for tables in ALTER TABLE EXCHANGE PARTITION.
Fatal Error in Exchange Partition
Solution :
Diagnostics Steps R.12.x :
A> LOOKUP VALUE ISSUE - This must be checked and if any corrections are required, then fix the
lookup, then find all the problem indexes in one SQL
1. The lookup MSC_ODS_TABLE may have bad records with meaning and description having an
appended value of (1)
NAV: Advanced Planning Administrator / Admin / Lookups and query on MSC_ODS_TABLE
Easiest way to check the lookup values is to export the lookup values using /file/export and
open the .tsv file in Excel and review the results
2. For this lookup there should be only one row for each table and none of them should have
(1) appended to the name.
3. When table lookup is corrected, then we can see which tables have missing indexes and fix
these tables
4. After the object is recreated, please run the Data Collections process again to verify that the
object(s) were created successfully
Cause :
The Planning Manager wasn't running, thereby causing the purchase orders not to get collected.
In the view MRP_AP_PO_PO_SUPPLY_V the missing PO is seen. This is the view on the source that is
selected from to populate the MSC_ST_SUPPLIES and subsequently the MSC_SUPPLIES table.
The query used to insert data into MSC_ST_SUPPLIES from MRP_AP_PO_PO_SUPPLY_V has the
following
WHERE clause:
The value :v_mps_consume_profile_value refers to the profile MRP: Consume MPS. If this value is
set to Yes, then the data collection is concerned with the columns MRP_TO_ORGANIZATION_ID and
MRP_DESTINATION_TYPE_CODE in
MRP_AP_PO_PO_SUPPLY_V. These columns should be populated by the Planning Manager.
Solution :
To implement the solution, please execute the following steps:
This will populate the MRP_ columns in the PO tables and allow for the POs to be included in the
MRP_AP_PO_PO_SUPPLY_V and subsequently get collected.
From there, the POs will be included as supply in the ATP check.
Also on the source instance, if you set profile MRP:Consume MPS from Yes to No, the Planning
Manager does not need to be running and the purchasing data will be collected by data collections
and thus will be picked up by ATP and ASCP plan. Note 790125.1 has a discussion on when the
planning manager should be running when using VCP/ASCP products
Solution :
This can result in a number of ORA errors in the MSCCRPAR - Create APS Partitions and Data Collection
process ORA-02149 and ORA-14074 have been observed
Symptomps
Due to the different order that setup steps that can be run by the customer, this issue can
encountered at many different times and cause different failures.
Failure Conditions:
Workaround
SQL #1
select table_name,
partition_name
from all_tab_partitions
where table_name like 'MSC_NET_RES_INST%'
OR table_name like 'MSC_SYSTEM_ITEMS%'
order by substr(partition_name,instr(partition_name,'_',-1,1)+1);
SQL #2
select table_name,
partition_name
from all_tab_partitions
where table_name like 'MSC_RESOURCE_INSTANCE_REQS%'
OR table_name like 'MSC_SYSTEM_ITEMS%'
order by substr(partition_name,instr(partition_name,'_',-1,1)+1);
You will see that we have some partitions with __n <double underscore_number> AND some partitions
with _n <single underscore_number> This is normal.
Double__Underscore partitions will store data collected from other applications, while
Single_Underscore partitions store data created by the Planning Applications. See Note 137293.1 for
more information
MSC_SYSTEM_ITEMS
TABLE_NAME PARTITION_NAME
MSC_SYSTEM_ITEMS SYSTEM_ITEMS_0
MSC_NET_RES_INST_AVAIL NET_RES_INST_AVAIL_0
MSC_SYSTEM_ITEMS SYSTEM_ITEMS__1
MSC_SYSTEM_ITEMS SYSTEM_ITEMS_1
MSC_SYSTEM_ITEMS SYSTEM_ITEMS_2
MSC_NET_RES_INST_AVAIL NET_RES_INST_AVAIL__21
MSC_SYSTEM_ITEMS SYSTEM_ITEMS_3
MSC_SYSTEM_ITEMS SYSTEM_ITEMS_4
MSC_SYSTEM_ITEMS SYSTEM_ITEMS_5
MSC_NET_RES_INST_AVAIL NET_RES_INST_AVAIL_999999
You will see that we have some partitions with __n <double underscore_number> AND some partitions
with _n <single underscore_number> This is normal.
Double__Underscore partitions will store data collected from other applications, while
Single_Underscore partitions store data created by the Planning Applications. See Note 137293.1 for
more information
TABLE_NAME PARTITION_NAME
MSC_SYSTEM_ITEMS SYSTEM_ITEMS_0
MSC_NET_RES_INST_AVAIL NET_RES_INST_AVAIL_0
MSC_SYSTEM_ITEMS SYSTEM_ITEMS__1
MSC_NET_RES_INST_AVAIL NET_RES_INST_AVAIL__1
MSC_SYSTEM_ITEMS SYSTEM_ITEMS_1
MSC_NET_RES_INST_AVAIL NET_RES_INST_AVAIL_1
MSC_SYSTEM_ITEMS SYSTEM_ITEMS_2
MSC_NET_RES_INST_AVAIL NET_RES_INST_AVAIL_2
MSC_SYSTEM_ITEMS SYSTEM_ITEMS_3
MSC_NET_RES_INST_AVAIL NET_RES_INST_AVAIL_3
MSC_SYSTEM_ITEMS SYSTEM_ITEMS_4
MSC_NET_RES_INST_AVAIL NET_RES_INST_AVAIL_4
MSC_SYSTEM_ITEMS SYSTEM_ITEMS_5
MSC_NET_RES_INST_AVAIL NET_RES_INST_AVAIL_5
2. You need to remove the bad partitions - By running Drop Partition - we will remove the bad
partitions.
STEPS FOR MSC_NET_RES_INST_AVAIL
We need to remove NET_RES_INST_AVAIL_999999 and NET_RES_INST_AVAIL__21
From Advanced Planning Administrator - use /view /requests - submit a new request
A> Run Drop Partition with parameters
-- Partition = 999999
-- Plan = Yes
B> Then run again with parameters
-- Partition = 21
-- Plan = No
Note: If this request is not available, then see
System Administrator /Security / Responsibility /Request - query on %MSC% to bring up 'All MSC
Reports'
and add Drop Partition to the request group and save, then execute the steps above
4. Run Create ATP Partitions request (this is NOT Create APS partitions). This request has no
parameters.
6. Run the following SQL to check that the corruption to table MSC_NET_RES_INST_AVAIL is not
present
SQL #1
select table_name,
partition_name
from all_tab_partitions
where table_name like 'MSC_NET_RES_INST%'
OR table_name like 'MSC_SYSTEM_ITEMS%'
order by substr(partition_name,instr(partition_name,'_',-1,1)+1);
SQL #2
select table_name,
partition_name
from all_tab_partitions
where table_name like 'MSC_RESOURCE_INSTANCE_REQS%'
OR table_name like 'MSC_SYSTEM_ITEMS%'
order by substr(partition_name,instr(partition_name,'_',-1,1)+1);
7. The SQL Results should show that the each PARTITION_NAME has a pair for each partition
number like shown in EXAMPLE OF GOOD RESULTS table above.
39. ASCP Plan fails in MSCNSP with the following error message occurs:
APP-MRP-22052: 11-JAN-08 is outside the range of valid calendar dates
Cause: The specified date is outside the range of valid workdays (04-FEB-08 to 01-JAN-12).
The date is either before the start of the workday calendar or after the end of the workday calendar.
(Routine: xxxx_xxxxx_xxxxx)
Cause :
Here is a common and quick cause to check. Bear in mind that this is not cause of all cases when
this error occurs, but here is first common check to perform :
Typically, Profile: "MRP:Retain Dates Within Calendar Boundary" not set, and there is a record with a
date that is outside of the calendar range
Solution :
Check setting of the profile option: MRP:Retain Dates Within Calendar Boundary
This can prevent this type of issue as the profile determines whether to pull dates outside the
calendar boundary into calendar horizon.
If not set to Yes, please set profile to this value at site level
Run the plan again to see if it completes
and in particular:
It is possible that there will be something in addition to this issue identified above but for sure this is
a mandatory first step and might well resolve the issue in total.
**Starts**04-NOV-2015 01:28:10
**Ends**04-NOV-2015 01:31:02
Planning ODS Load process succeeded.
+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
04-NOV 01:27:51 : Purge Batch Size is set to : .
04-NOV 01:27:51 : Procedure MSC_CL_SUPPLY_ODS_LOAD.LOAD_SUPPLY started.
04-NOV 01:27:51 : load_supply
04-NOV 01:27:51 : Load supply: not found:
04-NOV 01:27:51 : OTHER========================================
04-NOV 01:27:51 : Error in PROCEDURE=LOAD_SUPPLY, TABLE=MSC_SUPPLIES
04-NOV 01:27:51 : COLUMN=MSC_CL_ITEM_ODS_LOAD.ITEM_NAME, VALUE=PM-TP-00305
04-NOV 01:27:51 : COLUMN=ORGANIZATION_CODE, VALUE=UJA:UHT
04-NOV 01:27:51 : COLUMN=ORDER_TYPE, VALUE=On Hand
Solution :
1. Make sure profile is set to MRP: Consume MDS = No
2. Confirm the following file versions :
$MSC_TOP/patch/115/sql/MSCCLJAB.pls 120.34.12020000.17
You can use the commands like the following:
strings -a $MSC_TOP/patch/115/sql/MSCCLJAB.pls |grep '$Header'
DOC.ID = 1970718.1
Table MSC.MSC_DEMANDS:
1988 Rows successfully loaded.
1 Row not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Loader_Worker_With_Direct_Load_170815_2.txt
=======================================
value used for ROWS parameter changed from 1000 to 147
Record 323: Rejected - Error on table MSC.MSC_EXCEPTION_DETAILS, column DATE1.
ORA-01861: literal does not match format string
Table MSC.MSC_EXCEPTION_DETAILS:
322 Rows successfully loaded.
1 Row not loaded due to data errors.
0 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Solution :
For 64 bit environment, the below profiles drivers the plan to use 64 bit exe.
For 32 bit environment, these profiles should not be set so that plan will use 32 bit exe
select plan_id,
plan_name,
free_flag,
partition_number
from msc_plan_partitions;
43. Launch ASCP Plan took a long time, running almost about 1.5 hours
The log :
prs: Capacity>0
activity 41982-100-/ [29837..29837] [29838..29838] totalCapacity = [1], capUsedByTask = [1], npt =
[1], tpt = [1] alt index value = 0
Saving solution for operation 41982, start time: 29249 becomes 29837 and end time: 29250
becomes 29838 - saving
saveSolution for op 41982 : [29837,29838]
committing HLS time table for operation 41982
recalling solution for operation 41982
committing HLS time table for operation 41982
After RIGHT JUSTIFY justification, YES afterSched noHLK operation scheduled 41982 29837 - 29838
operation: 41983 is selected for 'RightJustify' is SDS 0
justifying Operation 41983, Justify Type = RIGHT JUSTIFY
Scheduling operation back 2X or fail 41983
operation 41983 [29248..29836] - [29249..29837], JIT -137
activity 41983-100-/ [29248..29836] [29249..29837] totalCapacity = [1], capUsedByTask = [1], npt =
[1], tpt = [1] alt index value = 0
Operation 41983no choice point created
in setOperationAlternatesAndCapacitiesForPropagationIfRequired
Scheduling operation backward 41983 29248..29836 29249..29837
scheduling activity 41983-100-/ backward
scheduling activity 41983-100-/
Total processing time more than needed
Activity 41983-100-/ => select alternate backward
there is no choice
scheduling activity backward
prs: Capacity>0
/oracle/DEV/data/UUAT/apps/fs1/EBSapps/appl/mso/12.0.0/bin/MSONWL64.exe
Program was terminated by signal 9
Solution :
1. Please check Fixed Order Quantity in Organization Item
2. If it has found Fixed Order Quantity in small size one, please remove unwanted Fixed Order
Quantity in Org Item Level
Solution :
Your plan shows Org UJA:SCM. The calendar attached is far too short and ends before the end of the
planning horizon.
Cause :
They were not using Demantra, and the profile value for "MSD_DEM: Schema" was set (on the VCP
instance)
Solution :
1) Set the "MSD_DEM: Schema" profile value to NULL on the VCP instance.
2) Re-run the 'Refresh APCC Materialized Views' concurrent program. Make sure it completes
without warning.
Solution :
Apply Patch
Cause :
This issue occurred because for the problem Purchase Order both Need by Date as well as Promised
Date were NULL. Since both the two date columns have NULL value the dock date and eventually
the due date gets calculated as NULL. Consequently the collection process tries to insert NULL in the
date column of MSC_SUPPLIES. Since this column is not NULLable, insertion fails, this particular PO
gets rejected and Planning ODS Load Worker completes in warning
Solution :
The problem Purchase Order needs to be manually corrected for the issue to be resolved
1. In order to find out the list of such Purchase Orders that can have impact on Data Collections,
please run the following query on the source instance.
SELECT PO_NUMBER,
PO_LINE_LOCATION_ID
FROM MRP_AP_PO_PO_SUPPLY_V
WHERE PROMISED_DATE IS NULL
AND NEED_BY_DATE IS NULL;
2. To verify that the columns are indeed NULL for these Purchase Orders, run the following query,
again on the source instance.
SELECT PO_HEADER_ID,
PO_LINE_ID,
LINE_LOCATION_ID,
NEED_BY_DATE,
PROMISED_DATE
FROM PO_LINE_LOCATIONS_ALL
WHERE LINE_LOCATION_ID IN
(SELECT PO_LINE_LOCATION_ID
FROM MRP_AP_PO_PO_SUPPLY_V
WHERE PROMISED_DATE IS NULL
AND NEED_BY_DATE IS NULL);
3. Go into the responsibility: Purchasing Super User (or any other responsibility through
which the returned Purchase Orders can be modified).
7. Repeat steps 5 and 6 for each Purchase Order returned by the above queries.
SELECT PO_NUMBER,
PO_LINE_LOCATION_ID
FROM MRP_AP_PO_PO_SUPPLY_V
WHERE PROMISED_DATE IS NULL
AND NEED_BY_DATE IS NULL;
Table "MSC"."MSC_RESOURCE_REQUIREMENTS#":
274 Rows successfully loaded.
1 Row not loaded due to data errors.
19 Rows not loaded because all WHEN clauses were failed.
0 Rows not loaded because all fields were null.
Cause :
If you review the .bad file shown in the log file you will notice the column daily_resource_hours = inf
which means infinite and thus the failure. The plan is failing because WIP jobs have completion
dates BEFORE the start dates. Example data:
Solution :
This will give you all wip entity id's that have END_DATE<START_DATE in
MSC_RESOURCE_REQUIREMENTS.
2. Then on Source:
You will enter the id's returned from above script and add a /2.
select WIP_ENTITY_ID,ORGANIZATION_ID,WIP_ENTITY_NAME
from WIP_ENTITIES
where WIP_ENTITY_ID in (423656/2,423646/2);
You will enter the id's returned from above script and add a /2. This will give you the discrete
jobs that need fixed on source.
49. When attempting to run collections for the first time MSCTRIGS fails with the message
below. Subrequests all finish successfully.
ERROR
-----------------------
**Starts**08-MAY-2012 09:35:09
**Ends**08-MAY-2012 09:46:39
Error in creating Source Triggers
08-MAY 09:35:09 : Request : 421162 :Creates Item Triggers used by Collections Process
08-MAY 09:35:09 : Request : 421163 :Creates BOM Triggers used by Collections Process
08-MAY 09:35:09 : Request : 421164 :Creates Routing Triggers used by Collections Process
08-MAY 09:35:09 : Request : 421165 :Creates WIP Triggers used by Collections Process
08-MAY 09:35:09 : Request : 421166 :Creates Demand Triggers used by Collections Process
08-MAY 09:35:09 : Request : 421167 :Creates Supply Triggers used by Collections Process
08-MAY 09:35:09 : Request : 421168 :Creates Other Triggers used by Collections Process
08-MAY 09:35:09 : Request : 421169 :Creates Repair Order Triggers used by Collections
Process
08-MAY 09:35:09 : select
NVL(FND_PROFILE.VALUE('MSC_ASCP_IGNORE_CMRO_EAM_WO'),1) from dual
08-MAY 09:35:09 : select
NVL(FND_PROFILE.VALUE('MSC_ASCP_IGNORE_CMRO_EAM_WO'),1) from dual