cancel
Showing results for 
Search instead for 
Did you mean: 

XSJob - Error on CDS Entity

former_member187794
Participant
0 Kudos

Hi Friends

I have written a XSJS to call a SOAP Service and with the response, update a CDS table. XSJS is working as expected.

But when I configure the XSJob to call this XSJS, I am getting an error "Error: XSDS: register: duplicate entity"

Anyone has any suggestions? Or did someone faced this before?

Regards

Giri

former_member187794
Participant
0 Kudos

There is no separate logic for this. Hence did not put any code base.

Accepted Solutions (1)

Accepted Solutions (1)

former_member187794
Participant
0 Kudos

The problem was:

I have defined all the XSDS definitions, inside a function. When I moved them out of function, it worked.

Regards

Giri

SergioG_TX
Active Contributor
0 Kudos

i am not sure of your req... but maybe the definition was misplaced and out of scope ???

glad to hear you were able to solve the issue -

Answers (1)

Answers (1)

SergioG_TX
Active Contributor
0 Kudos

the issue seems to be on a duplicate record... most likely you have duplicate keys.

have you looked at the data... try to select and then select distinct to see if there are different number of total records.

the error message looks correct

former_member187794
Participant
0 Kudos

Thanks Sergio. But there are no duplicate records. I am assuming the issue might be with the definition of entity (importEntity) in XSDS logic

Regards

Giri