Trying to edit an existing blueprint and getting an error API-1019 : Could not process the request due to internal error. Reviewing the app ca logs below errors are seen
Caused by: java.sql.SQLException: ORA-01427: single-row subquery returns more than one row
All Supported Clarity Version
The error is occurring because there are two draft statuses for a single blueprint, whereas there should be only one.
select cab.name,ob.id,ob.type,ob.publish_target_id from odf_blueprints ob, odf_abstract_blueprints cab
where exists(select publish_target_id,count(1) from odf_blueprints p where p.blueprint_mode ='DRAFT'
and p.publish_target_id =ob.publish_target_id
group by publish_target_id having count(1) > 1 )
and ob.id = cab.id;