Failed to open a rowset. Details: 42000:[IBM][iSeries Access ODBC Driver]Statement violates access rule: Connection is set to read only. Failed to open a rowset.

Failed to open a rowset. Details: 42000:[IBM][iSeries Access ODBC Driver]Statement violates access rule: Connection is set to read only. Failed to open a rowset.

This is very common error when you try to deploy your Crystal Report reports in production environment. But most of the time people doesn't have proper solution. This error can be raised due to various reasons. But as I feel Crystal report gives very generic errors rather giving specic error message. So that most of the time we need to spend lot of time to figure out the exact issue. As of my experience this error gives when your crystal report unable to retrive data from your database properly. Here in this case iSeries Acess ODBC Driver has used. You might use some other driver to communicate with your database. But you will get very similar error with respect to your driver. Whether you are using stored procedure to retive data or directly access the database table; doesn't matter this error might occur.

First thing that you can try out is check whether you have configured "AllowProcCalls" registry entry. You can check this, go to start button, then run. In run dialog box type "regedit" and enter. In the RegEdit you need to locate HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI. Then find your ODBC data source that your crystal report retrive data from. Verify that there is an entry called "AllowProcCalls" with a value of "1". If AllowProcCalls entry doesn't exists you can create it by right click on your ODBC data source, then select New : String Value. Enter in AllowProcCalls and enter. If AllowProcCalls entry has value other than 1 you can change its value by double clicking on that entry or right click on the entry and select modify. Enter 1 and press "OK".


Fig 1. AllowProcCalls entry in RegEdit window

Then load your Crystal Report again and check whether your problem solved. If you are getting further errors please let me know so that I will look in to them separatly.

More references:

Crystal Reports 2008 For Dummies
Crystal Reports 2008: The Complete Reference (Osborne Complete Reference Series)
Crystal Reports XI: The Complete Reference (Osborne Complete Reference Series)
Upgrade Crystal Reports 2008 Win Nul
Crystal Reports 10 For Dummies

6 comments:

  1. nice infoo here and smiles at your nice blog

    ReplyDelete
  2. wao great site bro thanks for great articles
    http://www.pksamp.com/

    ReplyDelete
  3. it did'nt solve my problem

    ReplyDelete
  4. I am having the same problem after doing all you said above, please help me. My email is aamiransari111@gmail.com

    ReplyDelete
  5. Aamir: Please give me more details about your issue. I have not tested this solution for Windows 7, for previous versions this is working.

    ReplyDelete
  6. Failed to open a rowset. Details: 42000:[Microsoft][ODBC SQL Server Driver][SQL Server]Incorrect syntax near '`'. Failed to open a rowset. Error in File C:\Users\Ayyappa\AppData\Local\Temp\temp_c9927171-6cfd-459c-bcd9-92d546270802 {3C9B0FA8-B40C-4202-916B-90405B5DEF13}.rpt: Failed to open a rowset.

    ReplyDelete

LinkWithin

Related Posts with Thumbnails

Twitter Updates

    follow me on Twitter