Hi,

I have the view widget running, but whenever I try to reference a node(article) I get the following error:
The referenced entity (node: 142) is invalid

Of course its not only with nid 142, I can try whatever node.

Any help very welcome, would be great to have it working.

Comments

brighteridea’s picture

Did you resolve this, I have the same trouble

JoergPf’s picture

no, unfortunately not

AlexanderPop’s picture

turn off caching in view you use to list items

bingorabbit’s picture

Caching was already turned off here, the problem disappeared when I unchecked the link to original content check in views for the title field which I used for the autocomplete search in the refernced entity field.
Hope this helps.

jienckebd’s picture

For me, it required turning off the argument provided by the field to the view.

bojanz’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Issue summary: View changes
Status: Active » Fixed

Should all be fixed in the 2.x branch.
Test the 2.x branch and open new issues for any bugs you encounter.
Thank you for your patience.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

mahalingam1984’s picture

Still the issues persists in 2.x branch.

TimeBandit’s picture

I was getting this error on a View which allowed any content type. I had several exposed filters. I found the error disappeared when I removed the exposed filter "nid (node id)". A tradeoff for now; the user cannot filter content by NID.
Perhaps this issue is related: https://www.drupal.org/node/2154109

rwilson0429’s picture

Under the entity reference field settings, changing the Entity selection mode from "Views: Filter by an entity reference view" to "Simple (with optional filter by bundle)" resolved the issue for me.

alimbert’s picture

It isn't an option to switch from "views:filter by an entity reference view" - so what other solutions exist?

ANANSFPL’s picture

Check that the Entity Reference is not using filter criteria that is a number. We weren't able to save content types that had a blank search field ( eg: Postal Code ). Removed the field from the Filter Criteria from the Entity Reference but left it on the Widget made it work :)