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?
| Comment | File | Size | Author |
|---|---|---|---|
| Screen Shot 2013-01-04 at 15.58.12.png | 176.5 KB | spessex | |
| Screen Shot 2013-01-04 at 15.58.38.png | 436.54 KB | spessex |
Comments
Comment #1
pyxio commentedHi,
How did you end up solving this? I have the same issue. Thanks much. Kevin
Comment #2
pyxio commentedI discovered it had to do with removing the contextual filter.
Comment #3
Euler27 commentedYup I'm having the same issue
Comment #4
Yuri commentedI'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.
Comment #5
andres_de commentedI 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.
Comment #6
jmuzz commentedChanging to normal as it's about compatibility with another contrib module.
Comment #7
knalstaaf commented#1938620: Orphaned field collection items can exist in field_collection_item table