A proposal to withhold support for German Chancellor Angela Merkel should she once more campaign for the job didn't pass at a convention of her party's Bavarian affiliate.
The motion for the Bavarian Christian Social Union (CSU) not to support Merkel as chancellor for another term missed by a wide margin.
The CSU is an affiliate party of Merkel's Christian Democrats (CDU) in the state of Bavaria. Both parties are coalition partners in the federal government.
The motion criticized Merkel's open-border refugee policy, which has let an unprecedented number of migrants into the country during the last year. CSU leader Horst Seehofer has repeatedly attacked Merkel for her pro-refugee stance and demanded that she put a cap on the number of migrants entering the nation.
Merkel has so far not said whether she will run again for the German government's highest post next year.
At the CSU convention, held in Munich on Friday and Saturday, the party, which considers itself "a conservative party of the future" with "Judeo-Christian roots," approved a new 41-page party programme.
The programme focused largely on topics related the migration crisis in Europe: a cap on immigration; a rejection of dual citizenship; a strong state as an answer to terrorism; and clear boundaries for the influence of Islam.
Bavaria has been on high alert since July, when two terrorist attacks - both claimed by Islamic State and both carried out by asylum seekers - took place in the southern German state in the space of one week.