Horayos2: 2
הוֹרָה בִפְנֵי עַצְמוֹ וְעָשָׂה בִפְנֵי עַצְמוֹ — מִתְכַּפֵּר לוֹ בִפְנֵי עַצְמוֹ. הוֹרָה עִם הַצִּבּוּר וְעָשָׂה עִם הַצִּבּוּר — מִתְכַּפֵּר לוֹ עִם הַצִּבּוּר.  שֶׁאֵין בֵּית דִּין חַיָּבִים עַד שֶׁיּוֹרוּ לְבַטֵּל מִקְצָת וּלְקַיֵּם מִקְצָת, וְכֵן הַמָּשִׁיחַ; וְלֹא בַעֲבוֹדָה זָרָה עַד שֶׁיּוֹרוּ לְבַטֵּל מִקְצָת וּלְקַיֵּם מִקְצָת.
[If] he ruled independently and acted independently, he is atoned for independently. [If] he ruled with the community and acted with the community, he is atoned for with the community.  For the court is not liable unless it rules to abolish part and to retain part, and so [too] the Anointed Kohen, and neither [are they liable] with regard to idol- atry unless they rule to abolish part and to retain part.