Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics SL (Archived)

failed to open a rowset

(0) ShareShare
ReportReport
Posted on by

Hi,

Hope someone can help me.

I am new in creating custom Crystal Report for MSDynamics SL. I created a VIEW to begin with with this statement below:

SELECT  
 	APDoc.DocType ,APDoc.RefNbr ,APDoc.BatNbr, APDoc.PerEnt, ApDoc.PerPost
FROM   
	dbo.APDoc APDoc WITH(NOLOCK)	
WHERE 
	APDoc.DocClass = 'N' AND (APDoc.DocType = 'VO' OR APDoc.DocType = 'AD' OR APDoc.DocType = 'AC')
	--AND APDoc.PerPost = '201712'


I also created the following successfully:  created the report in the menu and in Report Control Maintenance, and created a new crystal report file. 
0488.crystalreport.jpg


1st. Previewing the report without the option to view data filter by PerPost  is fine.
2nd. When I updated the report control with the setting below

5270.reportcontrol1.jpg

that is when I get this error

7345.error.jpg

*This post is locked for comments

  • Community Member Profile Picture
    on at
    RE: failed to open a rowset

    Thank you for checking and replying to my question. I fixed it my self.

  • Verified answer
    Community Member Profile Picture
    on at
    RE: failed to open a rowset

    Fixed this myself. Run a SQL Profiler to see the problem. I am using a view and the value I placed based on my 3rd image above under 'Period Field Name' is Apdoc.PerPost. I updated this to myviewname.PerPost.

  • Suggested answer
    Community Member Profile Picture
    on at
    RE: failed to open a rowset

    Not sure if this is your issue or not but I had something similar several years back and resolved it by opening the ODBC definition for the database (Crystal Reports utilizes ODBC to connect to SQL) and I checked the option to Use ANSI quoted identifiers on the DSN configuration page.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,923 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,788 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans