Issue downloading Office 365 Click-to-run – Error code 30125-1007 (502)

When trying to download Office 365 Click-to-run one of the steps you have to follow is to configure an XML file with your source path, client edition, channel etc. You also have to specify the language you want to download.

<Configuration>
<Add OfficeClientEdition="32" Channel="Monthly" OfficeMgmtCOM="TRUE">
<Product ID="O365ProPlusRetail">
<Language ID="en-us"/>
</Product>
</Add>
<Display Level="None" AcceptEULA="TRUE"/>
</Configuration>

If you try to use a language ID that is not supported in Office 2016 you will get the error 30125-1007 (502):

OfficeCouldntInstall

The fix is to make sure you use one of the supported language IDs from the list at the following link:

https://technet.microsoft.com/en-us/library/cc179219(v=office.16).aspx

Bonus cool stuff: You can create your Office download and configuration XML file using this handy GitHub tool: https://officedev.github.io/Office-IT-Pro-Deployment-Scripts/XmlEditor.html