When trying to delete subscription period from plan one of the errors appear:
This Subscription Period is used in Order Items.
ODBC code #23503: ERROR: update or delete on table "PlanPeriod" violates foreign key constraint "OrdDet_PlanPeriodID" on table "OrdDet" Key (PlanPeriodID)=(ID) is still referenced from table "OrdDet".; Error while executing the query
There are orders for this subscription period that should be archived first.
Locate all orders that have reference to this subscription period. It can be done via BA database:
select distinct "OrderDocOrderID","subscriptionID" from "OItem" where "PlanPeriodID" = [ID of he plan period you want to delete];
Then please archive all these orders via BA CP.