I'm actually trying to add variation labels to a site using powershell script (SharePoint 2013), and i know there is no powershell script for the job so im looking at some c# object model and i found this cool guide which pointed me to add the variation labels to a hidden list.
the script are good and the labels was added, i can see it from the variation page, however when i try to create the hierarchy it says
"No Variation Root Web has been set - hierarchies cannot be created until a Variation Root is set."
I have double checked at at least 1 label was checked with "IsSource" thus not sure what else to make this work. hope someone experience this before can help me out on this.
I'm able to resolve this by deleting all the labels created by the script, Create and delete a temp label from the page manually, then rerun the script to add the labels. and it works but this defeat the purpose of automate the site provision using scripts.