Error message when running Load DWH - Full Load:
Financial plans has invalid start or end periods.
Any Supported Clarity Release
Some plans have an invalid start or end period that does not match a valid fiscal period
Run this query to identify any bad plans:
SELECT
fp.id AS plan_id,
fp.name AS plan_name,
fp.code AS plan_code,
fp.plan_type_code,
i.code AS investment_code,
i.name AS investment_name,
fp.start_period_id,
fp.end_period_id
FROM fin_plans fp
JOIN inv_investments i ON fp.object_id = i.id
WHERE (fp.start_period_id IS NOT NULL AND fp.start_period_id NOT IN (SELECT id FROM biz_com_periods))
OR (fp.end_period_id IS NOT NULL AND fp.end_period_id NOT IN (SELECT id FROM biz_com_periods));
Option 1:
Update or delete the cost plans through the UI. Some plans can typically just be deleted and regenerated if they are still needed.
Option 2:
If the update/delete UI method is not working for these projects, apply the below SQL fix for the broken references. Once the database is updated with a valid period, the UI should load successfully again.