Score:-1

How to import Json file from Feeds module

ru flag

I am using Feeds import module with Feeds extensible parsers module, I am getting following error. I am not getting what is wrong with the json and settings. Can anyone help me to resolve this issue.

Thanks in advance,

enter image description here

My json look like,

[ { "lcia_id": , "name": "", "company_name": "", "company_id": , "net_weight": , "country": "", "address": "--", "serving_size": "-", "composition": [], "type": "", "field_ingredientimpactcarboningm": , "field_ingredientaggimpactbiosli": , "field_ingredientaggimpactwaterle": , "field_ingredientaggimpactwaterpo": , "field_processingimpactcarboningm":
}, ]

and in Feeds setting I have used,

enter image description here

enter image description here

Score:0
in flag

You need to provide a value for the lcia_id key.

In your Feeds Type mapping, we can see that the entity's ID (nid) is mapped to the JSON file's lcia_id, but, in your sample JSON file, the lcia_id value is missing.

You could also consider using Feeds Tamper to set a default value when no value is available for lcia_id. Here is an example of how to use it.

latikas avatar
ru flag
Thanks for your answer, its work. but now, the problem is I cann't mapping feed with a reference field. How to use feeds with entity reference?
latikas avatar
ru flag
The 'lcia_id' is a reference id in json like { "lcia_id": 6, "composition": 0.04975124378109454 } How should we map?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.