12-19-05 07:48 AM
Hi,
I think this is probably a good error, i.e. it tells you what is wrong. Try
setting the field you want to make a distinguished field in the schema edito
r
and see if it lets you. It will probably give a clearer explanation.
You can only promote field attribute and field elements. Also I don't
believe you can promote fields in a loop. I don't know exactly what in your
schema you wish to promote but E2OILGM000GRP is how the SAP Adapter encodes
loops.
m
"Nateshan" wrote:
> Trying to assign value to message using xpath function.
> xpath(TestMsg,"/*[local-name()='DS1_002F_HM_C_ZOILMDD2_TAS_01' and
> namespace-uri()='http://DS1_002F_HM_C_ZOILMDD2_TAS_01.V3']/*[local-nam
e()='E2OILGM000GRP'
> and namespace-uri()='']/*[local-name()='E1OILGM' and
> namespace-uri()='']/*[local-name()='DATAHEADERREC' and
> namespace-uri()='']/*[local-name()='DOCNUM' and namespace-uri()='']")
= vGUID;
>
> I am getting the following error message when trying to assign values to t
he
> Message.
>
> selected a node which is not valid for property or distinguished field
> retrieval,
> or it selected no node at all. Only text-only elements or attributes may
be
> selected.
>
> I have seen the xml instance is having nodes where I am trying to populate
> the value.
>
> Thanks in Advance
> Chandra
>
[ Post a follow-up to this message ]
|