Issue #21366:retrieve period_id of current period