[2pack] issue with export org (non office id)
Description
Environment
Attachments
Activity
you're right
same as

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

it always resolve as if (true)
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 @Hiep Lq, 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

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
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