12-09-2024 09:50 PM
🔧 Workato Tip of the Day: Avoid XML Pitfalls with Reserved Keywords!
Did you know? In Workato, using <command> in an XML message template might show a red mark at the bottom. 🚩 This happens because command may be reserved keyword in Workato. ( image attached #image_1: Before fixing the issue and ##Image_: After fixing the issue)
🛠️ Quick Fix:
Add a prefix or suffix, like <commands> or <name_command>, to avoid red mark.
✅ Making this small tweak ensures smoother workflows and error-free integrations.
Stay ahead with these handy tips! 💡✨
This simple adjustment can make your XML integrations error-free and reliable. Keep this in mind for your next project! 🌟
Solved! Go to Solution.
12-17-2024 07:17 AM
Hi @Prudvi,
Workato XML Processing Logic vs JSON Processing Logic:
XML: Workato's XML engine may enforce stricter validation rules or reserve certain tags for internal use due to XML's hierarchical structure and metadata handling. Tags like `command` could trigger errors during parsing if they conflict with system-defined keywords.
JSON: Workato treats JSON as a more flexible data structure and doesn’t enforce strict naming rules, allowing keys like command without issues.
This is my understanding on the JSON and XML parsing logic. Hope I have answered your question.
12-17-2024 04:22 AM - edited 12-17-2024 04:26 AM
Hi Shiva,
I have tried to create a message template using JSON format and I don't see the error message as mentioned in the above article.
Any reason why workato is only considering command as a reserved keyword for XML not for JSON.
Regards,
Siddhartha
12-17-2024 07:17 AM
Hi @Prudvi,
Workato XML Processing Logic vs JSON Processing Logic:
XML: Workato's XML engine may enforce stricter validation rules or reserve certain tags for internal use due to XML's hierarchical structure and metadata handling. Tags like `command` could trigger errors during parsing if they conflict with system-defined keywords.
JSON: Workato treats JSON as a more flexible data structure and doesn’t enforce strict naming rules, allowing keys like command without issues.
This is my understanding on the JSON and XML parsing logic. Hope I have answered your question.
12-17-2024 07:50 AM
Hi Shiva,
Thanks for the response.
wanted to confirm, all the components created in workato are internally converted to XML.
Regards,
Siddhartha
12-17-2024 08:07 AM
Hi Prudvi,
Not necessarily, it is purely depends on which component we are using.