How can we help you today? How can we help you today?

Cleared up my server and DLM Build is now broken

I am currently evaluating DLM Automation and had a successful build process working on my server.

But I needed to clear some old databases which I have done and now my build is falling over even though there is nothing new in source control that would cause any issues.

1 It seems to be struggling with User Defined Data Types

[10:01:59][Step 1/2] Must declare the table variable "@CRR".
[10:01:59][Step 1/2] Parameter or variable '@CRR' has an invalid data type.' occurred when executing
[10:01:59][Step 1/2] the following SQL:
[10:01:59][Step 1/2] CREATE PROCEDURE [dbo].[CustomerReforecastInsert]
[10:01:59][Step 1/2] @CRR CustomerReforecastReading READONLY

2 Unable to resolve a Synonym (even thought that seems to be created earlier in the log)

[10:01:49][Step 1/2] VERBOSE: Creating [dbo].[vwFlowData]
[10:01:50][Step 1/2] WARNING: The error 'Synonym 'FLOWDATA' refers to an invalid object.' occurred

If I create an empty database with SQL compare then these errors are not highlighted. I am assuming that I can use DLM automation to create a new database on a virgin server. Also it can only create a synonym if the table it refers to exists on the build server (which it does).

3 Failing to create a view saying a table (already created earlier in log) does not exist. The table being referred to does have multiple triggers so could be an issue with triggers.

I am running this build in Teamcity and as I said was working fine until I removed some old development copies of the database I am trying to build from source control (tfs on visual studio online). I can create the database with SQL compare so what is the difference between that and DLM automation? Any help or pointers would be gratefully received.
quickstepper
0

Comments

3 comments

  • Peder_Rice
    I might be running into a similar issue with GRANT EXECUTE. It appears DLM Build is trying to create Stored Procedures and grant permissions on them before creating Roles and Users, which of course fails.
    Peder_Rice
    0
  • quickstepper
    Problem was resolved. Turned out to be a minor spelling error in a synonym pointing to a target database
    quickstepper
    0
  • [Deleted User]
    Thanks for letting us know @quickstepper, glad you got it fixed.

    @Peder_Rice does that help you with your issue?
    [Deleted User]
    0

Add comment

Please sign in to leave a comment.