What is the table schema as returned by \d <table> in psql?
The tables are in various schemas; that one is in one called "access_control", but we always set the search path explicitly to (in this case) "access_control, public".
Anyway, if if were a problem with finding the function, I would be seeing a different error .The function successfully runs, it is just (apparently) occasionally generating the same UUID multiple times.