Skip to content

pac solution unpack -- removes <EntityImageConfigs> and <AttributeImageConfigs> from Customizations.xml #1396

Description

@zsuchacek

Describe the bug

When a table contains two image-type attributes (one set as primaryimage = true), the Customizations.xml produced by pac solution unpack does not match the Customizations.xml inside the exported solution archive. Specifically, the unpacked file is missing the populated and elements—they appear only as empty definitions instead of containing their actual configuration. As a result, re-importing the solution from the unpacked source fails.

To Reproduce
Steps to reproduce the behavior:

  1. create new table with 2 image type attributes, set one to primaryimge = true
  2. pac export unmanaged + managed
  3. pac solution unpack both
  4. check Customizations.xml
  5. compare Customizations.xml from exported solution archive to exported file - missing fulfilled and elements, only empty definition
  6. pac solution pac and check logs

Expected behavior
Customizations.xml is without differences, and solution pack and import does not fail.

Screenshots
commited

Image Image

Additional context
pac solution pack log:
Following root components are not defined in customizations:
Type='AttributeImageConfiguration', Id (or schema name)='AttributeImageConfiguration-<> <>'.
Type='AttributeImageConfiguration', Id (or schema name)='AttributeImageConfiguration-<> <>'.
Type='EntityImageConfiguration', Id (or schema name)='EntityImageConfiguration-<>

Import solution error: Cannot add a Root Component <> <> of type 431 because it is not in the target system.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions