It wasn't my intention
Slightly more formal than fue sin querer. Used to clarify that you did not intend to cause offence or harm.
I'm sorry if I offended you, it wasn't my intention.
It wasn't my intention to interrupt the meeting.
—It wasn't my intention to cause you problems. —Don't worry.