Here is what I found:
I have a folder in DAM named xpath. Like this:
/content/dam/pdf/xtype
WHen i search via xpath - i get a result:
[img]XPATH1.png[/img]
Now when i do the same search on this path:
/content/dam/as/xtype
[img]xpath2.png[/img]
The error does occur. Look like you are correct - xpath and using as in the path does result in an error.
So either do 1 of 2 things:
1 - avoid using as in path
2 - try using JCR SQL to search when you use as in path
JCR SQL works:
[img]xpath3.png[/img]