cancel
Showing results for 
Search instead for 
Did you mean: 

WDCopyService date problem

Former Member
0 Kudos

Hi all

I am coping as node like this

WDCopyService.copyElements(wdContext.nodeRpm_Periods(),wdContext.nodeRpm_PeriodsView());

This principle works perfectly for all nodes except one which contains two date fields. The dates come from the backend and contain dates stored as data type dats (YYYYMMDD), char(8). The error I get for the posted line above is:

Type conversion error, field ENDP, complex type class com.[mycustomer].prt.rpm.paf.model.Zkps_Rpm_Periods "

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

What is the datatype/model class of the field corresponding to ENDP in node Rpm_PeriodsView())?

A hint from the javadocs:

<i>Throws:

WDRuntimeException - if target is a model node and source is not a model node holding the same class.</i>

Regards,

Satyajit.

Answers (0)