Reproduce of an error:
1. Single node has a Content Taxonomy Field `field_OURFIELD` which is set to have multiple values, and eg. 3 values are putted into that field for that particular node. (from one taxonomy vocabulary)
2. Create a view and add field : Content Taxonomy Field: field_OURFIELD - select 'Group multiple values'.
3. Each node is repeated n-times where n is the number of different values putted to that field - 3 times for our node and each of cloned node has all 3 values listed.
So in fact displaying field itself is working OK, but grouping for the view is not. I'd like to see each node only once ;) regardless of number of values putted to content_taxonomy fields.
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | Duplicates.png | 26.62 KB | castawaybcn |
Comments
Comment #1
castawaybcn commentedI know this is a rather old one, but I am having the same problem with 6.x-1.0-beta6
Did you find a solution?
Comment #2
castawaybcn commentedComment #3
mh86 commentedI think this problem is caused by a wrong configuration of your view. I'm pretty sure, that the group multiple values feature is working with content taxonomy fields. Do you have the same problems with any other fields? And maybe you can provide some more configuration information.
Comment #4
castawaybcn commentedAs far as I know it is just happening with content taxonomy fields, but it could perfectly be a misconfiguration of my view.
Since I am not exactly sure what configuration would be more useful I am sending you both a screenshot of the view with the duplicate elements and the query. If there is anything else I can provide let me know, I am rather new to Drupal.
As you will see in the screenshot I am trying to show a task list. Duplicate items happen whe more than one person (taxonomy field) is assigned to a task (node of a specific content type).
I hope this is helpful, and thanks for your interest in this issue.
Comment #5
mh86 commentedtry following: administer your view and set "Distinct" (in "Basic settings") to "Yes"
Comment #6
castawaybcn commentedI take it all back, it seems I cannot use it because of a misconfiguration in the database. And I truly know next to nothing about MySQL...
I understand this is completely off topic, but do you have any clues on what may be happening? Here's the error log:
Comment #7
mh86 commentedyou shouldn't make that long queries, your mysql server will slow down! start with smaller views configurations.
there is definitely something wrong at the beginning with: SELECT COUNT(*) FROM (SELECT DISTINCT(node.nid) AS DISTINCT(node.nid)
...
Comment #8
castawaybcn commentedIt was my view being poorly configured, sorry about the confusion. In fact you helped a lot just by saying "start with smaller views configurations".
I did, and I now have a much simpler and faster configuration for my view, and without any duplicates ;)
Comment #10
TommyGuns commentedI couldnt derive a fix form this. My view is pretty simple already but spits out a syntax error as soon as I utilise distinct. Doesnt seem to be a slution for this around, alot of talk about it, maybe something for 5/7 and 7 but no 6/6.2 any help would be greatly appreciated.
Comment #11
Jb33 commentedI have the same issue with 6.x-1.0-rc2
Comment #12
Jb33 commented