This error occurs if the element in the SOAPMessageValidation policy is set to a resource type not supported by the policy. Supported resource types are xsd and wsdl.
Diagnosis
Identify the SOAPMessageValidation policy name and the invalid resource type used in the element of the policy. You can find both of these items in the error message. For example, in the following error the SOAPMessageValidation policy name is SOAP-Message-Validation-1 and the resource type is py.
Examine the failed SOAPMessageValidation policy XML. If the resource type specified for the element matches the invalid resource type identified in Step 1 above, then that's the cause of the error.
For example, the following policy specifies the resource type as py, which matches what's in the error message:
Because the resource type used in is not xsd or wsdl,
the deployment will fail with the error shown above.
Resolution
Ensure that the resource type specified in the element of the SOAPMessageValidation policy is set to either xsd or wsdl, and that the resource file uses correct formatting.
To correct the example SOAPMessageValidation policy shown above, you could modify the resource type to either xsd or wsdl:
This error occurs if the resource script referenced in the element of the SOAPMessageValidation policy contains an error that prevents it from compiling during deployment.
Diagnosis
Identify the SOAPMessageValidation policy name and the resource script used in the policy. You can find both of these items in the error message. For example, in the following error the SOAPMessageValidation policy name is SOAP-Message-Validation-1 and the resource script is SOAP-Message-Validation-1.wsdl.
Saving the API proxy through either the Apigee UI or API fails with
this error message:
Error Saving Revision revision_number
MessageValidation soap_message_validation_policy:
RootElement name is not specified.
Example Error Message
Error Saving Revision 2
MessageValidation SOAP-Message-Validation-1: RootElement name is not specified.
Example Error Screenshot
Cause
This error occurs if the element in the SOAPMessageValidation policy
does not contain the root element's name.
Diagnosis
Identify the SOAPMessageValidation policy name where the error occurred. For
example, in the following error, the SOAPMessageValidation policy name is
SOAP-Message-Validation-1:
Error Saving Revision 2
MessageValidation SOAP-Message-Validation-1: RootElement name is not specified.
Examine the failed SOAPMessageValidation policy XML. If the root element name
used for validation is not specified in the element, then that's the
cause of the error.
For example, the following policy does not specify the root element name:
Saving the API proxy through either the Apigee UI or API fails with
this error message:
Error Saving Revision revision_number
MessageValidation soap_message_validation_policy: RootElement name root_element_name is invalid.
Example Error Message
Error Saving Revision 2
MessageValidation SOAP-Message-Validation-1: RootElement name 1GetPriceResponse
is invalid.
Example Error Screenshot
Cause
This error occurs if the element in the SOAPMessageValidation policy
contains a root element name that does not adhere to XML rules for valid element
naming.
Diagnosis
Identify the SOAPMessageValidation policy name where the error occurred. For example, in the following error, the SOAPMessageValidation policy name is SOAP-Message-Validation-1:
Error Saving Revision 2
MessageValidation SOAP-Message-Validation-1: RootElement name 1GetPriceResponse
is invalid.
Examine the failed SOAPMessageValidation policy XML. If the root element name
specified in the element does not match the criteria for a valid XML
element name, then that's the cause of the error.
For example, the following policy has a root element name that starts with a
number, which is invalid. An element name containing spaces would also be invalid.
Deployment of the API proxy through either the Apigee UI or API fails
with this error message:
Error Deploying Revision revision_number
Resource "resource_url" has no element definitions.
Example Error Message
Error Deploying Revision 2 to test
Resource "xsd://Script-1.xsd" has no element definitions.
Example Error Screenshot
Cause
This error occurs if the resource file specified in the element of
the SOAPMessageValidation policy does not contain any elements that can be used
for validation.
Diagnosis
Identify the resource file missing element definitions from the error message.
For example, in the following error, the resource file used in the is xsd://Script-1.xsd:
Error Deploying Revision 2 to test
Resource "xsd://Script-1.xsd" has no element definitions.
Examine the resource file identified in Step 1. If there are no elements defined,
then that's the cause of the error.
For example, the following resource file Script-1.xsd doesn't contain any elements:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-12 UTC."],[[["This document covers common errors encountered when deploying or saving API proxies in Apigee, specifically related to the `SOAPMessageValidation` policy."],["The `InvalidResourceType` error occurs when the `\u003cResourceURL\u003e` element in the `SOAPMessageValidation` policy specifies a resource type other than `xsd` or `wsdl`."],["The `ResourceCompileFailed` error arises when the resource script referenced in the `\u003cResourceURL\u003e` element of the `SOAPMessageValidation` policy contains errors that prevent it from compiling."],["The `RootElementNameUnspecified` error occurs when the `\u003cElement\u003e` element in the `SOAPMessageValidation` policy does not specify the root element's name, which is necessary for validation."],["The `InvalidRootElementName` error is triggered if the root element name in the `\u003cElement\u003e` element of the `SOAPMessageValidation` policy does not adhere to XML rules for valid element naming."],["The `NoElements` error appears if the resource file referenced in the `SOAPMessageValidation` policy does not contain any element definitions necessary for proper validation."]]],[]]