Solved

How to use Excel Data Migration with Referenced fields

  • 18 February 2022
  • 1 reply
  • 327 views

Userlevel 6
Badge +13

I want to import data into a custom logical unit using Excel Data Migration but one of the fields is a Referenced fields?

Data sample to import.

Custom object to import into.

 

 

Referenced object

 

Migration Job.

 

Error when I try to execute.

integrity constraint (IFSAPP.ARE_WATER_JET_PART_GRP1_CRK) violated - parent key not found

 

 

Can this be done?  How should I setup?  I think I need to get the OBJKEY for the referenced field?

Need help.

 

Thank you,

icon

Best answer by Technical Outlaws 22 February 2022, 23:16

View original

This topic has been closed for comments

1 reply

Userlevel 5
Badge +11

Correct, you have pretty much answered your own question.  If you manually entered a record in your custom logical unit, you will see by inspecting the table ARE_WATER_JET_PART_GRP_CLT that the column CF$_PROG_GRP actually holds the OBJKEY of the referenced field and not the data value.

 

So from a data migration point of view, it is the OBJKEY that you need to feed into the CF$_PROG_GRP_DB column.

 

https://docs.ifs.com/techdocs/Foundation1/040_administration/260_data_management/050_data_migration/003_data_migration_in_custom_objects/100_custom_references/default.htm