Smart connector generation can fail due to various issues within the RAML or OAS specification that prevent the generator from correctly parsing or processing the API definition.
Before publishing your API specification to Exchange, verify the following points in your RAML or OAS definition:
URL-Reserved Characters in Values:
Ensure there are no colons (:) or spaces (), or other URL-reserved characters, in values that become part of a URL or identifier. This includes baseUri and id/example values. The generator passes these directly into a URI parser, which can throw errors like "Illegal character in scheme name at index 0…".
Example: An id value like 2026-03-18T10:14:55Z contains colons and will cause a failure.
Absolute baseUri / servers.url:
The baseUri (for RAML) or servers.url (for OAS) must be present and an absolute URL (e.g., https://api.example.com/v1), not a relative path.
{version} Placeholder with Defined Version:
If your baseUri uses a {version} placeholder, the API specification must explicitly define a version.
No Duplicate Parameter Names:
Ensure there are no duplicate parameter names within a single operation. This applies after combining URI, query, header, and form parameters. Duplicate parameter names can lead to schema validation failures during connector generation.
Supported Authentication Types:
Only the following authentication types are supported: Basic, OAuth 2.0, Pass-through, Digest, Custom, JWT, or unsecured. OAuth 1.0 is not supported for smart connector generation.
Supported Specification Formats:
The supported API specification formats are RAML 0.8/1.0 and OAS 2.0. OAS 3.x has limited support.
Valid Body Media Types and Type/Schema Definitions:
Verify that all body media types and their corresponding type/schema property definitions are valid and supported by the connector generator.
By checking these common issues, you can identify and resolve problems that lead to smart connector generation failures and non-descriptive error emails.
If these validations still doesnt resolve the issue at your end, please raise a support ticket with Mulesoft to check further.
005388338

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.