We were testing latest release 17.9.1(Problem is also present on older versions). We have found that hyperlink is not setting on shapes if hyperlink name contains any special character(e.g. @, # , - etc). In the attached test case hyperlink name contains - (hyphen).
PFA test case:
HyperlinkTest.zip (152.1 KB)
Here code is like this :
Hyperlink hl = new Hyperlink();