Crystal Reports Export Access Denied - crystal-reports

I am maintaining some code that uses CR to create a report and write it to disk.
var report = new ReportDocument();
....
report.Export();
On our live server this is resulting in the following error:
Error in File E:\TEMP\temp_cb1a18c2-b4e6-46b8-901b-a7a028a43b79.rpt: Access to report file denied. Another program may be using it.
The app is running as Network Service and has full control of the e:\temp diretory so it seems strange to be getting an access denied message.
Anyone encountered this before?

I'd probably have to see more of your code. Are you loading a report from disk with ReportDocument.Load, with OpenReportByTempCopy specified?

Related

Flow does not run on Tableau Server - where can I see the actual error?

When I run a flow in Tableau Server, it fails with the following error message:
Unfortunately this error is not helpful in understanding the actual cause of the problem.
Is there a way to see the actual underlying error? Or how am I supposed to debug this?
The flow runs fine in my Tableau Prep.
(EDIT: I used state here that I used a different data source to test in prep, but this is no longer true)
Arguably that error log does give you a hint as to what the issue is. The issue is with the Output step. This is most likely due to a permissions error when Tableau Server goes to publish the output since you can do it locally in Tableau Prep.
Are credentials for your flows able to be embedded on server? This will impact whether the output will be accessible. Are all flows run using a service account? Make sure that service account has access to the output location.
If these troubleshooting steps don't work, check the server logs. For this you'll need to check the logs on Tableau Server using the command line to see if there is a more detailed response. If you have the access, run tsm maintenance ziplogs to zip the log files and investigate.

Crystal reports 2008 database table currencies could not be found

I'm new to crystal reports and have been having an issue. The report is able to print properly on my system and on their host server however they have another server where everyone connects in through in and whenever we try to print from that server this error code pops up.
Any advice for a resolution is greatly appreciated.
Error code:
The server that the report is ran on when this issue occurs - as the message suggests, it seems like the table 'currencies' which you are using in the report does not exist in the database you are using on that server.
I suggest you logon to that server where you get the error message and make sure the 'Currencies' tables exists via SSMS.

Unable to preview report - error occurred during report processing

I am getting the following error when trying to preview an RDL report.
I have full rights to the SQL SERVER
I have tested my connection to the datasource and it's fine
I have full rights to the reporting services (serverName/reports)
My datasource is set to windows authentication
The event viewer both on the local and remote machines shows nothing
SQL SERVER logs show nothing
Please note: this report is embedded within an on-premises CRM instance, but I need to update the report.
What am I doing wrong? Any troubleshooting guidance would be most appreciated.
In that case run your report in new solution / another solution. Your issue will sort out.
I faced the same issue. Now sorted.

cannot add a report to CMC (Central Management Console) Business Objects

Hi I am trying to add a report to the cmc but I am getting the following error.
Adding Crystal Report "customer details.rpt" failed.
The server with kind rptappserver returned an error result.
Failed to copy the report file to the report object.
Refreshing the report object properties might have failed.
Failed to read data from report file D:\Business Objects\BusinessObjects Enterprise 12.0\Data\CrystalReportsRasServer\temp\{E95CA1EF-E3A5-4590-93C0-0739194564AE}.rpt.
Reason: Unable to launch D:\Business Objects\BusinessObjects Enterprise 12.0\win32_x86\ReportAdd program to add report to the system.
The person who was in charge of this before i joined has left and I have no one to ask.
Never used CMC before
Check below servers whether properly working or not:
1.Adaptive processing server
2.Crystal reports Processing server
3.Inputfile repository server
4.It can be issue of rights. The user you are using should have rights to add the report.
If possible restart CCM and check for servers successfully started and try to add the report.

SQL Server 2012 - SSAS Deployment Failed: File System Error, Access is Denied

The context is OLAP cube development. After configuring my project though SQL Server Data Tools (SSDT, the new BIDS) I am unable to deploy the project.
Every time the deployment process is started I get an error like the one below:
File system error: The following error occurred while opening the file '\\?\D:\[...]\database\mssql\tmpdb\MDTempStore_1864_9_no8wd.tmp': Access is denied.
(The [...] denotes some part of the path I ommited for brievty)
I always get the same error, indicating that some .tmp file could not be accessed.
My environment:
OS: Windows Server 2008 R2 Standard, SP1
SQL Server: SQL Server 2012 (v11.0.2100.60), running on localhost
What I tried:
I have the File System access rights for the folder in question (at some point I even tried with Admin privileges on the machine, didn't help)
I tried to deactivate the anti-virus in case it was performing on-access-scan (still didn't help)
Attempts to deploy/process individual dimensions causes the same problem
Deploying dimensions or cubes programmatically through SMO (instead of SSDT) runs into the same problem
Deploying DataSource objects as well as DataSourceView objects works fine
Maybe some of you faced similiar issues or have further suggestions/ideas?
Thanks for you help!
So, I finally figured it out.
As expected it was a permission issue, but despite the error message hinting at some missing file system permissions, the cause of the problem was the user I configured the Data Source with.
The SQL User I specified was given the roles
db_datareader
db_datawriter
db_ddladmin
on the source database but this doesn't seem to be enough. When I tried to give him the server role sysadmin it started working.
This is probably overkill, one could further fine-tune the role assignment but for now it also works that way.
Just a suggestion here - have you tried running SSDT as an administrator? That is, right-click on SSDT and click Run As Administrator. Then try to deploy your project. It definitely sounds like a permissions issue.
Exact reason is SSAS Service user does not have an access to the folders that are specified in SSAS configuration (i.e error states it is Temp Folder). I think it is not directly related with SQL Server because it is just a file access error. Error is thrown before it reaches SQL Server.
Give full permission to SSAS Service User for those folders.
Regards
Onur