viewpointDAO = DAOFactory.getViewpointDAO();
viewpoint = viewpointDAO.loadViewpointByNameAndBIObjectId( ids[i] , biobjectId);
Assert.assertNotNull(viewpoint, "Viewpoint [" + ids[i] + "] does not exist on the database");
viewpointDAO.eraseViewpoint( viewpoint.getVpId() );
logger.error("Viewpoint [" + ids[i] + "] succesfully deleted");
} catch (EMFUserError e) {
logger.error("Impossible to delete viewpoint with name [" + ids[i] + "] already exists", e);
throw new SpagoBIServiceException(SERVICE_NAME, "Impossible to delete viewpoint with name [" + ids[i] + "] already exists", e);