Vietnam recorded a trade deficit for the ninth consecutive month, as factories continue to import machinery and materials to expand production, aiming to achieve the country's double-digit growth target this year.