how to set reference to another entity in a Robust Transformer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2022 04:12 AM
Hi All,
I am inserting the a record in two separate table using robust transform map, but facing one issue of Reference field.
eg:- Table A has a reference field which is refer to table B. I want to set the sysId of record created in table B to the reference filed of Table A.
Any suggestion will be valuable ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2022 02:21 AM
Hi,
I'm trying to understand the scenario both tables are getting the data same time. Are you using the Importset table approach? Can you please explain how data is getting into target tables.
Regards,
Suresh.
Suresh.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-10-2023 04:55 PM
Did you ever solve this? I'm struggling to work out how to use the Referenced entity field myself.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-02-2022 01:58 AM
Btw. I'm not using ETL Integration Hub, and I don't want (this is just testing example for RTE, and base on that I want create totally different mapping).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2024 10:02 PM
Hi all,
I too had a similar requirement and found the solution. PFB for the detailed steps.
Requirement:
As a user I need to import the user, group and group member data from the single excel sheet.
Solution:
Excel data: (Demo data)
Step 1: Create a Data Source and attach the excel file.
Step 2: Create a Robust Transformer from the related list of the data source (created at step 1)
Step 3: Create a Transformer definition (ETL definition) and Entities.
As per the requirement, we need to load the data into 3 different tables (User, Group & Group member table).
Hence we need to create 5 tables in total (including Import set and Staging table)
1. Import set entity – To store the data from the source.
2. Staging entity – To store the copy of the source data to do the required operations.
3. User entity – sys_user table (Target)
4. Group entity – sys_user_group table (Target)
5. Group Member entity – sys_user_grmember table (Target)
Entities:
1. Import set entity:
2. Staging entity:
3. User entity:
4. Group entity:
5. Group Member entity:
Note:
Group member entity fields are dependent on previous entities (User and Group).
In the User entity, “User Name” field is considered as a primary key (Coalesce = true) and in the group entity “Name” field is the primary key.
So while declaring the path for Group Member entity fields, we need to use the primary keys of the dependent entities.
Step 4: Create Entity Mappings
1. Import set to Staging table:
2. Staging to User table:
3. Staging to Group Table:
4. Staging to Group member table:
Finally, we need to load the data from the file and run the robust transform map.
1. Load all the data from the file
2. Run the Robust transform
Results:
Users table:
Groups table:
Group Members Table:
Regards,
Sivamuruganandam J
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-24-2025 08:05 AM
Hi, how would this work with more than one coalescence field, example importing costplans for a demand, where the identifiers are department and demand name?
Thanks!