I am guessing here, but...
First, I wonder if there is a TaggedValues collection there at all. Yes, I know the documentation says there is, but perhaps it is actually a MethodTags (or something) collection. Use Object Browser or something to check this.
Second, at the same time, whatever the collection name is, check to see if there is a GetByName method on this collection.
Last (of the three things I can think of), check that the value you are passing is what EA really wants to see. I don't usually retrieve Tagged Values by name, so I don't remember if there are any quirks in how the name should be formatted. [I really don't think there are any, but something is causing the error.] Throw together a 'normal' model fragment where a class (or some other entity) has a tagged value (not a MethodTag) and see if you can call it by name. Remember that tagged value names are case sensitive. Do you get an error?
If none of these work, send an email to
Sparx Support pronto. Perhaps it is a bug, or the documentation is missing something. Remember that Sparx is in the Land of AUS, so give them time to read and answer. If you send the note today (your time) you might even have a reply by start of business tomorrow.
If any of these work, or Sparx comes back with something please post back and let us know.
David