How do you trigger a Steam achievement within blueprint, from a function?

I can trigger a Steam achievement just fine usually by using Cache Achievements and Write Achievement Progress. However, neither of these will copy into a function to trigger the achievement. When I try to copy from the level blueprint into the function, it doesn’t do it, and throws the error “Conflicting nodes substituted during paste”, and nothing is pasted. I can’t manually enter these calls either from within the function. How can I set a Steam achievement then from a function?