523: when no_data_found then
524: -- Record doesn't exist - insert in all cases
525:
526: select WMS_PAGE_TEMPLATES_S.nextval into l_TEMPLATE_ID 527: from dual; 528:
529: WMS_PAGE_TEMPLATES_PKG.INSERT_ROW(
530: X_ROWID => row_id,
531: X_PAGE_ID => X_PAGE_ID,