var spellname = "repeating_preparations_-kc0muupybttztwjz1zj_preparations_name"; var x = findObjs({_type: 'attribute',_characterid:character.id,name: spellname},{caseInsensitive: true})[0]; log(x); /*returns undefined */ This returns undefined. However, @{Basis|repeating_preparations_-kc0muupybttztwjz1zj_preparations_name} Does work. What am I doing wrong? I already made sure that the character.id is correct log(character); {"name":"Basis","bio":"","gmnotes":"","_defaulttoken":1449143182195,"archived":false,"inplayerjournals":"","controlledby":"","_id":"-K19xgZ3xvBkGPm-gcnl","_type":"character","avatar":"<a href="https://s3.amazonaws.com/files.d20.io/images/7161616/2bf-VdRHlIPT2cOWT9RHQA/max.png?1421333900" rel="nofollow">https://s3.amazonaws.com/files.d20.io/images/7161616/2bf-VdRHlIPT2cOWT9RHQA/max.png?1421333900</a>"} I also made sure the attribute exists by logging all attributes var alla = findObjs({_type: 'attribute',characterid:character.id}); log(alla); /*other attributes*/{"name":"repeating_preparations_-KC0muUpYBTtZTWjz1ZJ_preparations_name","current":"Beeinflussen","max":"","_id":"-KC0muWQf9Yy2bhOLgCg","_type":"attribute","_characterid":"-K19xgZ3xvBkGPm-gcnl"}/*other attributes*/ Any ideas?