We're updating the issue view to help you get more done. 

Import to a 2-level containers tree does not work

Description

All is explained here :
http://www.collectiveaccess.org/support/forum/index.php?p=/discussion/298192/import-to-a-2-level-containers-tree-does-not-work

In a nutshell: importing to a container tree (>= 2 levels) doesn't work

  • nothing imported when not required metadata

  • error message that have little to do with the problem

Here's the mapping file again, just in case.

Any help would be really appreciated ! I'm quite stucked on that one.

Thanks !

Environment

None

Activity

Show:
Kehan Harman
February 1, 2017, 3:22 AM

I'm unsure whether you can pass constants into the refinery - from memory I've had mixed results here. A workaround I've used is to map any field value, and then add a `template` in the settings explicitly setting the value to the value you want the refinery to lookup. Alternatively just use the idno of the list item you want as the constant and don't use the refinery.

Additionally if you're mapping into a container, you only need to include the topmost container and then the final destination field, so instead of:
`ca_objects.kindness_c.subtree1.kindness_level_meta2`

use:

`ca_objects.kindness_c.kindness_level_meta2`

as the destination.

User known
February 1, 2017, 7:07 AM

You cannot pass constant into refineries at present. They're only used for explicit mappings. Probably should make them into proper values.

Assignee

User known

Reporter

bruno

Labels

None

Components

Affects versions

Priority

Major
Configure