Hello everyone,
I'm trying to insert some data from a time series to another time series using the following query:
insert into "test"."testing::TimeSeries.CostRevenueSubscriberKeyFigureSeries"
select
'ABC001' as "MODEL_ID",
"CUSTOMER_TYPE"||';'||
"REGION"||';'||
"COUNTRY_NAME",
"PRODUCT_ID",
'PROFIT' as "KEY_FIGURE",
"VALID_FOR_DATE",
"VALID_FOR_MONTH",
"PROFIT_AMOUNT"
from "test"."testing::TimeSeries.SubscriberCostRevenueSeries"
group by "CUSTOMER_TYPE","REGION","COUNTRY_NAME","PRODUCT_ID","VALID_FOR_DATE","VALID_FOR_MONTH","PROFIT_AMOUNT"uting
Upon executing the query I recieve the following error:
Could not execute 'insert into "test"."testing::TimeSeries.CostRevenueSubscriberKeyFigureSeries" select 'ABC001' as ...' in 5.583 seconds .
[301]: unique constraint violated: TrexUpdate failed on table 'test"."testing::TimeSeries.CostRevenueSubscriberKeyFigureSeries' with error: unique constraint violation in self check for table "test"."testing::TimeSeries.CostRevenueSubscriberKeyFigureSeriesen, constraint='$trexexternalkey$', udiv='6,ABC001;17,ME;Berlin;Germany;32,xyz;6,PROFIT;2015-02-01', pos=1048561, indexname=_SYS_TREE_CS_#775972_#0_#P0, rc=55
I would really appreciate it if someone could shed some light on the issue