I have been given a schema which I am having difficulty promoting elements from.
The whole schema has a naming convention as below, where the name contains a dash, or multiple dashes.
<xs:element name=”Source-id“ type=”xs:string“ />
When you promote the above element, and then try to utilize that property in an orchestration using a decide node, the expression editor will not accept the promoted property as valid as it get confused with the ‘-‘ in Source-ID
e.g QofDATFile.Submission.Source-id == “ABC”
Will result in errors :-
Identifiers ‘source’ does not exist in …
Identifiers ‘id’ does not exist in….
The ‘-‘ is being treated as a minus sign. Is there a way to rename the promoted property to ‘SourceID’?
I am obviously not able to modify the original schema as it is a third partys schema.
I could create a transform to map the invalid schema elements to something simpler, but the schema is huge and I dont really want to do this.
Any suggestions would be welcome.
Regards
Jon