ORDA Query (Why is attribute not found in data store?)

Why does the following line report the error “The “:att1” attribute
cannot be found in The “Table_1” datastore class”?

<code 4D>
$entity_selection_o:=ds.Table_1.query($queryString_t;$querySettings_o)
</code 4D>

The “Table_1” data class is:

[
“key_uuid”,
“name”
]

The query string is:

“:att1 = :val1”

The query settings are:

{
“parameters”: {
“att1”: “name”
},
“attributes”: {
“val1”: “A@”
}
}

What am I missing?

The above issue is occurring in v17R5 release (build 17R5.239769).

Resolved.

I had object keys reversed for query settings. They should be:

{
“attributes”: {
“att1”: “name”
},
“parameters”: {
“val1”: “A@”
}
}