on 08-17-2011 1:13 PM
HI, XI/PI experts!
I am new in PI 7.1 (Ehp1 SP 7), previously work with PI 7.0.
I faced with problem of mapping optional target element, when queue has just SUPPRESS element. I expected to suppressing mapping of the target element, but mapping program raise exception:
Cannot create target element
/ns0:Messages/ns0:Message1/MT_DiadocMethods/ConnectInfo/TraceInfo/Folder.
Values missing in queue context.
Target XSD requires a value for this element, but the target-field mapping does not create one.
Check whether the XML instance is valid for the source XSD,
and whether the target-field mapping fulfils the requirement of the target XSD
XSD Folder declaration:
<xsd:element name="Folder" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>
u043Au0430u0442u0430u043Bu043Eu0433 u0434u043Bu044F u0442u0440u0430u0441u0438u0440u043Eu0432u043Au0438 u0447u0435u0440u0435u0437 u0444u0430u0439u043Bu044B
</xsd:documentation>
</xsd:annotation>
</xsd:element>
[http://imagepost.ru/?v=queue_for_optional_element_fol.PNG|http://imagepost.ru/?v=queue_for_optional_element_fol.PNG]
If put mapWithDeffault with value "hello" between ifWithoutElse and target element Folder, then exceptions not raised, but target element also not created
15:53:03 Start of test
Compilation of MM_Diadoc_DownloadNewEvents__DiadocMethods_q successful
Document start
Start tag [ns0:Messages]
Add raw attribute [ xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge"]
Start tag [ns0:Message1]
Start tag [MT_DiadocMethods]
Start tag [ConnectInfo]
..........................
Start tag [trace_level]
Put value [4]
Close tag [trace_level]
Start tag [TraceInfo]
Start tag [TraceViaMail]
.........................
Close tag [TraceViaMail]
Close tag [TraceInfo]
...................
Close tag [ConnectInfo]
..............................
Close tag [MT_DiadocMethods]
Close tag [ns0:Message1]
Close tag [ns0:Messages]
Document end
Execution of mapping on server took 1160 milliseconds Executed successfully
15:53:05 End of test
<Display Queue> show that queue after mapWithDeffault has <null> value:
[http://imagepost.ru/?v=mapwithdeffault.PNG|http://imagepost.ru/?v=mapwithdeffault.PNG]
Inserting mapWithDeffault is workaround for this situation, but I am interesting to understand principle of SUPPRESS in 7.1
Thanks in advance and sorry for my English !
Hi,
To understand the Suppress you can refer the below blog
/people/stefan.grube/blog/2006/01/09/the-use-of-suppress-in-the-xi-30-graphical-mapping-tool
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.