Business Entity Item is not selected

Error message

The following (or quite similar) error is shown in the failed task:

System.NotSupportedException: BusinessEntityAction (56315) for Activity (d2c8e8c5-687f-4c7f-a76a-1b7e8eb66be0) UmlagerCsvTest - 18095 (dd082ecd-2a44-483c-9363-38698efc8887) multiple Items are selected, cannot set Values for Artikel
  at FireStart.Server.WorkflowExecution.WorkflowDataAccessService.<SetItemValuesAsync>d__38.MoveNext()

Reason

A business entity can have 0 to n items selected. It's a list, not a single data row. BUT if there is exactly one item in the list, it is possible to write directly to it, without the need to loop over the list. If you try to write to a business entity and get an "Item is not selected" error, that means that there are either 0 items or more than 1 item selected. 

Most of the time that happens if there is a flaw in the data or in the condition of the preceding Select BE Item activity, so you get either no result or multiple results when you expect exactly one data row to match. 

Every business entity has a hidden filed BE_ITEM_COUNT. You could use this field in your workflow to handle this case at runtime accordingly if you think it is a case that should have special consideration.