There is a bug that currently allows invalid values to be imported to field collection fields. For example, when importing an Animal, you can give it a "Tag type" that doesn't exist in the system. This only happens with fields inside Field Collections.

I reported this in the Field Collection issue that provides Feeds integration: #1063434: Add Feeds integration to FieldCollection

Here is my comment specifically: https://www.drupal.org/node/1063434#comment-12203562

It should be fixed in that issue, but I decided to create this issue in the farmOS queue so that we don't forget about it.

Here is the Feeds issue that added field validation: #2379631: field_attach_validate() must be called before programmatic entity saves

Comments

m.stenta created an issue. See original summary.

m.stenta’s picture

Priority: Normal » Minor
m.stenta’s picture

Specific instances where this is an issue:

  • Animal import: it's possible to import invalid "Tag type"
  • Quantities can be imported as a value without a unit and vice versa
m.stenta’s picture

Status: Active » Closed (won't fix)

We don't use Field Collections in farmOS 2.x - and this won't be fixed in 7.x-1.x.