Showing posts with label error. Show all posts
Showing posts with label error. Show all posts

Wednesday, March 28, 2012

saving package with Protectionlevel set to serverstorage fails

I am getting this when I try to save my package. Any Ideas?

Failed to apply package protection with error 0xC0014061 "The protection level, ServerStorage, cannot be used when saving to this destination. The system could not verify that the destination supports secure storage capability.". This error occurs when saving to Xml.

Well, as the message says - rely on server storage can't be used when saving to file. It works only when saving to SQL Server (otherwise you would have a file with plain text passwords in it).|||I am getting the same error when I am working on the SQl Server and trying to save it. Is there a security key I need to switch on in the SQl Server to use server storage?

saving package with Protectionlevel set to serverstorage fails

I am getting this when I try to save my package. Any Ideas?

Failed to apply package protection with error 0xC0014061 "The protection level, ServerStorage, cannot be used when saving to this destination. The system could not verify that the destination supports secure storage capability.". This error occurs when saving to Xml.

Well, as the message says - rely on server storage can't be used when saving to file. It works only when saving to SQL Server (otherwise you would have a file with plain text passwords in it).|||I am getting the same error when I am working on the SQl Server and trying to save it. Is there a security key I need to switch on in the SQl Server to use server storage?

Monday, March 26, 2012

Saving DTS Package in Meta Data Services Error

I am running SQL Server 2000 SP3 and I am trying to save a DTS package into Meta Data Services and I am receiving the following "Package Error"

Error Source: Microsoft Data Transformation Services (DTS) Package
Error Description: General Error -2147217355 (80041035).

I have searched for this error and I cannot find anything related to it. Also, I saw some of the comments about right clicking "Data Transformation Services" and checking the box for allow save to Meta Data Services, however, I do not see that checkbox to allow for this. Has anyone else had this problem and resolved it? I'm beginning to get very frustrated with it.May try in http://www.sqldts.com for any refernece on this behaviour.

HTH

Friday, March 23, 2012

Saving date problem

I get the following error when I try to save a date:

When converting a string to DateTime, parse the string to take the date before putting each variable in the DateTime object.
I was using a calendar control thinking that might have been the problem so I am using just a text box for entry. In the ASP code for the Insert statement, I have this:

<asp:controlParameterName="InDate"Type="DateTime"ControlID="txtInDate"/>

I have double checked the SQL table to make sure that the field is DateTime and it is. Also, if I have not selected a date or the textbox contains no information then it does not error and just saves the field blank.

What do I need to do to store this date?
Thanks for the information.

It's missing the attribute PropertyName="Text" I believe.|||Nope, that wasn't it. And the calendar control does not have a "text" property so I changed it to PropertyName="SelectedDate" and then I still get the same error.

Saving date into SQL

Hi,

I want to save date into SQL server pls help me how to save this date into server. its give me syntax error that converting datetime to character string. and also I want to save date only in mm/dd/yy format in a sql not including time.

The following code I am using

sub SaveEvent(sender as object, e as EventArgs)

Dim dt As DateTime = DateTime.Parse(eventdate.Text)


lbl.text=dt
dim con as new SQLConnection("server=london-home; Database=tony; uid=rashid2; pwd=test; ")

dim cmd as new SQLCommand("insert into events values('" & dt & "','" & desc.text & "')",con)

con.open()

cmd.executenonquery()

con.close()


end sub

Going thru your code, I am not sure what you are trying to do here. You have dt as a DateTime object. You cannot assign an object to lbl.Text, like in lbl.Text = dt. Now to the date problem in SQL Server. What you are probably trying to do is insert a DateTime value in a char type field in SQL Server table, and thus the reason for error. You have two choices, you either use a DateTime field in SQL Server or you don't. If you don't, you could try using a varchar type, but I am not sure, but if you use DateTime type, there is no way to trim the Time part in the value saved, though you can trim it while displaying it, either in SQL or your front end.

P.S.: Using other types to store datetime in SQL Server is not a good idea.

|||

Actually I get the date in textbox using <asp:TextBox> in this format(mm/dd/yy) and this textbox value I want to save in a SQL database, so regarding this how to save in the SQL.

|||

and i have also a datetime field in a sql database

|||

Which line is it giving you error again? Also, can you please post the exact error message?

|||I got this error and also below the whole code I am using.....

Server Error in '/' Application.

Syntax error converting datetime from character string.

