SqlPackage Publish stops on error: An insufficient number of arguments were supplied for the procedure or function - database-project

I have a Visual Studio Database Project, containing whole database. Build passes without errors, but when I try to deploy the DACPAC to a database, the SqlPackage Publish stops on the following error:
An insufficient number of arguments were supplied for the procedure or function
There are some build warnings, but no warning describing the mentioned error.
Why is not the error thrown during build? Why is not the error thrown during build? Why is the error stopping deployment even if the build passed without error? It's too late, it should be catched during build IMHO.
Please is there anything I can do, some settings etc. that catches the error during build?
Thank you.

Related

Getting this Error in Orchestrator in UiPath Exception HResult Code : -2146233088

While trying to run the BOT from the Package deployed on the Orchestrator we are getting the below error, multiple times. But when trying to run from Uipath Studio or from the Tray we are not getting any error.
The Error as shown below
Reason: Cannot create unknown type '{clrnamespace:Activity.ABCActivty;assembly=Activity.ABCActivty}ABCActivty'. Exception HResult Code : -2146233088
Any suggestion will be helpful.
Thanks in Advance.
there is difference between the studio and orchestrator packages. Try to upload the last version from Studio to Orchestrator and be sure that your Orchestrator is set properly.
Personally I in your case would remove my old settings (robots, environments, machines, etc.) and would create them again, but they could just be updated to the last version)
Also take a look here: https://forum.uipath.com/t/error-when-executing-the-automation-from-uipath-orchestrator/71721

USQL Unit testing with ADL tools for VS 2017 - Error after upgrading to 2.3.4000.x

One of the team member after upgrading the ADL tools for VS to version 2.3.4000.x, getting the below error..
Error : (-1,-1) 'E_CSC_SYSTEM_INTERNAL: Internal error!
The ObjectManager found an invalid number of fixups.
This usually indicates a problem in the Formatter.'
Compile failed!
Tried to downgrade back to version ( 2.3.3000.2 ), it didn't help much.
If encountered similar issue, found the reason and resolved it, please share it.
After trying out few unsuccessful options, decided to clean up the files in USQLDataRoot including localrunmetadata and catalog folder. Still, when I submit a job to create a database, there was no error, but it didn’t create the database.
We had some powershell scripts to setup the database and other objects. Ran the powershell script, which created the database and procedures. Then we were able to run the tests successfully. One more thing to double check, make sure build platform is set to “x64”.

SonarQube 5.6 - MSBuild Fakes Generation failing (SonarQube.Integration.targets)

I posted a similar question here.
Unfortunately, this issue is coming up again after having upgraded our build machines to run on Visual Studio Online 2015's Build and Release Manager.
This is the error that I get from a solution that generates Fakes assemblies used in unit testing:
D:\builds\TFS2015agent_2_work\1\.sonarqube\bin\targets\SonarQube.Integration.targets(240,5):
error MSB3491: Could not write lines to file "D:\builds\TFS2015agent_2_work\1\.sonarqube\out\\f_AnyCPU_Release_9840\FilesToAnalyze.txt".
The process cannot access the file 'D:\builds\TFS2015agent_2_work\1\.sonarqube\out\f_AnyCPU_Release_9840\FilesToAnalyze.txt' because it is being used by another process. [D:\builds\TFS2015agent_2_work\1\s\FakesFilePath\f.csproj] [D:\builds\TFS2015agent_2_work\1\s\FakesFileProj]
2016-09-13T20:01:37.6477261Z GENERATEFAKES : error : project compilation failed with exit code 1 [D:\builds\TFS2015agent_2_work\1\s\FakesFilePath\]
Does anyone have an idea of why this is happening? What process is causing the error? Could it possibly be related to the fakes compiling while SonarQube tries to access it?

TeamCity project for deployment fails with Exit Code 1

I am adding a SQL script(StoredProc) for deployment using TeamCity Projects and the deployment fails and says(* Process exited with Code 1). It throws an Error in Deploying script to DB. But it was fine before.
Seems to me some issue with permissions, but I havent changed any.
Could anyone enlighten?
Thanks this issue is resolved, I was missing a build error( was creating an SP in the script that I was deploying, but which already existed in DB with same name).
The exit code error message isnt always very descriptive, but stumbled upon "already exists" keyword somewhere in between the build-log. Hence rectified .
Good idea to examine log carefully.

Unexpected System.Reflection.TargetInvocationException error executing SQL command

MSBUILD - When executing DDL file I get this error:
Unexpected System.Reflection.TargetInvocationException error executing SQL command
Before this execution two other ones are executed with no problems.
I'm assuming that you're using the ExecuteDDL task from the MSBuild Community Tasks library. If so, I've run into the same issue before and I have always found that the script fails if I run it manually in SQL Management Studio.
I recommend that you run the two scripts that succeeded, then running the on that's failing manually and make sure that it doesn't have any errors.