[2pack] issue with export org (non office id)

Description

1. create new org (don't use office org) on garden world client
2. export to zip file that record
3. use new instance (not current instance)
4. pack in => get exception


reason:

bellow is xml of packout data and code (class POFinder, line 101-104) make exception

AD_Org_ID is uuid but it reference back to itself.

for packout org, i think don't need to export org_id

Environment

None

Activity

Show:
Hiep Lq
April 27, 2020, 9:07 AM

AD_Org_ID on default exclusive list, so in case i change to !excludes.contains("ad_org_id")) then all packout will hasn't <AD_Org_ID>

i guess correct fix is move check preservedOrg to outer also

Carlos Ruiz
April 27, 2020, 2:39 PM

From what I see, that code is there since version 1 (may-2012).

That means the comparison

on lines 186 and 191 of PoExporter has always been resolved as

I think instead of fixing the case comparison, we must go for the safe route of simply checking for what has been in use all these years.

On the other hand, the case reported by , sounds like a generic problem we have with 2Pack - is this the same as we found when trying to import "product category" and "product category acct"? (records being automatically created in beforeSave/afterSave cannot be imported by 2Pack)

Regards,

Carlos Ruiz

Hiep Lq
April 27, 2020, 2:49 PM

it always resolve as if (true)

Hiep Lq
April 27, 2020, 2:54 PM

addTableReference("AD_Client_ID", X_AD_Client.Table_Name, new AttributesImpl());

AD_Client_ID is special, it don't need to export because it always = importing client

Carlos Ruiz
April 27, 2020, 3:03 PM
Edited

you're right

same as

Assignee

Heng Sin Low

Reporter

Hiep Lq

Labels

Tested By

None

Fix versions

Priority

Major
Configure