Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Hub Central error while mapping secondary entity with structure #7177

Open
dmcassel opened this issue Aug 31, 2022 · 0 comments
Open

Comments

@dmcassel
Copy link
Contributor

The issue

Please provide reproducible steps for the issue and a description of what behavior you expected instead.

I have a set of JSON documents in my staging database that are derived from CSV data -- the documents are flat. I have two entities that I'm trying to populate from the same set of documents (as described in the "Mapping to multiple related entities" of this page). If I set up separate mapping steps for each of them, I'm able to configure the mapping for both entities. The second entity has a structure (Address) as one of its properties. If I try to map the secondary entity from the primary entity, I'm unable to populate the Address structure. The problem is trying to set the Context for the structure. If I use "/" or ".", I get "Node has complex type with non-mixed complex content". If I leave the Context blank, the error goes away, but I get no values in the structure, even if I provide a literal value.

The steps to reproduce the issue (use as many numbered steps as you need):

  1. Define two entities (Book, Publisher). Give the second entity a structure property (Address). Create a relationship from the primary (Book) to the secondary (Publisher). Specify a foreign key.
  2. Create a flat sample doc that has data for both entities. Load the sample doc using an ingestion step.
  3. Create a standard mapping step for Book. Map the book properties, then specify the secondary (Publisher) in the "Map related entities" box. You'll be able to map top-level Publisher properties, but not the Address.

What behavior were you expecting?

Technical details

Please provide the following version information:

  • Operating System = linux
  • MarkLogic = 10.0-9.4
  • Data Hub = 5.7.2

If this is a Hub Central or QuickStart issue, please provide the browser version too:

Chrome Version 104.0.5112.102 (Official Build) (64-bit)

Workaround

Create separate mapping steps and run them sequentially.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants