Mapping an "Authored by" uid fails in the main language

Created on 4 November 2023, over 1 year ago

Problem/Motivation

When importing a dual language nodes, with main language set to PT, I can't map a node author:

Authored by (uid): Authored by: this field cannot hold more than 1 values

Steps to reproduce

Create a new feed on a multilang node type.
Set a default lang and author as feed owner (running with ID:1 user)
Map an "Authored by" field and set a fixed value distinct from ID:1, of an existing user
The message appears when importing

If we map an "Authored by" to other language, than it works fine.

it look like feeds is concatenating the mapping uid with the feeds config of having a Feed:owner user and the node owner.

By looking at these threads, I was expecting mapping to override the feeds config.

🐛 Bug report
Status

Active

Version

3.0

Component

Code

Created by

🇵🇹Portugal jrochate

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jrochate
  • 🇧🇪Belgium davidiio

    Hello,

    We have the same issue here and this patch from a somehow similar issue didn't fix the porblem:
    similar issue: https://www.drupal.org/project/feeds/issues/3189557 🐛 Setting a target for "langcode" field will sometimes throw "this field cannot hold more than 1 values" Needs work

    We have a multilingual site we have imported users and then we tried to import articles and set the uid as the feeds_item.guid of the previously imported user and faced the same issue

    Authored by (uid): Authored by: this field cannot hold more than 1 values

    We have created a simple environnement on simplytest.me and the issue is the same
    You can try it here https://master-hfr0tovoioejutcmmgxmlqbhohe8jk8x.tugboatqa.com with login/pass = admin/admin

  • 🇳🇱Netherlands megachriz

    I know that multilingual support in Feeds is not perfect yet, but since I don't have clients with multilingual sites currently, I prioritize other Feeds issues as of now. Unfortunately, I don't know a good workaround for this issue. Perhaps making 'Authored by' translatable or using a separate feed type for this field? I would need to dive in deeper into this topic in order to think of better workarounds.

    Note: the provided link results into "Preview Not Found". Was it only available for a very short amount of time?

    Tagging issue with "multilanguage", so I can find this issue back as soon as I plan to focus on Feeds multilingual issues again.

  • 🇧🇪Belgium davidiio

    Thanks for your answer Megachriz. It is not blocking for us anyway. I will investigate if I have time.

Production build 0.71.5 2024