API Error: IncorrectResultSizeDataAccessException: Incorrect result size: expected 1, actual 2 (Doc ID 2075841.1)

Last updated on AUGUST 01, 2017

Applies to:

Primavera P6 Enterprise Project Portfolio Management - Version 15.1.2.0 and later
Information in this document applies to any platform.

Symptoms

When attempting to call the Project.createCopyAsBaseline() method the following error occurs.

org.springframework.dao.IncorrectResultSizeDataAccessException: Incorrect result size: expected 1, actual 2
  at org.springframework.dao.support.DataAccessUtils.requiredSingleResult(DataAccessUtils.java:74)
  at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:732)
  at org.springframework.jdbc.core.JdbcTemplate.queryForObject(JdbcTemplate.java:747)
  at com.oracle.pgbu.core.JdbcTemplateDAO.getColumnList(JdbcTemplateDAO.java:116)
  at com.primavera.copy.binding.custom.CustomStep.getInsertSQL(CustomStep.java:170)
  at com.primavera.copy.binding.custom.CustomStep.call(CustomStep.java:352)
  at com.primavera.copy.binding.custom.CustomStep.call(CustomStep.java:35)
  at com.primavera.infr.threadpool.SEAdapter$CallableAdapter.execute(SEAdapter.java:134)
  at com.primavera.infr.threadpool.ThreadPoolImpl.run(ThreadPoolImpl.java:320)
  at java.lang.Thread.run(Thread.java:745)

  







Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms