문제

예외를 해결하기 위해 수행 할 수있는 일 :

CrystalDecisions.crystalreports.engine.internalexception : 행 세트를 열지 못했습니다.

도움이 되었습니까?

해결책

보고서 쿼리가 실패 할 때마다 Crystal 보고서의 일반적인 오류입니다. 많은 원인이있을 수 있습니다. 보고서가 특정 데이터베이스를 대상으로 한 다음 보고서를 업데이트하지 않고 데이터베이스를 변경 한 경우이를 유발할 수 있습니다. 보고서가 보고서가 실행중인 데이터베이스에 존재하지 않는 저장된 절차를 기반으로하는 것과 같이 쿼리 자체의 실패로 인해 발생할 수 있습니다. 보고서의 데이터베이스를 확인하십시오.

다른 팁

말했듯이 이것은 일반적인 오류이며, 그러한 모든 오류와 마찬가지로 매우 실망스러운 오류입니다. 문제는 VS 2003에 Crystal Reports에 대한 미리보기 옵션이 없으므로 문제의 출처를 추적하기가 어렵다는 것입니다. 따라서 이것을 해결하는 가장 좋은 방법은 2005 년 이후에 빈 프로젝트를 만들고 Crystal Report를 가져오고 미리보기를 실행하는 것입니다. 그렇다면 더 구체적인 오류가 발생합니다.

I had the same issue, and received this error message:

One ore more fields could not be found in the result set. Use Verify Database to update the report. Error in File filename {9FEE6406-1613-409A-B9BD-C5FDA24E3DEE}.rpt:

The rowset column could not be found.

I was using a stored procedure to collect data for the report, and sure enough I was passing an invalid parameter for the SP. Double check the type and value of the parameters if you are using a SP to populate the report data.

Good luck!

I have also gone through same error with report having sub reports. Issue resolved as i switch to each sub report and make it verify again with database/tables/views.

This is caused by some discrepancy in your relations, like opposite left joins or something similar. CR has also the bad habit to create 'default' links each time you modify the list of tables and views needed for the report. It can even sometimes automatically create recursive links that might not be viewable 'at once' in the relations screen.

If you cannot find which relation(s) is causing the trouble (sometimes it is not so obvious), you'll have to make some trial & errors test by adding/removing tables from your report.

Every time you add a new table in crystal it adds its own links on already linked tables, some times it even links the 2 fields from the same table. Make sure you know your links in order to go through after you add a table and scroll all tables to see for any links create from to the same table

I received :

CrystalDecisions.CrystalReports.Engine.InternalException was unhandled Message=The Report Application Server failed

Google brought me here. For those that have similar problems.

For the record: I had a byte[] array with an image and removed the log from the report and the error stopped. I now have to figure out what I have done wrong with the logo.

I had this problem - we use SQL logins for our security (not integrated / DSN connections)

By granting execute permissions to the user for my stored procedure I fixed the problem.

Really, really couldn't hate Crystal more for their exception masking - let this be a lesson to all programmers;

Try
   'your code here
Catch
   Throw new exception("Hey, here's a really friendly but completely useless error message")
End Try

will result in pain for future developers - DON'T DO IT!

When you verify your database it might tell you that it is up to date, in that case you have two more options to check for:

a) Refreshing the report (a lightning-shaped icon), if you have a problem with a field, such as a SQL Field, it will give you the error and then show you the edit window for the field.

b) Running the query directly on SQL, if there is a problem with the query itself you will also get this message in Crystal but SQL will tell you exactly what went wrong.

Check Changing Crystal Report Database logon information at runtime in VS2005 for help.

Important line in it is:

table.Location = Database & ".dbo." & table.Name

For me, the problem was fixed when I logged of and logged back to the SQL server that the report was connecting to

In your store procedure If you are using

SET NOCOUNT ON;

Then just remove this

--SET NOCOUNT ON;

Now verify your report database, build & run your solution.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top