Dynamic Attribute Set DMT error

heres an example of API for getting AttrSetD: