CMDBuild Forum

Multimaps.index

Hi,

I tried to use the connector function to MSSQL. 

In my MSSQL, I have multiple entry for the same key. Then I received the error as below.

My question is where can I edit the Multimaps.index function?

 

Caused by: java.lang.IllegalArgumentException: Multiple entries with same key: CardEntry.KeyImpl[entry=CardEntry[type=ClassType[name=AnalogMonthlyData,attributes={RowID=SimpleAttribute[name=RowID,key=true], ConsumptionValue=SimpleAttribute[name=ConsumptionValue,key=false]}],values={RowID=16794028, ConsumptionValue=9007.755208333332}]]=CardEntry[type=ClassType[name=AnalogMonthlyData,attributes={RowID=SimpleAttribute[name=RowID,key=true], ConsumptionValue=SimpleAttribute[name=ConsumptionValue,key=false]}],values={RowID=16794028, ConsumptionValue=9007.755208333332}] and CardEntry.KeyImpl[entry=CardEntry[type=ClassType[name=AnalogMonthlyData,attributes={RowID=SimpleAttribute[name=RowID,key=true], ConsumptionValue=SimpleAttribute[name=ConsumptionValue,key=false]}],values={RowID=16794028, ConsumptionValue=1118.6128472222222}]]=CardEntry[type=ClassType[name=AnalogMonthlyData,attributes={RowID=SimpleAttribute[name=RowID,key=true], ConsumptionValue=SimpleAttribute[name=ConsumptionValue,key=false]}],values={RowID=16794028, ConsumptionValue=1118.6128472222222}]. To index multiple values under a key, use Multimaps.index.