My Oracle Support Banner

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

Last updated on SEPTEMBER 23, 2019

Applies to:

Primavera P6 Enterprise Project Portfolio Management - Version 15.1.2.0 and later
Primavera P6 Professional Project 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

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.