What command did you wrote in tablenchairs.mcfunction? There might be some error that make the whole mcfunction invalid.
Not trying to critic you but unless you are absolutely sure about your commands, never said "that's not the problem". And try let others check your commands if possible. I heard so many times when people said that their commands are fine, but actually not.