cancel
Showing results for 
Search instead for 
Did you mean: 

WDCopyService.copySubtree - WDRuntimeException: nodes are incompatible

0 Kudos

Hi,

I'm trying to use the WDCopyService zu copy a contextnode (0..n) to a modelnode (0..n).

WDCopyService.copySubtree( wdContext.nodeMyContext(), wdContext.nodeMyModel() )

All I get at runtime is this:

com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: nodes are incompatible

Both nodes are structure-binded to the structure of the imported model.

Cardinality, attributes and attribute-names are the same.

The contextnode is mapped to the interface-controller and there marked as input-parameter.

Copying this node within the context works. Copying to the model utterly fails.

Any ideas on this?

Thanks in advance.

Alf

View Entire Topic
Former Member
0 Kudos

Hi,

WDCOpySubTree requires both the nodes to have the same depth and same structure insdie . Or both of them similar in that way.Or they recursive.

In case they are of a single level, try copyCorresponding and check.

And are they value node or model nodes. In case if they are model nodes are they from the sameclass..

Can u give us the complete structure of both the nodes.

Regards

Bharathwaj

Regards

Bharathwaj