Process development and optimisation studies for the manufacturing process of N-methyl paroxetine was done by applying Quality by Design (QbD) principles. A normal operating range was defined for each process parameter by technique of design of experiments and knowledge of process chemistry to ensure consistent high quality of advanced intermediate and control of impurities. Initial challenges faced during early process development, were overcome by novel approach using polar aprotic solvents like sulpholane. Finally DMSO was used to improve overall impurity profile significantly.We have demonstrated a " right first time" approach to avoid failures and bitter surprises during scale up in manufacturing plant.