JBO-26020: Attempting to insert row with no matching EO base
-
Problem Description
You inadvertently added a row that was created or queried from one view object to another view object of a different type. For example, the following script would generate this error:
def empVO = newView("Employees") def newEmp = empVO.createRow() def deptVO = newView("Department") // PROBLEM: Incorrectly adding a row of type "Employees" // ------- to the view of type "Department" deptVO.insertRow(newEmp)
This generates a JBO-26020: Attempting to insert row with no matching EO base exception because the script is trying to insert a row from "Employees" view into a view that is expecting rows of type "Department". This leads to a type mismatch that is not supported.
-
Resolution
Ensure that when you call
insertRow()
on a view object that the row you are trying to insert into the collection is of the correct view type.