SSRS Query execution failed for dataset

后端 未结 17 1607
猫巷女王i
猫巷女王i 2020-12-30 22:39

Have just deployed my Project on to my reporting Server.

I have multiple datasets which are referencing views which exist on the db on that server.

When I tr

相关标签:
17条回答
  • 2020-12-30 23:22

    This might be the permission issue for your view or store procedure

    0 讨论(0)
  • 2020-12-30 23:25

    I was also facing the same issue - I checked below things to fix this issue,

    • If you have recently changed pointing database-name in data-source
      then first check that all the store procedures for that report exist on changed database.

    • If there are multiple sub reports on main report then make sure each report individually running perfectly.

    • Also check security panel - user must have access to the databases/ tables/views/functions for that report.

    Sometimes, we also need to check dataset1 - store procedure. As if you are trying to show the report with user1 and if this user doesn't have the access(rights) of provided (dataset1 database) database then it will throw the same error as above so must check the user have access of dbreader in SQL Server.

    Also, if that store procedure contains some other database (Database2) like

    Select * from XYZ inner join Database2..Table1 on ... where...
    

    Then user must have the access of this database too.

    Note: you can check log files on this path for more details,

    C:\Program Files\Microsoft SQL Server\MSRS11.SQLEXPRESS\Reporting Services
    
    0 讨论(0)
  • 2020-12-30 23:26

    I had the similar issue showing the error

    For more information about this error navigate to the report server on the local server machine, or enable remote errors Query execution failed for dataset 'PrintInvoice'.

    Solution: 1) The error may be with the dataset in some cases, you can always check if the dataset is populating the exact data you are expecting by going to the dataset properties and choosing 'Query Designer' and try 'Run', If you can successfully able to pull the fields you are expecting, then you can be sure that there isn't any problem with the dataset, which takes us to next solution.

    2) Even though the error message says "Query Failed Execution for the dataset", another probable chances are with the datasource connection, make sure you have connected to the correct datasource that has the tables you need and you have permissions to access that datasource.

    0 讨论(0)
  • 2020-12-30 23:27

    I just dealt with this same issue. Make sure your query lists the full source name, using no shortcuts. Visual Studio can recognize the shortcuts, but your reporting services application may not be able to recognize which tables your data should be coming from. Hope that helps.

    0 讨论(0)
  • 2020-12-30 23:32

    I also had a very similar issue with a very similar error message. My issue was that the database could not be connected to. In our case, we have mirrored databases and the connection string did not specify the Failover Partner. So when the database couldn't connect, it never went to the mirror and was throwing this error. Once I specified the Failover Partner in the connection string for my datasource, it resolved the issue.

    0 讨论(0)
提交回复
热议问题