Errors creating package


Author
Message
Trent Taylor
Trent Taylor
StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Ahhh...priorities.  You need to set the view priorities since one relies on the other.  This is a relatively new feature of the DDT.  It will need to look like this:

I went ahead and made your profile work, so if you do this you should be in good shape.

Is there any way to set a folder for the file(s)?

We are adding a new feature...literally as we speak here, that allows you to have pre and post scripts that execute.  You would have to write a pre-script that sets the folder for you...which honestly I recommend against.  This is a setting on the SQL Server side of things and when you start moving the MDF file locations...well...it becomes a full time job and your responsibility instead of SQL Servers.  But if you have this need you will be able to set the folder location via a pre-execution script in the next update.

How do I get rid of the extra data (.mdf) file?

If it is not in use, then just "smoke it"  but if it IS in use, then you may have to detach it first.  Again, this would need to be done via a script...or manually through the Management Studio.

Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Also, I'm also having problems managing my filegroups. I just have one (PRIMARY), but in some cases, the file was not originally placed in the standard SQL server data folder, but in another folder. I just noticed that I now have two data files (plus a log file): my original and an updated one added by the DDT. So, two questions:



1. Is there any way to set a folder for the file(s)?

2. How do I get rid of the extra data (.mdf) file?



I sometimes wish learning all this stuff wasn't so painful Pinch



Thanks!
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
That helped, but still issues. It is barfing on the a couple of the SF security views, with this error:

X 4/14/2008 12:32:09 PM-> SqlException

X 4/14/2008 12:32:09 PM-> Invalid object name 'SFSUserPermissionInfo'.

X 4/14/2008 12:32:09 PM-> Invalid object name 'SFSUserRolePermissionInfo'.




I'm attaching the package and the log file.
Attachments
RamsSecurity_results31.log.txt (185 views, 10.00 KB)
RamsSecurity.pkg (206 views, 33.00 KB)
Trent Taylor
Trent Taylor
StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Greg,

Did you notice that the SFSAuditDataActions and SFSAutodDataFields are in your package twice?  Just smoke one of them and see if the issue persists.  I will check to see if I need to make an import change to prevent this from happening again in the future, but this is probably the crux of your issue.

Trent Taylor
Trent Taylor
StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
You too,amigo Smile
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Thanks Trent.



Have a good weekend!
Trent Taylor
Trent Taylor
StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
I wil take a look at it.  From looking at the log file it looks as though the security tables are not up to date....but I will run it and see if I can see what is going on.
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
Here is the package. I haven't had a chance to check it out yet, but I'm pretty sure the issue with it attempting to delete the data file is because I have a mismatch between the actual file name and the template assigned to the file group. However, as mentioned, I still get errors when attempting to load this to a new db.



I also figured out were the log files are...in the same folder as the package file...doh! I've attached the log file from when I was creating a brand new database.
Attachments
RamsSecurity.pkg (193 views, 34.00 KB)
RamsSecurity_results30.log.txt (225 views, 18.00 KB)
Trent Taylor
Trent Taylor
StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)StrataFrame Developer (13K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Hmmm...you might let me take a look at your package and try it on my side so I can see it live and in color BigGrin
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.4K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
OK, I deleted the data packages and then used the wizard to recreate the packages. After doing a bit of massaging to get them the way I like 'em, the package deployed nicely. BigGrin



Next....Blink



When deploying it, I get errors. When deploying to an existing db, I first get an error that it can't delete the file group...fortunately. (my history is completely clear and I'm using the $DbName$ token in the file group name). This is the case even if the name if the same as the db name in the DDT.



Then I get errors related to various items (PK, FK, views)...I'd post the log, but I can't find it Blush



I tried to deploy it to a new db (using a new name), but it also errored out.



Probably the best would be to figure out were the log file is, then you could see the issues. Sooooooooo, were is that rascal?



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search