Skip to Main Content

Analytics Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

IKM Oracle SCD type 2 Error at Historize old rows

4039407Mar 3 2020 — edited Mar 5 2020

Hi all,

I encounter the error message ODI-1228: Task Historize old rows-IKM Oracle Slowly Changing Dimension. Caused by: ORA-01427: single-row subquery returns more than one row.

It's similar to the cause in the posting SCD type 2 :Error at Historize old rows

The natural key is not unique in the source.

Sample Source (Text File)

IDNameService PlanLast Access Date Time
0001JoePlan A2020-01-01 01:00
0001JoePlan A2020-01-01 02:15
0002TomPlan C2020-01-01 01:15

Target Table

ID - Natural Key

Seq No - Surrogate Key

Name - Add row on change

Service Plan - Add row on change

Last Access Date Time- Overwrite on change

Starting Timestamp

Ending Timestamp

Current Flag

I would greatly appreciate if someone could provide a solution on how to resolve the error.

Comments
Post Details