I am getting the following error:
System Error Detected: Database error
SQLExecDirect failed with [[ODBC Error: state=23000, nativeErr=547, err=[Microsoft][SQL Server Native Client 10.0][SQL Server]The INSERT statement conflicted with the FOREIGN KEY constraint "FKStatDataStatID__0F975522". The conflict occurred in database "poweradmin", table "dbo.Statistic", column 'StatID'.]
[ODBC Error: state=01000, nativeErr=3621, err=[Microsoft][SQL Server Native Client 10.0][SQL Server]The statement has been terminated.]
] for SQL=[SET NOCOUNT ON;
BEGIN TRAN;
INSERT INTO StatData (StatID, Value, Date) VALUES (1355, 15.076154, {ts N'2015-04-17 10:20:06'});
INSERT INTO StatData (StatID, Value, Date) VALUES (1359, 0.000272, {ts N'2015-04-17 10:20:06'});
INSERT INTO StatData (StatID, Value, Date) VALUES (1361, 0.000466, {ts N'2015-04-17 10:20:06'});
INSERT INTO StatData (StatID, Value, Date) VALUES (1358, 340.039094, {ts N'2015-04-17 10:20:06'});
INSERT INTO StatData (StatID, Value, Date) VALUES (1360, 582.079437, {ts N'[Trimmed]]
Anyone know how to fix this?