Monday, March 26, 2012
Invalid Report Source
I was able to run this report well in this project.
But if i include it in my main project it throws an error "Invalid Report Source" and my viewer is blank but the "Main Report" tab is there present.
I use dataset as the datasource for my crystal report.
If i use the dataset to fill my datagrid it is giving the value.
So with the situation i understand that the dataset is getting filled and the report is also geting the data. The error comes in the line
RptViewer.ReportSource = Rpt_Doc. '(Report Document Object)
One main thing is i have not used any error handler but the code still continue to work properly without being crashed.
If i give 'Try catch' error handler also i the same error is only prompted.
The main project was first developed in vs.net 2000 and the project was upgraded to 2003.
Will this be the reason for the report being giving the errorI got the solution through one of my friend.
she got it from another friend.
So that was a long chani to get the solution
the solution is
The error message appears because the incorrect versions of the Crystal DLL files are referenced.
To correct this behavior reference the correct version of Crystal DLL files.
Adding the Correct References
----------
1. Open the VS .NET project.
2. In the 'Solution Explorer' window, right-click the 'References' folder and choose the 'Add Reference' command. The 'Add Reference' window appears.
3. Verify the References for all Crystal DLLs are version 9.1.5000. If they are not version 9.1.5000, select the 9.1.5000 version DLLs and click the 'Select' button.
4. Click the 'OK' button.
5. Save and run your application.
If running the application you find the DLLs revert to the version observed prior to your updates, complete the following steps:
Reverting DLLs Back to Version 9.1.5000
------------
1. Right-click the project name in the solution explorer and select the 'Properties' command. The 'Properties' window appears.
2. Under the 'Common Properties' folder, select 'References Path'. The 'Reference Path' window appears.
3. Delete all entries in this window and click 'OK'.
4. Repeat steps 2 through 4 of the 'Steps to Add the Correct References Section'.
Upon completing the listed steps, the application runs and reflects the correct References.
she send me this thru my mail i have copied and pasted it here
so it may be helpful to other who visit this forum
Thanks a lot for all those who tried to solve this problem.
dont forget to rate my post
Friday, March 23, 2012
Invalid Object Name Error
I'm trying to create a report model using a set of tables from two different servers. Creating the Data Sources and the Data Source View is no problem, however, while trying to create a Report model I run into an error that says,
An error occurred while executing a command.
Message: Invalid object name 'dbo.table_name.
Command:
SELECT COUNT(*) FROM [dbo].[table_name] t
I've checked the schemas for both these tables and they are correct. Why is this error occuring?
Any suggestions would be appreciated!
I'm not sure why the error occurs here but I have a found solution around the problem. You can create named queries that Union your tables from your different data sources into one query.sqlWednesday, March 21, 2012
Invalid Logical Page
Error at Source for row number 296443, Errors encountered so far in this task: 1
Attempt to fetch logica page (1:566896) in database abc belongs to object 'Ben_Tables', not to object 'Auth_Details'.
Can anyone tell me what may cause this and how to get rid of the problem?
Thanks,
Joe
Seems you have a corruption in your database. Here's some generic info:
http://www.karaszi.com/sqlserver/inf...suspect_db.asp
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"JoeA" <anonymous@.discussions.microsoft.com> wrote in message
news:8027A9B8-23E8-4F1A-945C-5A5328CC9B0D@.microsoft.com...
> When trying to DTS a table (Auth_Details) from one database to another, I received the following error
message:
> Error at Source for row number 296443, Errors encountered so far in this task: 1
> Attempt to fetch logica page (1:566896) in database abc belongs to object 'Ben_Tables', not to object
'Auth_Details'.
> Can anyone tell me what may cause this and how to get rid of the problem?
> Thanks,
> Joe
Invalid Logical Page
ceived the following error message:
Error at Source for row number 296443, Errors encountered so far in this tas
k: 1
Attempt to fetch logica page (1:566896) in database abc belongs to object 'B
en_Tables', not to object 'Auth_Details'.
Can anyone tell me what may cause this and how to get rid of the problem?
Thanks,
JoeSeems you have a corruption in your database. Here's some generic info:
http://www.karaszi.com/sqlserver/in..._suspect_db.asp
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
"JoeA" <anonymous@.discussions.microsoft.com> wrote in message
news:8027A9B8-23E8-4F1A-945C-5A5328CC9B0D@.microsoft.com...
> When trying to DTS a table (Auth_Details) from one database to another, I received
the following error
message:
> Error at Source for row number 296443, Errors encountered so far in this t
ask: 1
> Attempt to fetch logica page (1:566896) in database abc belongs to object 'Ben_Tab
les', not to object
'Auth_Details'.
> Can anyone tell me what may cause this and how to get rid of the problem?
> Thanks,
> Joesql
Friday, March 9, 2012
Invalid Character in Flat File or Turncate problem
My source is a csv flat file. Currently I use that same flat file on SQL 2000 and SQL 2005.
On SQL 2000 it runs fine and it inserts that character as part of the string (varchar), however, it gives me truncate error on sql 2005. I already use the "Suggest Types...." and my Output columns have the correct lenght (specially that lehght of that column is only 30 char which is less than the default anyways). If I remove that character it runs fine for that column.....
This is the values that I get in my flat file for the trouble coulmn is "ATTN: JON OLSEN a€“ CTRL8 "
And the error that I get when running the SSIS is
[Flat File Source OrderDetail [1]] Error: Data conversion failed. The data conversion for column "Column 15" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".
[Flat File Source OrderDetail [1]] Error: The "output column "ShipToAddr1" (63)" failed because truncation occurred, and the truncation row disposition on "output column "ShipToAddr1" (63)" specifies failure on truncation.
A truncation error occurred on the specified object of the specified component.
[Flat File Source OrderDetail [1]] Error: An error occurred while processing file "C:\Inetpub\ftproot\orderdetail.csv" on data row 6.
Any help greatly approciated.....
Thank you,
Maria
What code page are you using? 1252?|||Yes, It is 1252.
|||There are more than 30 characters in your example.|||Hi Phil,
yes, you are right I just counted and it is 32 characters.....What do you suggest - Should I have the flat file to be corrected OR should I handle it on my side in SSIS? If to handle on my side in SSIS - than what's the best way to address it? The table column is 30 char.
I did not realize as it never has been problem in sql 2000
Thank you,
Maria
|||Since you are going into a varchar, try trimming the column.Stick a derived column between the source and destination and use the RTRIM() character function to eliminate the trailing whitespace. Then it'll fit.
So, in your expression, you'll do: RTRIM([columnname])
Try that. The characters are valid in the 1252 code page, so that shouldn't be an issue.|||
Phil,
The derived column did not solve the issue - it fails before it reaches the derived column. I went to the Flat File Source Editor -> Error Output and change to "Ignore Failure" for Truncate for that Column and that did it. But I am not comfortable with doing it....not sure if that is a right way to do it.
Can you think of anything that I am overlooking before reaching the derived column?
Thank you,
Maria
|||It may be better to use 'Redirect rows' to a external file for further inspection. May be if you see all the faulty rows you would get better clues. If you still want those rows to make the final destination use a multicast after the error output; then use one output to the error file destination and the other to merge them back to the main flow (via Union all). This won't solve your problem but at least will give you the ability of looking into the faulty rows.
Just a suggestion...
|||How exactly do you have your SSIS package setup? What source, destination, and transformation components do you have and in what order?You might have to put the derived column *right* after the source and then you may have to remap some columns in downstream components so that they pick up the correct column lengths.|||
Thank you Rafael. I will try that.
Maria
|||Phil,
within my Data Flow i have it set up as follow
Flat File Source -> Derived Column ->OLE DB Destination.
The data flow part should pretty much take the flat file and insert it into my Tmp table.....and then within Contol Flow i do the update, insert, etc from that tmp table. But the problem that I get is within my Data Flow, Flat File Source to be specific. I only have one Derived Column to format data for couple of other columns including the RTRIM(column_name) that you suggested earlier.
Thank you,
Maria
|||Yep, try Rafael's suggestion and then report back with the error number that's provided for those rows.Thanks,
Phil|||
Phil and Rafael,
I ran a test with just first 6 rows to see what exactly is happening......And in my ErrorOutput file I was able to see the ErrorCode which was always -1071607675 (Truncate error) in my case and then ErrorColumn which was the ID. What seems to be is that when I did the "Suggest Type....." it picked the Flat File Source External Column width from flat file which has columns width bigger by 1 or 2 char from Flat file source Output column....So that is why this is failing and gives me the truncate error message. The Flat file source Output Column has the correct width. The bigger width in External Column is random and it is dependent on whats in the flat file so I cannot assume that my Product Description column will be always 81 varchar, for some products might be bigger depending on what the invalid character will be......I guess it is caused by the ascii char that cannot be properly handled by text editor.....
We will have to address the problem at the point where the flat file is being generated and my SSIS should work just fine.
Thank you both for your help.
Maria
|||mariap wrote:
Phil and Rafael,
I ran a test with just first 6 rows to see what exactly is happening......And in my ErrorOutput file I was able to see the ErrorCode which was always -1071607675 (Truncate error) in my case and then ErrorColumn which was the ID. What seems to be is that when I did the "Suggest Type....." it picked the Flat File Source External Column width from flat file which has columns width bigger by 1 or 2 char from Flat file source Output column....So that is why this is failing and gives me the truncate error message. The Flat file source Output Column has the correct width. The bigger width in External Column is random and it is dependent on whats in the flat file so I cannot assume that my Product Description column will be always 81 varchar, for some products might be bigger depending on what the invalid character will be......I guess it is caused by the ascii char that cannot be properly handled by text editor.....
We will have to address the problem at the point where the flat file is being generated and my SSIS should work just fine.
Thank you both for your help.
Maria
Just remember that suggest types is only valid for getting you to a starting point. You should still implement your own quality control for every column to be sure they are correct. Don't rely on the suggest types feature to be accurate as you are finding out.
Phil|||
Thank you Phil. you are absolutly right!
Maria