"dontCreate" option for "listItemSplitter" problem
Hi all,
I've a doubdt about the meaning of the "dontCreate" option for "listItemSplitter". I thought it prevents for creating list items when they do not exists; as there is a global existingRecordPolicy in imports options section in import mapping file that controls the whole row creation.
I'm right ?
If yes, there's a problem with the use of that param: I used it in Refinery parameters like this:
{
"list": "test_vocab",
"dontCreate": "1"
}
The "test_vocab" list exists in the profile I choosed while installation (v1.6.3). It only containts one element: "Foo".
Here's my "data.csv", since csv file type upload isn't allowed on wiki:
id, voca
10, Foo
11, FooBar
After import, "FooBar" was added to the "test_vocab" list. This is not what I excepted since I passed the dontCreate option to listItemSplitter.
Also, the two objects were created (this make me think that this option doesn't control objects creation)
Thanks for reading !
Comments
What do you think about it ?
Thanks again
Here's the direct link: http://www.collectiveaccess.org/support/forum/uploads/FileUpload/a3/5af4ef15e981725049b31b4f64ef06.xls
Anyway, I filled a bug for this as I approximately found the problem in the code:
See you at next one