core icon indicating copy to clipboard operation
core copied to clipboard

Can't import only non-default language

Open Xander-Steinmann opened this issue 12 years ago • 1 comments

When you import content that is only available in the non-default language (for instance: Spanish), you sometimes get the following error while importing:

Can't find contentlet: a0e2e960-0888-4156-8fbf-8c9649e0b907 lang:1 live:false

For some reason Dotcms expects there to be a default language version. I can reproduce this on the demo website:

  1. Create a new piece of Content (Generic), only in Spanish
  2. Export the Spanish Content (Generic) content
  3. Change the exportfile: rename "Identifier" to "Whatever"
  4. Import the exportfile, setting the Language to Spanish and checking the "host" and "title" fields

You'll see the error in the pop-up before you actually import. Also note that when you don't change the column name "Identifier" then it works (no English version is needed). This is strange, and unfortunately not our use-case since we want to be able to also create new content using an import.

Xander-Steinmann avatar Apr 02 '14 14:04 Xander-Steinmann

Fixed, Tested on Nightly Build 2014-04-22

bryanboza avatar Apr 23 '14 21:04 bryanboza