Oh damn. You are so clever!!! That was it. It was part of my code where I update the post slug based on the post title. I removed that code and tested the post update/publish part only, when acf have already been created. Thank you so much! Saved me a lot of time!