Description:An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details:System.Data.SqlClient.SqlException: Syntax error converting datetime from character string.

The following code is below:

<script runat="server">

sub SaveEvent(sender as object, e as EventArgs)


dim con as new SQLConnection("server=london-home; Database=tony; uid=rashid2; pwd=test; ")

dim cmd as new SQLCommand("insert into events values('" & eventdate.text & "','" & desc.text & "')",con)

con.open()

cmd.executenonquery()

con.close()


end sub


</script>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>


<style type="text/css">

#display_prod{float:left;}

#prod{margin-top:0;}

</style>

</head>
<body>

<table border="1" align="center" cellpadding="5" cellspacing="0">
<tr>
<td valign="top">

<!--#include file = "header.aspx" -->
<!--#include file = "scroll.aspx" -->


<form id="prod" runat="server" enctype="multipart/form-data">
<table id="display_prod" width="554" border="1" cellspacing="0" cellpadding="0" align="left" height="400">
<tr valign="top">
<td>
<table border="1" align="center" cellpadding="20" cellspacing="0">
<tr>
<td>PRODUCTS DESCRIPTION <asp:Label runat="server" ID="lbl"></asp:Label></td>
</tr>
</table>

<table align="left" id="menu" width="150" border="1" cellpadding="0" cellspacing="0">
<tr align="center">

<td><a href="http://links.10026.com/?link=home.aspx">Main</a></td>
</tr>
<tr align="center">
<td><a href="http://links.10026.com/?link=Events.aspx">Change Password</a></td>
</tr>
<tr align="center">
<td><a href="http://links.10026.com/?link=Comments.aspx">Events</a></td>
</tr>
</table>


<table width="390" border="1" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="100" >Enter Date :</td>
<td width="243" ><asp:TextBox runat="server" ID="eventdate" BackColor="#FFFFFF" Width="100"></asp:TextBox> mm/dd/yy</td>
</tr>
<tr>
<td>Description :</td>
<td><asp:TextBox runat="server" ID="desc" TextMode="MultiLine" Columns="20" Rows="3" BackColor="#FFFFFF" MaxLength="200"></asp:TextBox> max 200</td>
</tr>
<tr>
<td> </td>
<td>
<asp:Button runat="server" ID="submit" Text="Save" OnClick="SaveEvent"></asp:Button>
<asp:Button runat="server" ID="reset" Text="Reset"></asp:Button>
</td>
</tr>
</table>
</td>
</tr>
</table>

</form>

|||

I am assuming your eventdate.Text is supposed to have date in mm//dd/yy format and you are trying to insert that value in a datetime field in SQL Server table. If this is the case, use DateTime.Parse(eventdate.Text).

|||

Its again give me this error

Syntax error converting datetime from character string.

using this code:

dim cmd as new SQLCommand("insert into events values('" & DateTime.Parse(eventdate.text) & "','" & desc.text & "')",con)

|||

Here are few things I would like to know:
1. What exactly did you try to insert? Post the exact value that you typed in your textbox.

2. What is the structure of your table? What columns are there, in which order and their datatypes?

|||

The value of textbox is "02/11/07"

and below is a query which I use for table.

create table events
(
event_id integer primary key identity(1,1),
event_name varchar(200),
event_date datetime,
)

|||

Heres the first problem. The order in which you are inserting your values is different from the column order. Either name the columns like this INSERT INTO TABLE(Column1, Column2) VALUES(VALUE1, VALUE2) or use the values in order. From your table schema, the date part should be at the end.

|||

Thanks a lot I have solved my problem....

Cheers!

|||

one thing more that when I run this grid its give me show the this type of format 02/11/2007 00:00:00 and I want to display only dd/mm/yy can you pls tell me that how I can change the format?

<asp:DataGrid runat="server" ID="ViewEvents" AutoGenerateColumns="false">
<columns>
<asp:TemplateColumn>
<itemtemplate>
<table id="tt" border="1" cellpadding="5" cellspacing="0">
<tr>
<td>hello hwo r u<asp:Label runat="server" ID="eventname" Text='<%#container.DataItem("event_name")%>' ></asp:Label></td>

<td><asp:Label runat="server" ID="pdesc" Text='<%#container.DataItem("event_date")%>' ></asp:Label></td>
</tr>
</table>
</itemtemplate>
</asp:TemplateColumn>
</columns>
</asp:DataGrid>

|||

