Reusing kamelet multiple times in same route #1233
-
Ask a questionI have created a kamelet that writes a custom log message with log action. When I try to use the Kamelet more than once in a route, I get an error saying that the id of the log action in the kamelet is not unique. The error is: Failed to start route X because of duplicate id detected: Y. Please correct ids to be unique among all your routes. What I am doing wrong? Karavan sets the id for the action. Is it possible to make it dynamic or what could I try? Thanks! VariantWeb Application Container Management (if applicable)Kubernetes Operating System (if applicable)Linux Version4.4.0 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 5 replies
-
Can you show your custom kamelet code |
Beta Was this translation helpful? Give feedback.
-
Can you give me an example how to use the nodePrefix? When I try to use it, every time I put something in the field and leave the page the field goes blank. Thanks! |
Beta Was this translation helpful? Give feedback.
-
@enter-marlah @davsclaus Can some one please provide simple how to use |
Beta Was this translation helpful? Give feedback.
Ah okay, you should remove those id's
You can also add nodePrefixId to the
route
and have it exposes as a property to the kamelet, where you can then specify some unique id.But ideally we should find a way to make kamelets use unique ids automatic so you wont have this problem anymore at all.
https://issues.apache.org/jira/browse/CAMEL-20687