function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Craig PothierCraig Pothier 

cvc-complex-type.2.4.a: Invalid content was found starting with element 'modules'.

I downloaded the force IDE and was able to successfully start a new project. My issue is with the files that were downloaded during the project creation. I received 10 errors on 10 individual package.xml files from the referenced package section. All the sections have to do with oauth. The entire error I am receiving is as follows:

Description    Resource    Path    Location    Type
cvc-complex-type.2.4.a: Invalid content was found starting with element 'modules'. One of '{"http://soap.sforce.com/2006/04/metadata":description, "http://soap.sforce.com/2006/04/metadata":namespacePrefix, "http://soap.sforce.com/2006/04/metadata":objectPermissions, "http://soap.sforce.com/2006/04/metadata":postInstallClass, "http://soap.sforce.com/2006/04/metadata":setupWeblink, "http://soap.sforce.com/2006/04/metadata":types, "http://soap.sforce.com/2006/04/metadata":uninstallClass, "http://soap.sforce.com/2006/04/metadata":version}' is expected.    package.xml    /craig.pothier@newscred.com.dev/Referenced Packages/C5r_Desktop_oauth    line 5    XML Problem

Here is an example from one of the package.xml files:

<?xml version="1.0" encoding="UTF-8"?>

<Package xmlns="http://soap.sforce.com/2006/04/metadata">

    <fullName>C5r_Desktop_oauth</fullName>

    <apiAccessLevel>Unrestricted</apiAccessLevel>

    <modules>

        <module>

            <label>C5r_Desktop_oauth</label>

            <moduleType>connected</moduleType>

            <name>C5r_Desktop_oauth</name>

            <types>

                <members>C5r_Desktop_oauth_devConfig</members>

                <name>ConnectivityDevConfigMetadata</name>

            </types>

            <types>

                <members>sf_chttr_apps__C5r_Desktop_oauth</members>

                <name>Module</name>

            </types>

            <version>9.0</version>

        </module>

    </modules>

    <namespacePrefix>sf_chttr_apps</namespacePrefix>

    <version>31.0</version>

</Package>


Anyone have any ideas?
Rich PRich P
I am getting a similar error after:
1) refreshing a sandbox
2) seeming to get locked out
3) refreshing password and token
4) still locked out
5) creating a new sandbox
6) new password/token not working
7) logging in with old credentials

There seems to be a problem with transferring password changes to the sandboxes?

Description    Resource    Path    Location    Type
cvc-complex-type.2.4.a: Invalid content was found starting with element 'modules'. One of '{"http://soap.sforce.com/2006/04/metadata":description, "http://soap.sforce.com/2006/04/metadata":namespacePrefix, "http://soap.sforce.com/2006/04/metadata":objectPermissions, "http://soap.sforce.com/2006/04/metadata":postInstallClass, "http://soap.sforce.com/2006/04/metadata":setupWeblink, "http://soap.sforce.com/2006/04/metadata":types, "http://soap.sforce.com/2006/04/metadata":uninstallClass, "http://soap.sforce.com/2006/04/metadata":version}' is expected.    package.xml    /Salesforce Sandbox/Referenced Packages/C5r_Desktop_oauth    line 5    XML Problem