See if this helps, change the date format accordingly.

http://peterkellner.net/2006/05/24/how-to-set-a-date-format-in-gridview-using-aspnet-20using-htmlencode-property/

I would also recommend marking the posts as answers if they solved your problem.

Wednesday, March 21, 2012

Saving a report built in Report Builder

I have built a report using Report Builder. When I try to save it I get and error,

The name cannot contain any of the following characters: ;?@.&=+$,\*<>|", and cannot consist exclusively of dots or spaces.

The name I am saving is cta. Any ideas?

Hi GTO52,

cta.

Works fine for me. Is there some other character you are using?

|||I do not think so. Did you install anything special on the web server, like front page server extenstions or disable the firewall or open a port in the firewall. Did you just do a vanillla install of reporting services or did you add pieces on afterwards (don't know what these wou ld be)?sql

Monday, March 12, 2012

Save Doc

Hi ,
I am using CR-9 and trying to save one report but its throughing error.please anybody help me.thank you

error : Save : Failed to save document
Save as : Failed to save document then one more error is Not
supported

thank you
pracalusoops 13 views no reply.plz help me

Tuesday, February 21, 2012

Sample RSExecutionLog Error

I have been using the reportserver function of sql 2005 for some time now and I decided to try the rsexecutionlog sample. I went through the installation and everything seemed to go fine until I executed the job. The job failed so I manually ran the dts package with configuration file and found that the error is from the parameters column query and reads like this:

"[Derived Column [979]] Error: The "component "Derived Column" (979)"

failed because truncation occurred, and the truncation row disposition

on "output column "ParametersStr" (999)" specifies failure on

truncation. A truncation error occurred on the specified object of the

specified component. "

"Task Update Parameters failed"

I read the query and it reads as such:

SELECT ExecutionLogID, Parameters

FROM ExecutionLogs WITH (NOLOCK)

WHERE Parameters IS NOT NULL AND

Datalength(Parameters) > 0

I checked both the source and destination columns and they have the same character type settings of ntext and same lengths. So I don't understand why it thinks there is a truncation occurring. Please help.

I ran into the same problem. The "Update Parameters" data flow in the SSIS package has a script step that reads the parameters and parses them into name/value pairs. The script task variable structure can't handle the entire amount of data being passed so it is throwing an error. I got around this by changing the "derived column" step just before the "script component" step in the "update parameters" data flow. In there, the variable ParametersStr is defined as "(DT_WSTR,4000)Parameters". I changed it to "(DT_WSTR,2000)Parameters". I also set the error output to ignore truncation errors. This may not be the best way to resolve this, but it worked for me and it only took a second.|||

This worked for me, thanks for sharing. I just saved the old dstx in case this were to cause any problems in the future.

Sample RSExecutionLog Error

I have been using the reportserver function of sql 2005 for some time now and I decided to try the rsexecutionlog sample. I went through the installation and everything seemed to go fine until I executed the job. The job failed so I manually ran the dts package with configuration file and found that the error is from the parameters column query and reads like this:

"[Derived Column [979]] Error: The "component "Derived Column" (979)"

failed because truncation occurred, and the truncation row disposition

on "output column "ParametersStr" (999)" specifies failure on

truncation. A truncation error occurred on the specified object of the

specified component. "

"Task Update Parameters failed"

I read the query and it reads as such:

SELECT ExecutionLogID, Parameters

FROM ExecutionLogs WITH (NOLOCK)

WHERE Parameters IS NOT NULL AND

Datalength(Parameters) > 0

I checked both the source and destination columns and they have the same character type settings of ntext and same lengths. So I don't understand why it thinks there is a truncation occurring. Please help.

I ran into the same problem. The "Update Parameters" data flow in the SSIS package has a script step that reads the parameters and parses them into name/value pairs. The script task variable structure can't handle the entire amount of data being passed so it is throwing an error. I got around this by changing the "derived column" step just before the "script component" step in the "update parameters" data flow. In there, the variable ParametersStr is defined as "(DT_WSTR,4000)Parameters". I changed it to "(DT_WSTR,2000)Parameters". I also set the error output to ignore truncation errors. This may not be the best way to resolve this, but it worked for me and it only took a second.|||

This worked for me, thanks for sharing. I just saved the old dstx in case this were to cause any problems in the future.

Sample RSExecutionLog Error

I have been using the reportserver function of sql 2005 for some time now and I decided to try the rsexecutionlog sample. I went through the installation and everything seemed to go fine until I executed the job. The job failed so I manually ran the dts package with configuration file and found that the error is from the parameters column query and reads like this:

"[Derived Column [979]] Error: The "component "Derived Column" (979)"

failed because truncation occurred, and the truncation row disposition

on "output column "ParametersStr" (999)" specifies failure on

truncation. A truncation error occurred on the specified object of the

specified component. "

"Task Update Parameters failed"

I read the query and it reads as such:

SELECT ExecutionLogID, Parameters

FROM ExecutionLogs WITH (NOLOCK)

WHERE Parameters IS NOT NULL AND

Datalength(Parameters) > 0

I checked both the source and destination columns and they have the same character type settings of ntext and same lengths. So I don't understand why it thinks there is a truncation occurring. Please help.

I ran into the same problem. The "Update Parameters" data flow in the SSIS package has a script step that reads the parameters and parses them into name/value pairs. The script task variable structure can't handle the entire amount of data being passed so it is throwing an error. I got around this by changing the "derived column" step just before the "script component" step in the "update parameters" data flow. In there, the variable ParametersStr is defined as "(DT_WSTR,4000)Parameters". I changed it to "(DT_WSTR,2000)Parameters". I also set the error output to ignore truncation errors. This may not be the best way to resolve this, but it worked for me and it only took a second.|||

This worked for me, thanks for sharing. I just saved the old dstx in case this were to cause any problems in the future.

Sample reports error

How come i get this:
a.. An error has occurred during report processing. (rsProcessingAborted)
Get Online Help
a.. Query execution failed for data set 'SalesOrder'.
(rsErrorExecutingCommand) Get Online Help
a.. Must declare the variable '@.SalesOrderNumber'.
----
--
when trying to run sales order detail ?
Don't have visual studio on my machine but that shoudln't be necessary to
run reports in report manager ?Have you added the right DataSource in report manager?
The samples comes without the Data Source, so you have to add that manually.
Kaisa M. Lindahl
"Michael Vardinghus" <michaelvardinghus@.hotmail.com> wrote in message
news:uBBGi0X1EHA.3708@.TK2MSFTNGP14.phx.gbl...
> How come i get this:
> a.. An error has occurred during report processing.
(rsProcessingAborted)
> Get Online Help
> a.. Query execution failed for data set 'SalesOrder'.
> (rsErrorExecutingCommand) Get Online Help
> a.. Must declare the variable '@.SalesOrderNumber'.
> ----
--
> --
>
> when trying to run sales order detail ?
> Don't have visual studio on my machine but that shoudln't be necessary to
> run reports in report manager ?
>

Sample Report Deployment

Hi all,

I tried to deploy sample report to http://myserver/reportserver and I got the following error, can someone provide some tips?

TITLE: Microsoft Report Designer

A connection could not be made to the report server http://lasc06/reportserver.


ADDITIONAL INFORMATION:

Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
--
<html>
<head>
<title>
SQL Server Reporting Services
</title><meta name="Generator" content="Microsoft SQL Server Reporting Services 9.00.1399.00" />
<meta name="HTTP Status" content="500" />
<meta name="ProductLocaleID" content="9" />
<meta name="CountryLocaleID" content="1033" />
<meta name="StackTrace" content />
<style>
BODY {FONT-FAMILY:Verdana; FONT-WEIGHT:normal; FONT-SIZE: 8pt; COLOR:black}
H1 {FONT-FAMILY:Verdana; FONT-WEIGHT:700; FONT-SIZE:15pt}
LI {FONT-FAMILY:Verdana; FONT-WEIGHT:normal; FONT-SIZE:8pt; DISPLAY:inline}
.ProductInfo {FONT-FAMILY:Verdana; FONT-WEIGHT:bold; FONT-SIZE: 8pt; COLOR:gray}
A:link {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; COLOR:#3366CC; TEXT-DECORATION:none}
A:hover {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; COLOR:#FF3300; TEXT-DECORATION:underline}
A:visited {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; COLOR:#3366CC; TEXT-DECORATION:none}
A:visited:hover {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; color:#FF3300; TEXT-DECORATION:underline}

</style>
</head><body bgcolor="white">
<h1>
Reporting Services Error<hr width="100%" size="1" color="silver" />
</h1><ul>
<li>An internal error occurred on the report server. See the error log for more details. (rsInternalError) <a href="http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID=rsInternalError&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=9.00.1399.00" target="_blank">Get Online Help</a></li><ul>
<li>Object reference not set to an instance of an object.</li>
</ul>
</ul><hr width="100%" size="1" color="silver" /><span class="ProductInfo">SQL Server Reporting Services</span>
</body>
</html>
--. (Microsoft.ReportingServices.Designer)


BUTTONS:

OK

Have you configured your Report Server?
Make sure that everything is up and running by configuring the server:
Start --> All programs --> Microsoft SQL Server 2005 --> Configuration Tools --> Reporting Services Configuration|||This sounds like a credential issue. Go to the Data Source folder. Click on the data souce. Connect Using: the default is "Credentials supplied by the user running the report". Try other options like "Credentials stored securely in the report server" to see if that'll work.|||

Hi,

first thing for me would be to install the latest service pack first (You are running on the RTM version whereas the version 9.0.00.2047 is the most current.

Is the report server available through the navigation in Internet Explorer on the appropiate site http://localhost/reportserver ?


HTH, Jens Suessmeyer.

http://www.sqlserver2005.de

Sample Report Deployment

Hi all,

I tried to deploy sample report to http://myserver/reportserver and I got the following error, can someone provide some tips?

TITLE: Microsoft Report Designer

A connection could not be made to the report server http://lasc06/reportserver.


ADDITIONAL INFORMATION:

Client found response content type of 'text/html; charset=utf-8', but expected 'text/xml'.
The request failed with the error message:
--
<html>
<head>
<title>
SQL Server Reporting Services
</title><meta name="Generator" content="Microsoft SQL Server Reporting Services 9.00.1399.00" />
<meta name="HTTP Status" content="500" />
<meta name="ProductLocaleID" content="9" />
<meta name="CountryLocaleID" content="1033" />
<meta name="StackTrace" content />
<style>
BODY {FONT-FAMILY:Verdana; FONT-WEIGHT:normal; FONT-SIZE: 8pt; COLOR:black}
H1 {FONT-FAMILY:Verdana; FONT-WEIGHT:700; FONT-SIZE:15pt}
LI {FONT-FAMILY:Verdana; FONT-WEIGHT:normal; FONT-SIZE:8pt; DISPLAY:inline}
.ProductInfo {FONT-FAMILY:Verdana; FONT-WEIGHT:bold; FONT-SIZE: 8pt; COLOR:gray}
A:link {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; COLOR:#3366CC; TEXT-DECORATION:none}
A:hover {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; COLOR:#FF3300; TEXT-DECORATION:underline}
A:visited {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; COLOR:#3366CC; TEXT-DECORATION:none}
A:visited:hover {FONT-SIZE: 8pt; FONT-FAMILY:Verdana; color:#FF3300; TEXT-DECORATION:underline}

</style>
</head><body bgcolor="white">
<h1>
Reporting Services Error<hr width="100%" size="1" color="silver" />
</h1><ul>
<li>An internal error occurred on the report server. See the error log for more details. (rsInternalError) <a href="http://go.microsoft.com/fwlink/?LinkId=20476&EvtSrc=Microsoft.ReportingServices.Diagnostics.Utilities.ErrorStrings&EvtID=rsInternalError&ProdName=Microsoft%20SQL%20Server%20Reporting%20Services&ProdVer=9.00.1399.00" target="_blank">Get Online Help</a></li><ul>
<li>Object reference not set to an instance of an object.</li>
</ul>
</ul><hr width="100%" size="1" color="silver" /><span class="ProductInfo">SQL Server Reporting Services</span>
</body>
</html>
--. (Microsoft.ReportingServices.Designer)


BUTTONS:

OK

Have you configured your Report Server?
Make sure that everything is up and running by configuring the server:
Start --> All programs --> Microsoft SQL Server 2005 --> Configuration Tools --> Reporting Services Configuration|||This sounds like a credential issue. Go to the Data Source folder. Click on the data souce. Connect Using: the default is "Credentials supplied by the user running the report". Try other options like "Credentials stored securely in the report server" to see if that'll work.|||

Hi,

first thing for me would be to install the latest service pack first (You are running on the RTM version whereas the version 9.0.00.2047 is the most current.

Is the report server available through the navigation in Internet Explorer on the appropiate site http://localhost/reportserver ?


HTH, Jens Suessmeyer.

http://www.sqlserver2005.de