Data Deploy Fails on XML Fields


Author
Message
Derek Price
Derek Price
StrataFrame Novice (89 reputation)StrataFrame Novice (89 reputation)StrataFrame Novice (89 reputation)StrataFrame Novice (89 reputation)StrataFrame Novice (89 reputation)StrataFrame Novice (89 reputation)StrataFrame Novice (89 reputation)StrataFrame Novice (89 reputation)StrataFrame Novice (89 reputation)
Group: Forum Members
Posts: 51, Visits: 376
We have a simple table with no relationships that is not deploying data due to an XML Field. The DDT error is shown in the attached file "DDT_Data_Deploy_Error.png" and the actual table properties are in the file "Settings_Table_XML.png." Here's a snippet from the text log file:



2/10/2009 8:57:49 AM-> Deploying data from OHRSettings...

2/10/2009 8:57:49 AM-> An error occurred while deploying the data to the server.

2/10/2009 8:57:49 AM-> SqlException

2/10/2009 8:57:49 AM-> Procedure or function 'OHRSettingsInsertOverwrite' expects parameter '@SettingsXML', which was not supplied.




We have a Data Deployment package that will copy data if the User_fk = -1. If there's any data that matches this, the deploy fails with the above message. I checked that the OHRSettingsInsertOverwrite SP is on the db and it is:



USE [SYSTOC800]

GO

/****** Object: StoredProcedure [dbo].[OHRSettingsInsertOverwrite] Script Date: 02/10/2009 10:26:24 ******/

SET ANSI_NULLS ON

GO

SET QUOTED_IDENTIFIER ON

GO

ALTER PROCEDURE [dbo].[OHRSettingsInsertOverwrite] @OHRSettings_pk as Int, @User_fk as Int, @RetrievalKey as VarChar(255), @GroupKey as VarChar(255), @SettingsXML as Xml, @RowVersion as Int, @RowState as TinyInt AS BEGIN DELETE FROM OHRSettings WHERE OHRSettings_pk = @OHRSettings_pk SET IDENTITY_INSERT OHRSettings ON INSERT INTO OHRSettings (OHRSettings_pk, User_fk, RetrievalKey, GroupKey, SettingsXML, RowVersion, RowState) VALUES (@OHRSettings_pk, @User_fk, @RetrievalKey, @GroupKey, @SettingsXML, @RowVersion, @RowState) SET IDENTITY_INSERT OHRSettings OFF END




Have you run into any issues with XML fields? If so, do you have a workaround for this situation? I can provide more info if you need it.



Thanks,

Derek
Attachments
DDT_Data_Deploy_Error.png (205 views, 37.00 KB)
Settings_Table_XML.png (206 views, 6.00 KB)
Reply
Dustin Taylor
Dustin Taylor
StrataFrame Team Member (488 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
Hi Derek Smile

I've been working with your package file here, and it looks like we are going to have to come at this from another angle. I can't get the package file you gave me to deploy to my localhost even far enough to get the error you are seeing. Can you reproduce this in a smaller scale to remove some of the other factors? If you can get me a package that only has a single databse with a single table, and the fewest attributes to reproduce your issue, that will make things much easier.

Also, as I understand it you are doing procedures based on the data that already exists in the database (i.e. looking for primary keys of -1), correct? If so, the small sclae database that corresponds with your package file and send that along as well it would be great. That way we'll know we are working from the same starting point.

Thanks!

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