Report works on Visual Studio but don't on server
Hi everybody.
I'm using Reporting Server link created a report and the dataset uses a expression based query as we can see:
="SELECT a.bug_id AS Caso, c.name AS 'Nome Projeto', e.realname AS 'Atribuído a', b.version AS 'Versão', b.target_version AS 'Previsto para a versão', b.fixed_in_version AS 'Corrigido na versão', d.value AS RDI, CASE b.status WHEN 10 THEN
'Novo' WHEN 20 THEN 'Retorno' WHEN 30 THEN 'Admitido' WHEN 40 THEN 'Confirmado' WHEN 50 THEN 'Atribuído' WHEN 80 THEN 'Resolvido' WHEN 90 THEN 'Fechado' END AS status, FROM_UNIXTIME(last_updated, '%d-%m-%Y') AS DATA, CASE WHEN locate('.', c.name) THEN LEFT(c.name,
locate('.',c.name) - 1) ELSE c.name END AS ProjetoPai FROM mantis_bug_history_table a LEFT OUTER JOIN mantis_bug_table b ON a.bug_id = b.id LEFT OUTER JOIN mantis_project_table c ON b.project_id = c.id LEFT OUTER JOIN mantis_custom_field_string_table
d ON a.bug_id = d .bug_id, mantis_user_table e wHERE (b.handler_id = e.id OR b.handler_id = 0) AND LEFT(c.name, locate('.', c.name) - 1) IN ('" & join(Parameters!ProjetoPai.Value,"','") & "') AND c.name IN ('"
& join(Parameters!ProjetoFilho.Value,"','") & "') AND last_updated BETWEEN " & Parameters!Parameter1.Value & " AND " & Parameters!Parameter2.Value & " AND CASE '" & Parameters!Tipo.Value
& "' WHEN 'Todos' THEN (d.value LIKE '%RDI%' OR d.value LIKE '%RDP%' OR d.value LIKE '%TDR%') WHEN '%RDI%' THEN d.value LIKE '%RDI%' WHEN '%RDP%' THEN d.value LIKE '%RDP%' WHEN '%TDR%' THEN d.value LIKE '%TDR%' END and (b.target_version in ('"
& join(Parameters!PrevistoVersao.Value,"' , '") & "') or (b.target_version is null)) and (b.fixed_in_version in ('" & join(Parameters!EntregueVersao.Value,"' , '") & "') or (b.fixed_in_version is null)) GROUP
BY a.bug_id ORDER BY c.name ASC "
The report works great on Visual Studio preview but when I deploy the report, it doesn't work on server. When I click to generate the report based on parameters, it simply shows nothing.
Can anybody help?
Thanks a lot.
Hi Gabriel,
According to your description, it seems that the reason why you using expression based query is that you want to filter values from a multiple parameter. If in this case, I suggest you can refer to the following queries:
Change the query:
c.name IN ('" & join(Parameters!ProjetoFilho.Value,"','") & "') AND last_updated BETWEEN " & Parameters!Parameter1.Value & " AND " & Parameters!Parameter2.Value & "
To
c.name IN (@ProjetoFilho) AND last_updated BETWEEN @Parameter1 AND @Parameter2
We can use the above format to change the all query, then directly use T-SQL query as the dataset query. Deploy the report to report server to check the issue again.
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support
Similar Messages
-
Scrolling Header works in Visual Studio but not on Report Server 2008
2008 R2 Reporting Services. My scrolling header works in Visual Studio but not when deployed to the Report Server and viewed in IE 9. I have read most every post on this issue and can't find a solution. I have the fixed data properties
set correctly. Any suggestions?
Help appreciated!
LindaHi Linda,
As a suggestion, I would try to delete the deployed version and instead of deploying ther RDL file, i would try to upload the file and test it.
If the issue exisit, then I would download the exisiting version from the reportserver and compare the xml versions of the two reports and check if the propoerty is getting over written while deploying.
HTH,
Ram
Please vote as helpful or mark as answer, if it helps -
SSIS package works in Visual Studio but not as a scheduled Job.
I have a SSIS package that takes some CSVs and Excel documents and imports the data into a database. The CSVs and Excel document come from outside agencies so I have no control over them. I have successfully created and ran the SSIS package in
BIDS (Visual Studio) However, when I try to run it as a scheduled job on the SQL server I get the following error.
Source: Import Brazos CSV data Brazos Co CSV [1] Description: Data conversion failed. The data conversion for column "offDescription" returned status value 4 and status text "Text was truncated or one or more characters had no
match in the target code page."
The column is set to ignore on truncation in the data flow source.
Any suggestions would be appreciated.
Thanks
KJ
Kevin JoynerHi Kjoyner96,
The error usually occurs due to the data conversion between non-Unicode and Unicode characters. According to your description, the data type of the Output Columns of the Flat File Source should be DT_STR. If the source flat file uses Unicode encoding and
contains Unicode characters, the data conversion from DT_WSTR to DT_STR will fail. So, I guess the source file in your Dev environment doesn’t have Unicode characters, while the source file on the SSIS server has Unicode characters. If this is the case, open
the Advanced Editor for the Flat File Source, switch to the Input and Output Columns Properties tab, and change the data type of the Output columns from DT_STR to DT_WSTR. In this condition, the Data Conversion Transformation is not necessary.
Regards,
Mike Yin
TechNet Community Support -
Hello,
1) I am suddenly getting an error message ‘Load Report failed’ in a production server (where the VS2003 application is deployed) when the Crystal Report is executed. This has happened maybe because of the Windows/Crystal Report Updates!
I am able to see the same report perfectly fine in the development computer using VS 2003.
I am using the 9.1 version which is part of the Visual Studio 2003.
The event logs show 'Either the keycode library is not registered or it cannot be loaded ...EventID=10029'. See attached screen shot.
Please help?
2) Since I was getting a registration suggestion window for using Crystal Reports, I registered twice using different email address and it said that it will send me the KeyCode for the Crystal report but after successful registration I never got any keycode but just an email acknowledging the Registration.
I believe the KeyCode is required to use it in the server to execute/run a report.
Can SAP representative email the keycode to my gmail account?
My product key is:
Please help to resolve both my problems
Thanks in advance,
Sanjay ChudasamaIf I memory servers, you have to open the Crystal_Regwiz2003.msm in the .NET deployment project. One of the properties of the msm was Keycode (or similar). You entered the keycode here. To find your keycode; in VS2003 IDE, go to the Help | About screen. You will see one of the installed components as Crystal Reports and the keycode will be on the right of that. Copy the keycode from here, paste in the above.
For more details see the article Crystal Reports and Visual Studio .NET - Application Deployment.
- Ludek
Follow us on Twitter
Got Enhancement ideas? Try the SAP Idea Place
Share Your Knowledge in SCN Topic Spaces -
I have an application that is done using SSRS on visual studio and it connects to the report server on SQL server 2008 environment.
I've been changing the existing reports using visual studio 2008 and modifying the reports on the report server. How do I add a new report to the application ? I created a new report and deployed it on the report server but it didn't show up in the application.
I can access the application source code on visual studio 2010 and TFS (Team Foundation). Thanks.Hi,
I have a question. This application retrieves SSRS reports from the report sever. When I download the reports
from the SQL Server I can open them in visual studio 2008 but they don't open in visual studio 2010. I can access the application files on visual studio 2010 and team foundation server 2010. I was unable to open team foundation server 2008 on visual studio
2008. The issue is that I am unable to add a report with a new name to the application. I use visual studio 2008 to deploy the reports on the report server but it has to be the same name to be able to run the report from the application. I can deploy any report
on the report server but I can't access it from the application unless it has to be the same name as the present reports. If I keep the report the same name then it will replace the old report and the new report will run from the application. But only if it's
the same name. I guess when I add a new report to the application with a new name I am supposed to add a definition in the application C sharp files on visual studio 2010 so that the new report will show in the application. What's your opinion
? I have attached 2 images of the application and team foundation server 2010 and the report server.
Thanks. -
Deploying crystal reports basic for visual studio 2008 for VB6
My application has a module in .net and other in vb6.
I have a problem on deploying crystal reports in client machines, for module in vb6.
The vb6 application uses crystal viewer control obtained from crystal reports basic for visual studio 2008.
What type of deployment should I use?
Currently, I have a setup with prerequisite "crystal reports basic for visual studio 2008".
But I think it misses the dlls crviewer.dll and craxddrt.dll, so I put them in setup and with the register COM options, and it works, but it's not working very well.
When I open a form that uses crystal viewer, the setup (I have created) is lunched and says that have to restart machine. Then it opens the report, but the next time I use the application it does the same thing.Ok, thank's for the posts, they help so much.
So I'm going to discard vb6 and move to .NET, but... there is a problem:
Many reports have parameters that are asked before showing the report.
The Crystal Viewer that is used in VB6 version isn't the same used in .NET.
The viewer of VB6 asks the parameters in the way we want, however the .NET crystal viewer ask's the parameters in way that we don't like, because we have to do next -> next -> next...
The links above show the diferences:
VB6 -> http://picasaweb.google.com.br/paulo.gonc/CrystalReports#5249249283702618322
.NET -> http://picasaweb.google.com.br/paulo.gonc/CrystalReports#5249246459437178242
There is a way to configure Crystal Viewer, so that parameters asking form will work like the vb6 away? -
An error in Crystal Reports Basic for Visual Studio 2008
Greetings from Peru,
We have a problem with one of the Crystal Reports products weu2019d like you to help us with. We work with Crystal Reports Basic for Visual Studio 2008.
The error weu2019ve detected is in one of our systemu2019s reports; this report shows data inside frames. When the content to show is larger (in height) than the space left in the page, the container object of the report makes a line break keeping the title and the frame empty at the end of that page, but the information is shown in the next page. What we need is that not empty frame is displayed.
Weu2019ve tried to solve this problem by adjusting the report in different ways (by programming coding), but unfortunately this problem is related to how much data is displayed, because if this data fit in the space left in the page, the line break would not occurs and the data is shown at the end of the same page.
We hope you can help us with this issue. I look forward to your comments.All I can think of is trying CR 2008 (v.12.x). You can obtain an eval copy from here:
http://www.sap.com/solutions/sapbusinessobjects/sme/freetrials/index.epx
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
Crystal Reports, version for Visual Studio 2010 Problem
Dear all,
I encounter a problem after installed the crystal report version for Visual Studio 2010. Once I call
ReportDocument.PrintToPrinter(1,False, 0, 0)
The error message prompt:
Report is unavailable(Index was out of range. Must be non-negative and less than the size of the collection. Parameter name:index)
If I try
ReportDocument.PrintToPrinter(1,False, 1, 1)
It can print the 1st page of the report.
I also try to create a simple report. It works.
After installed this version, my reports also encounter the same problem in Visual Studio 2008.
My report has sub-reports. My PC is Windows XP.
Anybody has idea on this issue!?Now you can set the various printer options using the PrintOutputController. I'm using a UI box to select the printer but your developer should be able to figure this out. If not you can include him in the e-mail, it would be fine to go direct. Of course you will stay in the thread:
private void btnSetPrinter_Click(object sender, System.EventArgs e)
System.Drawing.Printing.PrintDocument pDoc = new System.Drawing.Printing.PrintDocument();
CrystalDecisions.ReportAppServer.Controllers.PrintReportOptions rasPROpts = new CrystalDecisions.ReportAppServer.Controllers.PrintReportOptionsClass();
// Use the next line if you need to, you'll ahve to test. Depends on how the reports were saved.
//CrystalDecisions.CrystalReports.Engine.PrintOptions.DissociatePageSizeAndPrinterPaperSize = true;
//CrystalDecisions.ReportAppServer.ReportDefModel.ISCRPrintOptions.DissociatePageSizeAndPrinterPaperSize = true;
//pDoc.DefaultPageSettings = pgSettings;
PrintDialog dlg = new PrintDialog();
dlg.Document = pDoc;
if (dlg.ShowDialog() == DialogResult.Cancel)
MessageBox.Show("Cancel Button clicked", "RAS", MessageBoxButtons.OK, MessageBoxIcon.Information);
return;
else
CrystalDecisions.ReportAppServer.ReportDefModel.PrintOptions MYPRTOpts = new PrintOptionsClass();
if (rdoCurrent.Checked)
pDoc.PrinterSettings.PrinterName = cboCurrentPrinters.Text;
// the next 3 lines may not be necessary.
MYPRTOpts.PrinterName = cboCurrentPrinters.Text;
MYPRTOpts.PaperSize = (CrPaperSizeEnum)
pDoc.PrinterSettings.PaperSizes[cboCurrentPaperSizes.SelectedIndex].Kind;
MYPRTOpts.PaperSource = (CrPaperSourceEnum)
pDoc.PrinterSettings.PaperSources[cboCurrentPaperTrays.SelectedIndex].Kind;
MYPRTOpts.PaperOrientation = CrPaperOrientationEnum.crPaperOrientationLandscape;
//MYPRTOpts.PageMargins.Bottom = .1;
//MYPRTOpts.PageMargins.Top = .1;
//MYPRTOpts.PageMargins.Left = .1;
//MYPRTOpts.PageMargins.Right = .1;
else
pDoc.PrinterSettings.PrinterName = cboDefaultPrinters.Text;
MYPRTOpts.PrinterName = cboDefaultPrinters.Text;
MYPRTOpts.PaperSize = (CrPaperSizeEnum)
pDoc.PrinterSettings.PaperSizes[cboDefaultPaperSizes.SelectedIndex].Kind;
MYPRTOpts.PaperSource = (CrPaperSourceEnum)
pDoc.PrinterSettings.PaperSources[cboDefaultPaperTrays.SelectedIndex].Kind;
rptClientDoc.PrintOutputController.ModifyPrintOptions(MYPRTOpts);
//MessageBox.Show("Printer set.", "RAS", MessageBoxButtons.OK, MessageBoxIcon.Information);
rptClientDoc.PrintOutputController.PrintReport(rasPROpts);
//MessageBox.Show("Printing report.", "RAS", MessageBoxButtons.OK, MessageBoxIcon.Information);
Thank you
Don -
Deploying Crystal Reports Basic for Visual Studio 2008
I have Windows Forms project using Crystal Reports Basic for Visual Studio 2008
I can't find the merge module to include in the setup project like I used to do in Visual Studio .NET 2003
Everyone seems to say that they don't exist for that version of Crystal Reports
After searching for a long time I found something about a package located at
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages\CrystalReports10_5\CRRedist2008_x86.msi
Tried it and it seems to work.
Do I have to install this to the client computer ? Is that the only way having a "Crystal Reports Basic Runtime for Visual Studio 2008" in the program list of the client computer ?Hi Victor,
We can download all the runtimes from the following link:
[https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm]
Try to search Business Objects Note regarding this from [here|https://www.sdn.sap.com/irj/sdn/businessobjects-notes]
More info regarding deployment can be found from DevLibrary:
[https://boc.sdn.sap.com/node/8546]
Regards,
Shweta -
Keycode missing in Crystal Reports Basic for Visual Studio 2008
I just upgraded from Visual Studio 2005 Professional to Visual Studio 2008 Professional (with SP1 installed also). Crystal Reports Basic for Visual Studio 2008 is listed as installed under the VS Help dialog, but no key code is shown. And when I attempt to open a Crystal Report, I get a dialog saying 'Please wait while Windows configures Crystal Reports Basic', which eventually terminates with an 'Invalid Keycode' message.
I've tried repairing the Visual Studio install, and even uninstalling and reinstalling the whole thing. To no avail.
Other facts: My VS 2005 version still works with its version of Crystal Reports. I am running Vista Professional. Looking in the registry, under HKEY_LOCAL_MACHINE | SOFTWARE | Crystal Decisions | Crystal Reports | VSNET | Keycodes | CR9 NET, I see a Type REG_SZ with a data value in the form xxxxxx-xxxxxxx-xxxxxxxxxxxxxxxxxxxxxxxxxx [6 chars-7 chars-26 chars].
Help! How do I get Crystal Reports Basic for Visual Studio 2008 to work?Hi Elaine,
Thanks for your response. I do have versions of Visual Studio 2003 and Visual Studio 2005 on my machine, and the earlier versions of Crystal Reports worked with these versions. In addition to the registry key I cited earlier (which I now understand is a VS 2003 version), there is an entry under HKEY_LOCAL_MACHINE | SOFTWARE | Crystal Decisions | Crystal Reports | 10.2 | Crystal Reports | KeyCodes | CR Ent. I see that you are correct, and this corresponds to my VS 2005 installation (which still works). However, there is NO entry under HKEY_LOCAL_MACHINE | SOFTWARE | Crystal Decisions | Crystal Reports | 10.5 (the CR Basic for Visual Studio 2008 path you indicated). There is an entry under HKEY_LOCAL_MACHINE | SOFTWARE | Business Objects | 10.5 | Crystal Reports, but it has only keys for ChartSupportPath, CommonFiles, DisablecheckForUpdates, and Path.
The Windows\assembly folder has 25 files that are CrystalDecisions.xxx, version 10.5.3700.0. This is consistent with my seeing 'Crystal Reports' listed as installed in VS 2008 Help. But no KeyCode!
I tried a complete uninstall and reinstall of VS 2008, without luck. I can't clean my system of earlier verions of Crystal Reports, because I am still supporting a body of work that I did under VS 2005, and I can't convert all this stuff to 2008 -- at least until I have a fully working VS 2008 suite. After this experience, I fear that if I were to uninstall an earlier version, i might never get it back!
I've spend quite a few hours on this with no luck, so any help would be enormously appreciated. -
Generated WSDL doesn't work in Visual Studio
After an update of SAP we have some problems with our web service (WSDL).
First of all we created a webservice using SE80. The generated WSDL url mentioned in SE80 doesn't work in visual studio which is in our opinion weird. When we use the url from the SOAMANAGER "Open WSDL document for selected binding" in visual studio we get a little bit further but it still doesn't work. The problem seems to be the "parameter(s)" with or without "s". Does anyone know how we can generated a WSDL with only "parameters"?
ExampleWSDL:
<wsdl:message name="ZPIQ_GET_LEERWEGResponse">
<wsdl:part name="parameter" element="tns:ZPIQ_GET_LEERWEGResponse"/>
</wsdl:message>
u2212
<wsdl:message name="ZPIQ_GET_NATIO">
<wsdl:part name="parameters" element="tns:ZPIQ_GET_NATIO"/>
</wsdl:message>
SAP ECC 6.0
SAPKA70014
SAPKB70014
SAPKW70015Hi Ralph,
In order to consume SAP services in Microsoft Visual Studio .NET, you need to convert WSDL from SAP (Document style) to Microsoft (RPC style) standard. This conversion is transparent to you, if you use [ES Explorer for .NET|https://www.sdn.sap.com/irj/sdn/dotnet?rid=/library/uuid/c0319dc4-d76d-2a10-d19f-e4f4ff315bde].
Best Regards,
Rima. -
Pop-ups (custom animations) work in PPT presentation, but don't in published presenter PDF. I created a file in PowerPoint 2003 that allows the user to click on words in a graphic and have definitions of the word pop-up. This only works in the PPT presentation, it does not work when I publish the file to PDF using Adobe Presenter, version 7.0.5, build 7588. Any suggestions?
MKO,
That's not entirely surprising. Unfortunately, what you're doing cannot be replicated or executed properly in Presenter content, because trigger functions are essentially Active X controls native to the PowerPoint environment. And that's the problem: Active X commands are totally ignored when your deck is converted during the publishing process.
So what to do?
You have 2 options, and neither are "clean" solutions because each represents a bit of homework.
Scenario 1: what you could do is create a series of hidden slides that are associated with / correspond to each of the text elements you have on the first slide. You'd have to assign hyperlinks to the text boxes and then point the hyperlinks to the associated hidden slide. The upside here is that if you have to edit any content after-the-fact, is that you can conduct such edits directly in PowerPoint. But there is a drawback too; namely, that if you have to keep track of slide views, hidden slides are not tracked at all by LMSs (including Adobe Connect), so you'd have to come up w/ a formula for counting the number of visible slides so your presentation will mark a "complete" on the LMS.
Scenario 2: create a Flash interaction that effectively does the exact same thing. The drawback to this I hope is obvious: if you have any content edits, then you're forced to edit the file directly in Flash. The good news here, however, is that this solution only requires one slide, so you can effectively keep track of slide views if that's something you need if the course is deployed on an LMS.
Again, perhaps not ideal, but the above does represent alternative solutions to what you attempted to do in your sample deck.
Rob
http://www.robrode.com/yabb/ -
Is there any profiles let my code work effect but don't bounce server?
Hi all,
I shoule add some functions to a standard page in r12.
As we can only debug on server.
It's so trouble that i should bounce server frequently after update code.
Is there any profiles or parameters let my code work effect but don't bounce server?
thanks ,
TaoHi Tao,
I wish it were like that!
It also depends on the type of changes you are deploying. If you have MDS related changes, them only importing the files should b e enough(at times though you still need to bounce server). In case of BC4J files, there is no other option.
Regards
Sumit -
Does ODT for Oracle XE work on visual studio 2005?
does ODT for Oracle XE work on visual studio 2005?
does ODT for Oracle XE work on visual studio 2005?
-
Customize Styles for Report Wizard in Visual Studio 2013
I'd like to customize the styles defined for the Reporting Wizard in Visual Studio 2013.
There was a writeup for doing so that pointed to editing the following: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\PrivateAssemblies\Business Intelligence Wizards\Reports\Styles\en\StyleTemplates.xml
However, there is no Business Intelligence Wizards folder under 12.0\Common7\IDE\PrivateAssemblies - yet when selected, the report wizard is picking up a list of styles from somewhere.
Could someone point me to where the style definition is?
Thanks in advance.
Doug.Hi Doug,
>>However, there is no Business Intelligence Wizards folder under 12.0\Common7\IDE\PrivateAssemblies - yet when selected, the report wizard is picking up a list of styles from somewhere.
Just to make this issue clearly, whether this issue is related to the SSRS?
Reference:
http://forums.asp.net/t/2006554.aspx?How+to+make+Business+Intelligence+available+for+VS+2013+Express
https://social.msdn.microsoft.com/Forums/vstudio/en-US/7948fda2-c43b-48ad-8f4a-05fe0d528bf8/custom-styles-in-report-builder-20-table-or-matrix-wizard?forum=sqlreportingservices
You said that it is related to the Business Intelligence, do you mean that you want to install the SSDT-BI?
http://www.microsoft.com/en-hk/download/details.aspx?id=42313
Like the second link in above references, if it is related to the SSRS, this forum would be better for you:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=sqlreportingservices
If not, please feel free to let me know more information about this issue.
Best Regards,
Jack
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.
Maybe you are looking for
-
How do I restore an App from a Time Machine backup?
My computer has been acting up lately and I have tried many fixes to no avail. I finally decided to just wipe the computer and start fresh, slowly bringing back my files to see if the problem still persist. So far I have been fine. I had to go back t
-
Hello, I have a billing document with Installment Payment term. Hence the billing related accounting document has 'N' number of split lines due to installments, each falling due on different dates. During Clearing, I have configured OB74 for Open Ite
-
Retrieve mail pdf attachment in xstrinf or otf format.
Hi, as in the Subjesct I must retrieve from mail the attachments that are in pdf format and convert then in xstring or otf format, then archive the documents in DMS server. It's possible? Thanks for answers.
-
Raising alerts in an asynchronous messaging scenario
Hi I have a simple scenario involving asynchronous messages going from a SAP box --> ABAP client proxy --> XI --> Webservice call Since the call from the SAP box is asynchronous, I would like to get an alert to a particular email id - if the messa
-
How do I close the tab as the "x" is no longer there since updating system
How do I close the tab as the "x" is no longer there since upgrading the system ?