SSRS wont run because of view

Posted on 2014-07-10
Last Modified: 2014-07-11
I have a SQL report that is built with Visual Studio 2010, the report was built for in house reporting and looks to several views in our dbase. It runs fine when I do so from visual studio, but I now would like to automate this and pulled the report into SSRS and tried to subscribe it out. The report will not run in SSRS because it doesn't recognize the views, only the actual tables. It's a fairly lengthy and complex report written by someone much smarter than I, so fooling around with the report code is a last resort. I tried adding a dataset and made a simple SQL statement SELECT * FROM AA_SalesGRP and it sees the fields ok, but the actual report still chokes when run on SSRS.

the error I get when trying to run the report from SSRS

An error has occurred during report processing. (rsProcessingAborted)
Query execution failed for dataset 'AA_SalesGRP'. (rsErrorExecutingCommand)
Invalid object name 'AA_SalesGRP'.
Question by:Jeremy Kirkbride
    LVL 13

    Accepted Solution

    It could be a security issue where the login running the report doesn't have access to the views: you'll need to find out what account is being used to run the query (look at the data source), and then make sure that account has access to the view objects in the database. In Management Studio, open that database, click Security, then Users. Either the data source login should be in there or the data source login should have Admin-level rights (not recommended). If that login is in there, right-click it and select Properties to see what kind of privileges it has.

    Author Comment

    by:Jeremy Kirkbride
    It was a permission issue.  I found the error as I drilled down through the access/mapping/role permissions.  Thank you for your help, it was staring me right in the face.
    LVL 13

    Expert Comment

    by:Russell Fox
    We've all been there...

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Join & Write a Comment

    Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
    From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    746 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now