When ever I try to use views to show a field collection I always getting the following message and the result being that views is unable to display any of the fields I require from the field collection chosen.

The error is:

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /linode/mrfgr/admin/structure/views/view/a_test/preview/page/ajax
StatusText: Service unavailable (with message)
ResponseText: Exception: Invalid field name given: field_company_details is not a Field Collection field. in FieldCollectionItemEntity->__construct() (line 210 of /Applications/MAMP/htdocs/Linode/MRFGR/sites/all/modules/field_collection/field_collection.module).

Interestingly where it states 'field_company_details is not a Field Collection field' this is correct as it is purely a field and not a field collection so I'm not sure why it is stating this?

Comments

pyxio’s picture

Hi,

How did you end up solving this? I have the same issue. Thanks much. Kevin

pyxio’s picture

I discovered it had to do with removing the contextual filter.

Euler27’s picture

Yup I'm having the same issue

Yuri’s picture

Issue summary: View changes

I've the same issue and don't use a contextual filter at all. Just using a page display, and any field 'Field Collection Item: (fieldname) throws this error when saving.

andres_de’s picture

Version: 7.x-1.0-beta5 » 7.x-1.0-beta7

I had this error too.
In my installation I have several field collections each with several fields.
When I wanted to create a view (Show Field collection item) I got the error for some fields, for some I didn't.
I solved the problem by filtering the view:
Filter Criteria: One of the chosen fields (no matter which one) should not be empty (Not NULL).
Hope this helps.

jmuzz’s picture

Priority: Major » Normal

Changing to normal as it's about compatibility with another contrib module.