insert or update on table "testrun2attachment" violates foreign key constraint "testrun2attachment_runid_fkey"' - opentap-proj

I did run a test plan. I did some custom made test steps, a result listener, but no DUT. However I get the following error:
16:39:22.181 PGSQL Resource "opentap # localhost:5433" opened. [173 ms]
16:39:22.181 Summary ------ Summary of test plan started 09/10/2020 16:39:22 ------
16:39:22.181 Summary --------------------------------------------------------------
16:39:22.181 Summary ----- Test plan completed with verdict Error in 2.33 ms ------
16:39:22.210 PGSQL Error in OnTestPlanRunCompleted for 'opentap # localhost:5433': '23503: insert or update on table "testrun2attachment" violates foreign key constraint "testrun2attachment_runid_fkey"'
16:39:22.216 PGSQL Resource "opentap # localhost:5433" closed. [1.22 ms]
The error message seems cryptic to me.

Related

Error occurred during execution of the database script

I pushed a commit to git, and when I tried publishing the site, I get this error
'Web deployment task failed.(An error occurred during execution of the
database script.The error occurred between the following lines of the
script: 4264 and 4279. "IF NOT EXISTS(SELECT*FROM[_EFMIGRATIONHISTO"
Cannot insert the value NULL into column ' '.
I have searched everywhere and I cannot find a solution, and now I'm getting the 'Site Under Construction' error when I try my site's URL.
From the error:
You have a table Called 'Notes'
You are trying to insert some data in the 'Notes' table
The migration script is trying to insert data but the value for the 'PrescriberId' column is null in your migration script
Try to put a value for the 'PrescriberId' or set the 'Identity Increment' property of the 'PrescriberId' column to 1 so that it generates an id while inserting the data.

Error on creating news archive on contao 3.5.16

If anyone familiar with contao,
I got a default contao error page when I try to create a news archive, I have check the log and nothing is wrong. Do I need add the news module first?
P.S I am newbie contao user, as a client only asked me to resolve this problem.
Last error log :
[12-Jan-2017 12:46:29 GMT] PHP Fatal error: Uncaught exception 'Exception' with message 'Query error: Unknown column 'master' in 'where clause' (SELECT id, title
FROM tl_news_archive
WHERE jumpTo IN (315) AND master=0
ORDER BY title)' thrown in /homepages/19/d124359810/htdocs/2016/system/modules/core/library/Contao/Database/Statement.php on line 295
I use 2 languages for the website with language extension.
I wonder if it has something to do with the language setting of main archive, because it somehow tells the error of unknown "master"
this is the screenshot of the interface when I tried to create a news archive.
Image : create new news archive
Your database is missing a column from the changelanguage extension. If you still have this extension installed, simply log into the Contao Install Tool and execute a database update.

System.invalidoperationexception xmlmodels are not editable

I have a problem I can not solve.
I have a edmx in my project and when I try to update I get this error:
An exception of type System.InvalidOperationException occurred while attempting to update the database. Exception Message: The XmlModels involved in this transaction are not editable.
Also I have in my TFS output:
TF10121: The path '\\\ C: \ Workspace \ C # \ wk_kapseo \ V5.6EDMX \ Kapseo_BDD \ LynxModel.edmx.diagram' was not found or is not supported. Type or select another path.
But I do not understand why?
I tried to delete and regenerate the edmx but it is similar.
I do not see what to try.
I had the exception 'System.InvalidOperationException' occurred while attempting to update the database. Exception Message: The XmlModels involved in this transaction are not editable. in the past.
In my case the problem occurred because the Visual Studio entity framework designer update model from database feature did not like when the file path to my model contained the characters 'C#'.
The # problem in the directory path can also prevent a new edmx creation.
I had the exception
Operation is not valid due to the current state of the object
and the output error
TF10121: The path \\C:\Sources\C#\Model1.edmx.diagram is not
found or not supported. Type or select a different path.

Quartz.Net error on common logging.

I am getting the following error:
2013-11-14 11:57:33,994 [TestScheduler_QuartzSchedulerThread] ERROR Common.Loggi
ng.Factory.AbstractLogger.Error(:0) - An error occurred while scanning for the n
ext trigger to fire.
Quartz.JobPersistenceException: Couldn't acquire next trigger: Cannot insert the
value NULL into column 'SCHED_TIME', table 'quartz.dbo.QRTZ_FIRED_TRIGGERS'; co
lumn does not allow nulls. INSERT fails.
The statement has been terminated. ---> System.Data.SqlClient.SqlException: Cann
ot insert the value NULL into column 'SCHED_TIME', table 'quartz.dbo.QRTZ_FIRED_
TRIGGERS'; column does not allow nulls. INSERT fails.
The statement has been terminated.
I am using the example from HERE and I think I need to understand how jobs work with ADO.Net Jobstore better. My code works perfectly with RAMJobStore. Is there something else I have to do to get ADO to scan for triggers?
Turns out when I looked closer at the errors it was referencing the older version of Quartz.net.

Delphi SQLite Update causing errors to appear

I have used Inserts, selects, updates, deleted without problem all over the program but for some reason this specific section causes it to except and not run the SQL I send it.
I am trying to "UPDATE SectionTable(AreaID) VALUES ('+IntToStr(ActClient.AreaID)+') WHERE SectionID='+IntToStr(iCount)"
The section with the ID "iCount" exists deffinately. The ActClient.AreaID is "2" and its overwriting null data in the "SectionTable" table.
What is the problem here?
OpenDatabase(slDb);
sltb:=sldb.GetTable('SELECT * FROM SectionTable WHERE SectionID='+IntToStr(iCount));
OutputDebugString(PAnsiChar(sltb.FieldAsString(sltb.FieldIndex['SectionID'])+sltb.FieldAsString(sltb.FieldIndex['Gender'])+sltb.FieldAsString(sltb.FieldIndex['CompetitionID'])));
sSQL := 'UPDATE SectionTable(AreaID) VALUES ('+IntToStr(ActClient.AreaID)+') WHERE SectionID='+IntToStr(iCount);
sldb.ExecSQL(sSQL);
CloseDatabase(slDb);
I get this error message appear when this is ran.
---------------------------
Debugger Exception Notification
---------------------------
Project CompetitionServer.exe raised exception class ESQLiteException with message 'Error executing SQL.
Error [1]: SQL error or missing database.
"UPDATE SectionTable(AreaID) VALUES (2) WHERE SectionID=2": near "(": syntax error'. Process stopped. Use Step or Run to continue.
---------------------------
OK Help
---------------------------
UPDATE table SET column = expression, column = expression WHERE predicates

Resources