Skip to content

ContentItemReference that are added to UmtModels are not working correctly when calling Kentico.Xperience.UMT.Services.ImportAsync #1

@akimmel-bluemodus

Description

@akimmel-bluemodus

Describe the bug
I am importing pages that are referencing a lot of other content items and setting the fields on the class to lists of ContentItemReference and then using the Kentico.Xperience.UMT.Services.ImportAsync to save them.

When I view the data in the database the field looks like this:
[{"identifier":"89fbf30c-c7cb-40d7-9dc5-60333c2dc9bf"}]

And the content item is not properly referenced.

When I manually update that field to have a capital "I" on "identifier" it is properly referenced.

To Reproduce
Steps to reproduce the behavior:

  1. Create a content item
  2. Use the Kentico.Xperience.UMT.Services.ImportAsync to save a new page that has a field that is referencing that content item using ContentItemReference
  3. Confirm that the "i" in "identifier" is lower case for that field in the db
  4. Confirm that the content item is not properly reference in the cms
  5. Update the "i" to be capitalized in that field
  6. Confirm that the content item is properly referenced in the cms

Expected behavior
The item should be properly referenced without needing manual manipulation

Screenshots

Image Image

Now it works

Image Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions