EAM PM Schedules Migration.
Hi Team,
We are migrating PM Schedules through the below API. But we are coming across the error - 'The rules do not match the Preventive Maintenance schedule type'.
API and Data passed to create migrate Schedules.
l_pm_scheduling_rec_type.NAME := rec_stg.pm_name;
l_pm_scheduling_rec_type.set_name_id := rec_stg.set_name_id;
l_pm_scheduling_rec_type.type_code := 10;--rec_stg.asset_type;
l_pm_scheduling_rec_type.maintenance_object_id := 14001;--rec_stg.maintance_object_id;
l_pm_scheduling_rec_type.maintenance_object_type := 3;--rec_stg.maintenance_object_type;
--l_pm_scheduling_rec_type.eam_last_cyclic_act := 16102;--px_pm_rec.activity_association_id;*/