I have seen this mistake a few times now so I felt it deserves an article. It occurs when you attempt to use the ATTRIBUTES clause on a DYNAMIC ARRAY OF RECORD. It looks like the ATTRIBUTES clause is being ignored but what has actually happened is that you have put it in the wrong place, you have added it to the RECORD when you should add it to the ARRAY.
Read more at
https://4js.com/ask-reuben/ig-217/