He received a law degree from the Department of Law and Administration of the University of Warsaw. In the years 1912-1914, Chodacki belonged to the Riflemen's Association. Next, he served in the Polish Legions and in the Polish Army. On June 1, 1921, he served in the Highest Evaluating Commission; his home unit was the 34th Infantry Regiment in Biała Podlaska. On May 3, 1922, Chodacki's standing as lieutenant was verified with seniority dating from June 1, 1919 and the 168th rank in the infantry officers' corps. In the years 1922-1924, he followed the regular curriculum at the Higher Military Academy in Warsaw. On March 31, 1924, he advanced to the rank of captain with seniority dating from July 1, 1923 and the 131st rank in the infantry officers' corps. Having received an academic diploma of an officer of the General Staff after the completion of the curriculum, he was transferred to the Second Branch of the General Staff of the Polish Army in Warsaw on October 1, 1924. During his studies and service at the Staff, he officially remained officer of the 21st Infantry Regiment "Dzieci Warszawy". In the years 1927-1931, he was a military attaché to Finland and Sweden. On November 1, 1931, he was attached to the 67th Infantry Regiment in Brodnica, with which he underwent a practical leadership training session at the head of a riflemen's company. On December 10, 1932, Chodacki was given to the disposal of the Polish Ministry of Foreign Affairs for the period of six months. On June 30, 1933, he was transferred to the reserve, and at the same time from the reserve of the 21st to that of the 30th Infantry Regiment in Warsaw.
Diplomatic service
Chodacki was given the function of ministerial adviser in the Political Department of the Ministry of Foreign Affairs. On October 24, 1935, he became chargé d’affaires in the Polish mission to Czechoslovakia. He was a confidante of the foreign minister Józef Beck, who considered him the best politician among the officers transferred from military service to diplomacy. On December 30, 1936 Chodacki assumed the office of the Commissioner General of the Republic of Poland in the Free City of Gdańsk. During his term of office, he attained the rank of authorized minister and special envoy. His uncompromising attitude as General Commissioner caused the quarreling Polish organizations in Gdańsk to unite. As for the Polish policy toward the Free City, it did not change under Chodacki and continued to be marked by a strong opposition to the Nazification of the city. The Commissioner often intervened in the defense of Poles, whose health and life at the time was frequently endangered. During Chodacki's service as Commissioner, the work of Polish Intelligence was intensified as employees of the Commissariat collected information about the military preparations in the Free City. Still in August 1939 the Polish Commissioner, according to the accepted custom, paid a visit to the battleship Schleswig-Holstein. On September 1, 1939, Chodacki, along with other employees of the Polish Commissariat, was arrested by the Germans. As the result of the protests by the already-expelled High Commissioner of the League of Nations in Gdańsk, Carl Jacob Burckhardt, the Germans released Chodacki and others on the border with Lithuania on September 5.