cancel
Showing results for 
Search instead for 
Did you mean: 

Cardinality Error.

Former Member
0 Kudos

Hi,

I am new to web dynpro and was using a tutorial on:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdf...

to learn about select options in web dynpro. However when I execute the application in the browser, I get the following error message.

The following error text was processed in the system IDS : Number of Elements of the Collection of Node SELECTION.1.RANGE Violates the Cardinality.

I have tried various combinations of cardinality (both for the cardinality property and the selection property) for the range node in the view, but nothing seems to work.

Please help.

Mick

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Mike,

The cardinality for the node RANGE should be 0..N

This indicates that your node element can contain no elements or n number of elements.

This is what we requires in case of select options.

Former Member
0 Kudos

Thanks Sidh. It works.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Mick,

Do the following.

1. Instead of taking nodes seperately in component and view context and map them, use drag-and drop method to map the nodes i.e. drag-anddrop the component node to your view context.

2. check the cardinality 0..N.

Regards,

Anirban

Former Member
0 Kudos

Hi Mick,

Change the cardinality for the node to 0:n. This means that the node can have any lines of data or no data at all.