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
Force.comForce.com 

Enterprise wsdl error: Unsupported schema type: {http://www.w3.org/2001/XMLSchema}anyType

I have the wsdl file for enterprise edition but while creating the apex classes, its giving the following error:

Apex Generation Failed
Why is this error coming? Are there any workarounds?
Best Answer chosen by Admin (Salesforce Developers) 
Force.comForce.com

These are the code lines that are creating errors:

 

 

<element name="NewValue" nillable="true" minOccurs="0" type="xsd:anyType"/>
<element name="OldValue" nillable="true" minOccurs="0" type="xsd:anyType"/>

 I changed "anytype" to "string" and then i was able to generate apex classes from enterprise wsdls.

 

 

All Answers

Force.comForce.com

These are the code lines that are creating errors:

 

 

<element name="NewValue" nillable="true" minOccurs="0" type="xsd:anyType"/>
<element name="OldValue" nillable="true" minOccurs="0" type="xsd:anyType"/>

 I changed "anytype" to "string" and then i was able to generate apex classes from enterprise wsdls.

 

 

This was selected as the best answer
Josh VJosh V

I know it's been a while, but thanks!  This really helped me out!

SalesforceTechnicalSalesforceTechnical

This is really helpful and worked in just 1 min of change.

 

Thanks a lot for posting the answer :)

 

Dipak S

bharat004.is091.3910779915252478E12bharat004.is091.3910779915252478E12
thank u:)
manpreet singh 124manpreet singh 124
It worked.. Thanks :)
MuraliKrishna H 6MuraliKrishna H 6
Thaks for update this very usefull for us....