sandeepmohan23 / yfai_data_migration

YFAI Data Migration
0 stars 0 forks source link

Enhancement:Update island_ids for Item Rev related objects like Anchor #46

Closed rajender2k closed 7 years ago

rajender2k commented 7 years ago

Hi Prem, When we are replacing ItemRev island_id with Item island_id,we need to replace islands for Item Rev related reference object also..

EXAMPLE:

------- Processing island 2781 ------- ElemId ClassName Uid Status Comments id87287 A9_AutoDesignRevisionn PSlmFt_IRyNID NEW ERROR:[11072] Xml attribute [sequence_anchor = nPUlmFt_IRyNID] not found in database for [id87287:A9_AutoDesignRevision] element. NOTE: Island import failed. All changes in this island will be rolled back.

puid="nPUlmFt_IRyNID" island_id="9960" change to island_id="2781"

================== In above exmaple, ItemRev will have sequence_anchor attribute.. sequence_anchor is typref of <Anchor

If we change the island for item rev we need to change island for related to sequence_anchor (<Anchor) also. Otherwise Item Rev load will fail..

I will come up with all the known scenarios,so you need to update replace_island.pl file.

Thx Raj

premshankar1 commented 7 years ago

@rajender2k do you have some example files for thi issue? Also, are there any other scenarios?

premshankar1 commented 7 years ago

Perl code has been modified to fix this issue.