Trying to upload .mobileconfig: "The file could not be parsed"

AVmcclint
Honored Contributor

I am trying to upload the mobileconfig found here as a Config profile but when I do, I get an error "The file could not be parsed". I copied the text directly into TextWrangler and added info for Skype for Business and Lync and then saved with the .mobileconfig extension. I can't figure out why the JSS can't parse it. I must be missing something. Any ideas? Here's the full text including my additions:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>PayloadContent</key>
    <array>
        <dict>
            <key>PayloadContent</key>
            <dict>
                <key>com.microsoft.autoupdate2</key>
                <dict>
                    <key>Forced</key>
                    <array>
                        <dict>
                            <key>mcx_preference_settings</key>
                                <dict>
                                    <key>ChannelName</key>
                                    <string>Production</string>
                                    <key>DisableInsiderCheckbox</key>
                                    <true/>
                                </dict>
                                <key>Applications</key>
                                <dict>
                                    <key>/Applications/Microsoft Excel.app</key>
                                    <dict>
                                        <key>Application ID</key>
                                        <string>XCEL15</string>
                                        <key>LCID</key>
                                        <integer>1033</integer>
                                    </dict>
                                    <key>/Applications/Microsoft Lync.app</key>
                                    <dict>
                                        <key>Application ID</key>
                                        <string>UCCP14</string>
                                        <key>LCID</key>
                                        <integer>1033</integer>
                                    </dict>
                                    <key>/Applications/Microsoft OneNote.app</key>
                                    <dict>
                                        <key>Application ID</key>
                                        <string>ONMC15</string>
                                        <key>LCID</key>
                                        <string>1033</string>
                                    </dict>
                                    <key>/Applications/Microsoft Outlook.app</key>
                                    <dict>
                                        <key>Application ID</key>
                                        <string>OPIM15</string>
                                        <key>LCID</key>
                                        <integer>1033</integer>
                                    </dict>
                                    <key>/Applications/Microsoft PowerPoint.app</key>
                                    <dict>
                                        <key>Application ID</key>
                                        <string>PPT315</string>
                                        <key>LCID</key>
                                        <integer>1033</integer>
                                    </dict>
                                    <key>/Applications/Microsoft Word.app</key>
                                    <dict>
                                        <key>Application ID</key>
                                        <string>MSWD15</string>
                                        <key>LCID</key>
                                        <integer>1033</integer>
                                    </dict>
                                    <key>/Applications/Skype for Business.app</key>
                                    <dict>
                                        <key>Application ID</key>
                                        <string>MSFB16</string>
                                        <key>LCID</key>
                                        <integer>1033</integer>
                                    </dict>
                                    <key>/Library/Application Support/Microsoft/MAU2.0/Microsoft AutoUpdate.app</key>
                                    <dict>
                                        <key>Application ID</key>
                                        <string>MSau03</string>
                                        <key>LCID</key>
                                        <integer>1033</integer>
                                    </dict>
                                </dict>
                            </dict>
                        </dict>
                    </array>
                </dict>
            </dict>
            <key>PayloadEnabled</key>
            <true/>
            <key>PayloadIdentifier</key>
            <string>19f84411-2444-495f-b0d4-06a7fab52352.alacarte.customsettings.fa56218f-622a-4307-9a28-2e075c883742</string>
            <key>PayloadType</key>
            <string>com.apple.ManagedClient.preferences</string>
            <key>PayloadUUID</key>
            <string>fa56218f-622a-4307-9a28-2e075c883742</string>
            <key>PayloadVersion</key>
            <integer>1</integer>
        </dict>
    </array>
    <key>PayloadDescription</key>
    <string>Register MS Apps for MAU</string>
    <key>PayloadDisplayName</key>
    <string>MS Register Apps</string>
    <key>PayloadIdentifier</key>
    <string>co.example.microsoft.autoupdate2</string>
    <key>PayloadOrganization</key>
    <string>Example Co</string>
    <key>PayloadRemovalDisallowed</key>
    <true/>
    <key>PayloadScope</key>
    <string>System</string>
    <key>PayloadType</key>
    <string>Configuration</string>
    <key>PayloadUUID</key>
    <string>19f84411-2444-495f-b0d4-06a7fab52352</string>
    <key>PayloadVersion</key>
    <integer>1</integer>
</dict>
</plist>
1 ACCEPTED SOLUTION

brodjieski
New Contributor II

Looks like there is an extra closing /dict on line 81.

View solution in original post

3 REPLIES 3

brodjieski
New Contributor II

Looks like there is an extra closing /dict on line 81.

AVmcclint
Honored Contributor

weird. I guess that'll do it. I completely forgot about the availability of online XML validators. I ran it through one I found and it confirmed the problem. I removed that one line and I can now upload to the JSS. thanks.

brodjieski
New Contributor II

You can also use plutil to get a quick validation from the terminal. The above .mobileconfig actually gave an error on the array tag, which was correct... just one line off.

plutil -lint <.xml | .mobileconfig | .plist>