What you need to do is check the literature.
Amen!
Or as sometimes said, if all else fails, read the instructions. And... five minutes in the lab can save five days in the library, yet, five minutes in the library can save five days in the lab. Been there, done all of the above.
It is difficult for us to do these reactions remotely without structures and in my case practical experience.
The mixed anhydride method can be a little tricky, but I don't know that is the problem here. A problem with it is often decomposition and forming the ethyl ester. That doesn't sound like the problem. When I did this reaction, I used triethylamine. I would not have substituted pyridine. In my case, the TEA-HCl salt formed and I removed it by filtration. I don't know the reaction is the same with pyridine. Once the mixed anhydride is formed, then you can use pyridine or better dimethylaminopyridine. This should only require a catalytic amount at this stage. Did you form the mixed anhydride?
I had done a similar reaction some time ago. As I recall, the method I used was from an ester and it was a slow reaction of hydroxylamine. I formed my hydroxylamine from the hydrochloride in anhydrous methanol and sodium methoxide.
Still, I'd go back to the literature and try to look at a variety of similar reactions. I'd try to think of how the reactions varied and what might be appropriate for your reaction.