ZAUTHENTICATE.Mac cannot be saved in %SYS other macros can
When trying to save ZAUTHENTICATE.mac the following error occurs

If it is wrongly named as like ZATHIENTICATE.mac in the %SYS namespace it saves ok so it is something blocking saving a new fresh ZAUTH code of the correct name- we have no other delegated auth that I am aware of.
Comments
what version of IRIS is this occurring on?
IRIS for Windows (x86-64) 2022.1.2 (Build 574U) Fri Jan 13 2023 15:00:26 EST [Health:3.5.0-1.m1]
This has been an upgraded version from a previous i think 2016 version about a year and a half ago
If I remember correctly, I had to make HSLIB read/write and then I was able to update %SYS when we used ZAUTHENTICATE.mac. We have since moved to using LDAP.
What product? If it's HealthShare then you should use the class HS.Local.ZAUTHENTICATE in HSCUSTOM namespace.
The routine was set to be mapped for some reason
Glad you figured it out! Thank you for letting us know that it was resolved and was a configuration issue.
If it was mapped to HSLIB, then I think you are using HealthShare, if so, you are not supposed to change that mapping, instead you should use/modify HS.Local.ZAUTHENTICATE class in HSCUSTOM namespace.
I believe the mapping will be recreated when updating/upgrading the system.
If you are using HealthShare, and I do believe so, please read the following documentation (login required):
Custom Authentication Processing using the Local ZAUTHENTICATE
There you will find:
Important:
The ZAUTHENTICATE provided with HealthShare includes callbacks that allow you to add custom processing at specific entry points. Do not modify the supplied ZAUTHENTICATE. Instead, add your callback processing as class methods in the class HS.Local.ZAUTHENTICATE
I just realized that with IRIS for Health (and I maybe also HelthShare connect) ZAUTHENTICATE is mapped to HSLIB and you should use/modify HS.Local.ZAUTHENTICATE class in HSCUSTOM namespace.