Error loading report when data source changed
We are migrating our Crystal Reports from using XML files generated from our SAP R3 system to using a direct connection to SAP R3 (using the SAP Integration Kit).
The code is straightforward:
crReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
crReport.Load(reportPath);
...where the reportPath is just a string with the path and filename (e.g. "C:\reports\Report1.rpt").
This worked fine with the report when it had an XML data source. When we run the code with the new version of the report that connects to a data table on our SAP R3 we get the following error message:
Error in File Report1 {40205567-F890-4B3C-A103-C9C8F0A1E665}.rpt: Failed to logon to the Crystal Report Object Repository.
The report is not in an Object Repository, nor do we even have a Repository in place right now. The report can be run manually from Crystal Reports on the desktop without any kind of Repository.
Both versions of the report were built in Crystal Reports 2008.
Thanks,
Byron
I am not sure if connecting to SAP is any different than connecting to SQL, but we develop one report and then deploy to N number of client who all have their own SQL servers and server names.
Here is the code I use to alter the database connection at runtime:
connection.DatabaseName = _datebaseName;
connection.ServerName = _serverName;
if (_integratedSecurity)
connection.IntegratedSecurity = _integratedSecurity;
else
connection.UserID = _userId;
connection.Password = _password;
connection.Type = ConnectionInfoType.SQL;
// First we assign the connection to all tables in the main report
foreach (CrystalDecisions.CrystalReports.Engine.Table table in _reportDocument.Database.Tables)
AssignTableConnection(table, connection);
foreach (CrystalDecisions.CrystalReports.Engine.Section section in _reportDocument.ReportDefinition.Sections)
// In each section we need to loop through all the reporting objects
foreach (CrystalDecisions.CrystalReports.Engine.ReportObject reportObject in section.ReportObjects)
if (reportObject.Kind == ReportObjectKind.SubreportObject)
SubreportObject subReport = (SubreportObject)reportObject;
ReportDocument subDocument = subReport.OpenSubreport(subReport.SubreportName);
foreach (CrystalDecisions.CrystalReports.Engine.Table table in subDocument.Database.Tables)
AssignTableConnection(table, connection);
Similar Messages
-
Error while loading Reported Financial Data from Data Stream
Hi Guys,
I'm facing the following error while loading Reported Financial Data from Data Stream:
Message no. UCD1003: Item "Blank" is not defined in Cons Chart of Accts 01
The message appears in Target Data. Item is not filled in almost 50% of the target data records and the error message appears.
Upon deeper analysis I found that Some Items are defined with Dr./Cr. sign of + and with no breakdown. When these items appear as negative (Cr.) in the Source Data, they are not properly loaded to the target data. Item is not filled up, hence causing the error.
For Example: Item "114190 - Prepayments" is defined with + Debit/Credit Sign. When it is posted as negative / Credit in the source data, it is not properly written to the target.
Should I need to define any breakdown category for these items? I think there's something wrong with the Item definitions OR I'm missing something....
I would highly appreciate your quick assistance in this.
Kind regards,
AmirFound the answer with OSS Note: 642591.....
Thanks -
Error loading player no playable sources found message when i try to see live tv online
error loading player no playable sources found message when i try to see live tv online
Jbcon wrote:
http://flhouse.gov/Sections/HouseCalendar/broadcast.aspx
I went to that site, and cannot see any videos or live streaming.
Anyway, I suggest that you try a clean install; see http://forums.adobe.com/thread/928315
Download the installers from
Flash Player for ActiveX (Internet Explorer)
Flash Player Plug-in (All other browsers)
Once you are done check your Flash Player installation at http://helpx.adobe.com/flash-player/kb/installation-problems-flash-player-windows.html -
"Open sql" report no data sourced defined in windows
when I want to import data from sql database, the Open sql window report error
"There are no data sourced defined. Please create one to continue",
but I have defined the odbc data source using windows 's odbc administrator, why the error?
chuliangA couple of possibilities.
First are you licensed for Sql interface? If not, you might get that message.
Second, where did you create the ODBC connection on your computer or the server. It has to be on the server.
Third, did you create the odbc as a system driver? it needs to be so
Fourth, what operating system? If it's unix or AIX there is a hole bunch more you need to do to get odbc connections working. If it's windows, it's pretty easy.
Fifth, did you test the connection before trying it in Essbase? -
An error occurred querying a data source - with REST services
Hi,
I have a SharePoint 2013 form library library with an info-path form. I need to get the logged in user's 'Display Name' on my form load automatically.
I used REST service to fetch the current user details. In the preview mode of the form, its showing the right name. But when I publish this form to library I am getting the following error.
REST Service --> http://site url/_api/SP.UserProfiles.PeopleManager/GetMyProperties
Please help me to resolve this issue.
Thanks in advance for your time and reply :)Hi,
According to your post, my understanding is that an error occurred querying a data source with REST services.
It is defiantly permission issue with GetUserProfileByName service
and could be many reasons of this problem. You first try with UDCX file and make sure that UPS is running.
Here are some similar threads for your reference:
http://social.technet.microsoft.com/Forums/en-US/b8c668ea-7511-4657-a1a8-08fb4a6bd53d/info-path-an-error-occurred-querying-a-data-source?forum=sharepointcustomizationprevious
http://social.technet.microsoft.com/Forums/en-US/46866ac2-da09-4340-a86a-af72cbb2c8d7/info-path-an-error-occurred-querying-a-data-source-?forum=sharepointcustomization
http://blogs.msdn.com/b/russmax/archive/2012/08/17/want-to-call-sharepoint-2010-web-services-within-browser-based-infopath-2010-forms.aspx
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
An error occurred accessing a data source.
Hi,
I have seen many posts talking about this error but still i am facing the same issue. The process i have followed is:
1) created infopath form with receive data connection to SQL DB with plain username/pwd
2) placed the repaeating table of receive dataconnection, form has full trust
3) converted the dataconnection to udcx and stored it in data connection library of site collection
4) published the form for admin approval, and as i am the admin i have uploaded it and activated it
5) approved the dataconnection
6) i have modified the infoath settings to use SQL authen, data connection files , cross domain
But still i am getting this error:
An error occurred accessing a data source.
An entry has been added to the Windows event log of the server.
Log ID:6932
Regards,
Amarnath.
Regards, Amar.hi,
I have found below log:
DataAdapterException, Exception Message: The database returns an error. Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints.)
but i am receiving data only here is my query:
SELECT [Service Request],[Task Order],COUNT(*) as TotalTestCases,SUM(CASE WHEN [Status] = 'Completed' THEN 1 ELSE 0 END) AS Completed,
SUM(CASE WHEN [Status] = 'Blocked' THEN 1 ELSE 0 END) AS Blocked,SUM(CASE WHEN [Status] not in('Completed','Blocked') THEN 1 ELSE 0 END) AS InProgress FROM
DashBoardView where SRStatus = 'Active' group by [Service Request],[Task Order]
is my calculated columns is giving error? but when i run my wuery its giving correct output
Regards, Amar. -
Using InfoPath and the Web service GetUserProfileByName-An error occurred accessing a data source
Hi, Everyone,
I want to realize the function that when user fills out the infopath form the form can automatically get current users' name and I've searched that I can use the Web service GetUserProfileByName method. When I preview the form it is all right, however, when
I fill the form online, it occurs this error as folllowing. Anyone knows why and how to solve this problem?
Thanks forward!
Warning
An error occurred querying a data source.
Click OK to resume filling out the form. You may want to check your form data for errors.
Hide error details
An error occurred while trying to connect to a Web service.
An entry has been added to the Windows event log of the server.
Log ID:5566
Correlation ID:9c23d39c-18fa-1025-c7ec-600a1582a54aHi,
According to your post, my understanding is that you get error when using the Web service GetUserProfileByName in InfoPath.
Have the InfoPath form template call web service in code? If yes, please see following KB and check if it is the cause.
http://support.microsoft.com/kb/981684
You can also
follow the steps in the article to resolve this error in InfoPath. Please refer to:
Auto Populate User Information in InfoPath with Claims Based Authentication in SharePoint – Part 2 of 3
In addition, you need to disable the Loopback check.
Here is a similar thread for your reference:
https://social.technet.microsoft.com/Forums/en-US/d6d20308-a5d0-45fa-881d-0626c68c4e73/infopath-an-entry-has-been-added-to-the-windows-event-log-of-the-server-logid-5566?forum=sharepointcustomizationprevious
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
I have an infopath form that is getting the error when opening an existing form or creating a new form:-
Warning
An error occurred querying a data source.
Click OK to resume filling out the form. You may want to check your form data for errors.
Hide error details
An error occurred while trying to connect to a Web service.
Correlation ID:7ab6be2c-60e1-4025-be1e-1a2fbe00acd3
So I know its a permission issue because full control users have no problem. I have found a suggestion here suggesting making sure the group has "Who can View Membership to the Group" but that didn't work for me - and
my test user is only a member of one group -
http://sharepoint.stackexchange.com/questions/109488/usergroup-asmx-returns-unauthorized-for-some-groups
How can I get around this without provding users Full Control?So I fixed this with exactly what I mentioned above by adding "everyone" "Who can View Membership to the Group" permission. My error initially was that I was looking at the incorrect security group.
-
Adhoc Reporting using Data Sources instead of Report Model
Hi Gurus,
I'm working on SSRS 2008. I'm trying to create Adhoc Report using Report Builder 3.0. To select Data Source, both *.rsds and *.smdl are listed. I selected a Data Source which points to a SQL database. When I add New datasets, I'm able to add the fields and
it automatically detect relationships (Joins) using Primary Key and Foreign Key defined in the tables. I'm also able to edit the query. I ran the report and it ran successfully.
My question is I couldn't find any documentation regarding using Data Source for Adhoc Reporting. MS SQL documentation and forums insists that Report Model is required for Adhoc Reporting.
Please let me know if someone tried to create Adhoc Report using Data Source instead of Report Model. While I understand there are more benefits using Report Model (define entities/attributes, show/hide entity/attributes, organize entities/attributes etc.),
I just want to know if this is possible.
Are there any known limitation using this method?
Thanks In Advance!Hi Ereswaran,
Yes, we can create ad hoc report using report using data source instead of Report Model. Ad hoc reports typically are used to answer a specific question at appoint in time, so consequently people don’t spend a lot of time arranging and formatting the data
in a precise way. Other report development tools are available in Reporting Services to support more sophisticated reporting requirements.
Using Report Builder, we can build a simple report that display data form a single data source as defined by a report model. This tool is most useful for business users who need access to information but lack the skills to write a SQL query. If we have full
experience of SQL query, of course we can use data source instead of Report Model.
If you have any questions, please feel free to ask.
Regards,
Charlie Liao
Charlie Liao
TechNet Community Support -
Tried all 6steps to Error Message: An error has occurred when attempting to change modules-Please help thx
Hi, I¹ve been through it again to ensure I¹ve not forgot things. Completely
removed Lightroom and all files I can find, etc and reloaded. Some tedious
result. Step 6 is too time consuming at the moment for me, too many things
on the go since I¹m about to go on holiday and on return I shall need
Lightroom on this iMac. Any clues? This iMac had Mavericks from new,
uploaded to Yosemite and then loaded Photoshop CC, Lightroom etc and get
this damned problem.
Reading around the web I¹m not the only one with this issue, to suggest a
new user a/c is a soft option without resolving the issue.
I hope an expert from Adobe can resolve this,
Regards, George (retired IT Manager and IT Systems Project Manager) -
Error loading player, no Playable source found wp8
hi I have a url http://54.179.170.143/multitvfinal/index.php/details?id=37&type=live&device=ios
when I Navigate this url in to my Wp8 webBrowser then it is giving me error
ths error is
Error loading Player no Playable source found.
my code is wb.Navigate(new uri("http://54.179.170.143/multitvfinal/index.php/details?id=37&type=live&device=ios",UriKind.Absolute);hi I have a url which is playing in desktop IE Web Browser but not playing in wp8 web browser
here is my url
http://54.179.170.143/multitvfinal/index.php/details?id=37&type=live&device=ios -
Need support with "error loading player no playable sources found
trying to view a live cam from my MacBook Air and a message read "Error loading Player no Playable sources found. I have been able to view this live cam in the past. Have I done something to change this viewing?
That would be an error on the web server. It has nothing to do with your computer.
-
Error while deleting the Data Source
Hi gurus,
I am getting an error while deleting a Data Source - "Source system XXXXX not found RSAR205".
but that source system no more available.
Is there any way to delete the Data Source.
Thanks in advance.
CK.Hi,
That source system deleted.
Using RSDS also same error.
Thanks,
CK
Edited by: CK on Oct 3, 2008 11:37 AM -
How to add collection to report as data source
Hi all,
i'm trying to add collection to report as data source:
List<DmsLockingItem> items;
ReportClientDocument rcd = new ReportClientDocument();
DatabaseController dbc = rcd.getDatabaseController();
dbc.setDataSource(items, DmsLockingItem.class, "tName","tName");
this works with com.businessobjects.crystalreports.sdk but not with rasapp.jar.
And i can't use plugin lib in my current project.
can anyone help please?
Greetings,
NikolasThe setDatasource expects the object passed to either be a DataSet, java.sql.ResultSet, IXMLDataSet, or BusinessView object. Are you able to convert your collection to one of these?
-
Dynamic filter in Design studio using drop-down when data source is Universe
Hi community,
Is there anyway to create Cascading filter in Design studio when data source is Universe using drop-down component (Dimension filters cannot be used in my requirement).
My requirement is,
I have 2 drop-downs:
drop-down 1 : shows the regions in a country.
drop-down 2 : should display states based the region selected in the first drop-down (drop-down 1). Also drop-down 2 should pass selected state as input to the data-source
Thanks in advance
Vivek VJHi Vivek,
Please check out this post: How to Create Multiple Dropdown boxes (Cascading Filters) when using Universe in the backend.
Regards,
Mustafa.
Maybe you are looking for
-
Computer Thinks My iPod Touch is a Camera
I know there are lots of topics on this, but I can't find a solution! I recently recieved a new Laptop (Dell Inspiron running Windows Vista 32-bit.) When it came to plugging my 16gb 2nd gen iPod Touch in for the 1st time, I went into My Computer to t
-
I printed a 'preview' document and now it continues to print a never ending set of copies. I have re-installed the printer software, but it still continues to print more copies. What do I need to do to stop the document printing?
-
After updating to Safari 5.0.5 hyperlinks don't work
Unable to click links after updating to Safari 5.05. The web page will load and I can roll over the links but the links will not I open a new page. This happens on my mac and my pc. Any suggestions. I deleted and reinstalled Safari the same thing is
-
2.0.2 Patch Draining My Battery
I just updated my iPhone 3G last night with the 2.0.2 patch. This afternoon, while on my way to lunch, my phone shows only 10% battery left, after no usage all day. The Wi-Fi is off, Blue Tooth is off, screen brightness is at lowest level. Before thi
-
Snow leopard installed, but now unable to open documents????
Dear all, Has anyone experienced more problems with snow leopard? I have installed it, but it seems that I am less able to open attached documents when people e-mail me and I have now also problems opening older Leopard documents (pages). What can I