Getting error when deploying Camel route: "Attribute 'headerName' is not allowed to appear in element 'setHeader'"

Solution Verified - Updated -

Issue

  • After deploying route on Fuse, we get the following error:
“Caused by: org.xml.sax.SAXParseException; lineNumber: 48; columnNumber: 79; cvc-complex-type.3.2.2: Attribute 'headerName' is not allowed to appear in element 'setHeader'."}}”

Environment

  • Fuse 7.x
  • XML DSL Camel

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content