2Pack issue for AD_Role_OrgAccess

Description

Try to use export 2Pack function from Role->Org Access, but it seems something wrong in exported 2Pack xml (<AD_Org_ID>@AD_Org_ID@</AD_Org_ID>).

Please refer to the picture below:

image-20240330-025928.png
image-20240330-030035.png

Possible fixing, please help to double check.

image-20240330-030546.png

Thanks & BR,

Ken

Environment

None

Attachments

5
  • 31 Mar 2024, 04:13 AM
  • 31 Mar 2024, 04:13 AM
  • 30 Mar 2024, 03:07 AM
  • 30 Mar 2024, 03:07 AM
  • 30 Mar 2024, 03:06 AM

Activity

Show:

Heng Sin Low March 31, 2024 at 11:29 AM

  1. Yes, @AD_Org_ID@ is intended to transfer data between organizations within the same tenant

  2. However, that seems wrong for OrgAccess table, so I guess at least we should not do that for OrgAccess table.

  3. For other table, perhaps we can add a parameter to 2Pack to give user the option to export actual AD_Org_ID value (i.e ID value for official id and uuid for non-official id).

Carlos Ruiz March 31, 2024 at 11:03 AM

Right - that’s the intention of UUID map, to transfer data between tenants.

I think the @AD_Org_ID@ is intended to transfer data between organizations within the same tenant, but I’m not sure about its usage (never used it), maybe can review this and advice about the use case Ken is mentioning.

Ken Longnan March 31, 2024 at 4:13 AM

Thanks , the Pack Out as “Data Single” works.

The idea is ok that to allow exporting data from one org to another org, but refer to below picture, multiple original Orgs they are all replaced by @AD_Org_ID@

image-20240331-035827.png

The better implementation way maybe we could add feature to allow user to define some kind of UUID map for Org. It means export data as it is (no @AD_Org_ID@), please refer to below picture.

image-20240331-040814.png

I just want to explain that the general UUID Map feature could be good feature candidate for 2Pack.

  1. Export 2Pack data from one Tenant (all real and actual data as they are)

  2. Define UUID Map (one org → another org, etc, etc)

  3. Import 2Pack data into another Tenant (with the help of UUID Map definition)

Carlos Ruiz March 30, 2024 at 9:43 PM

Hi

I reviewed the code and that seems to be intentional, it is there since the first iDempiere version where rewrote 2Pack.

I think the idea is to allow exporting data from one organization (for example HQ), and then import data on another organization (the login org).

If you want to export the record without that, you can define a Pack Out and use the "Data Single" type.

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created March 30, 2024 at 2:56 AM
Updated June 1, 2024 at 3:18 PM
Resolved April 9, 2024 at 1:13 PM

Flag notifications