on 2025 May 13 7:01 AM
I need assistance with importing relationships from an Excel file into the SAP PowerDesigner physical data model. The relationships are being created incorrectly because the foreign key name in the child table differs from the primary key name in the parent table. How can I resolve this issue? What mapping should I use to ensure that the correct foreign key name is applied, rather than creating a new column in the child table that matches the parent key?
below is the mapping used
Table reference=Reference: Table Name =ChildTable, child foreign key=DefaultMapping, Parent Table Name =ParentTable, Parent Key Name=ParentKey, Reference Name =ForeignKeyConstraintName, Display Name=DisplayName
Request clarification before answering.
Hi, I tried it with PDM and it seems like a bug to me. George is right about Reference Joins. You have to import them as separate object (on separate excel sheet), but the import still doesn`t work properly. I am still getting "Error: Could not find parent object location with Name = Order.CustomerID". I tried many things (playing with Reference settings in Model Options, changing the order of excel sheets to import, modifying actual values to import, importing with/without ParentKey property on the Relationship,...) nothing helped. But I agree, that standard Excel Import should be capable of that.
You have several options now:
Which option is best for you depends on number of objects to be imported, whether it is one-time or repeated action, how quickly you need it, etc.
HTH and in case you need my help, let me know here (or on LinkedIn),
Ondrej Divis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
34 | |
22 | |
16 | |
8 | |
5 | |
5 | |
4 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.