AccessViolationException occurs while setting data source to a datatable

Dear All,
I have recently encountered problem while generating Crystal Report (version 11.5) in my VB.NET project and see if you can help to provide a solution for that. In particular, the following access violation exception occurs when setting data source of a report object to a datatable:
"Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
Then if i press F10 to step over in VS2008, the exception won't occur again and the report can be printed successfully with data from datatable. So it does not fail all the time but only the first time...
My code is rather simple and it looks something like this where ds is declared as a dataset filled with data:
Dim crApp As CRAXDDRT.Application
Dim crRpt As CRAXDDRT.Report
crApp = New CRAXDDRT.Application
crRpt = New CRAXDDRT.Report
crRpt = crApp.OpenReport("C:\some.rpt")
crRpt.DisplayProgressDialog = False
crRpt.DiscardSavedData()
crRpt.Database.Tables(1).SetDataSource(ds.Tables(0), 3)  <--- exception occurs at this line
crRpt.PrintOut(False)
Also, from the exception details, the problem appears to be thrown from the driver crdb_adoplus.dll which I have installed the latest version (11.5.11.1470) with CR XI R2 SP5.
Kindly reply if you know what's going on... Thx!
Stephen

Hi Stephen,
As I said, craxddrt, embeddable designer control, is not for your use other than designing reports within the .NET IDE. You CAN NOT distribute this dll and it's dependencies. You are NOT licensed to use use it in a runtime application.
As you say it may possibly work but it is not supported other than designing reports in the IDE and again you are NOT licensed to distribute it.
Next issue is the RDC ( Either craxdrt.dll or craxddrt.dll ) in version XI R2 ( 11.5 ) is still supported but again only supported in Visual Basic 6. The RDC is COM and was never designed to work in .NET.
COM and .NET are two completely separate code streams, there is no direct convert from the RDC to .NET. Same functional API's but completely different way of implimenting them.
For more info on how to use and for sample applications click on this link:
http://www.sdn.sap.com/irj/boc/samples?rid=/webcontent/uuid/80774579-b086-2b10-db91-ed58c4dda375 [original link is broken]
So even though it may be partially working there is no point in continuing this post concerning the RDC, it's simply not supported for what you are doing and you are not licensed to deploy it.
Thanks again
Don

Similar Messages

  • Get "An Error occurred while retrieving data From ProjectWebApp.." when searching content on an External Content Type

    I have set-up an ECT in SPD2013 on SP2013.  It is a SQL Data source called ProjectWebApp.   I have BCS/SSS set-up.  I can create an ECT OK in SPD.  I can add the ECT to a custom list.
    The problem is when I add a new item in the list the following error message appears in red
    An error occurred while retrieving data from ProjectWebApp. Administrators, see the server log for more information
    I cannot filter or return any results.  There is data in the DB.
    Another test I do is to try and create a new App/List using the "External List" template.  When
    I select the ECT a red message appears "External Content Types are not available".  which is odd since I can add an ECT to a list as mentioned above.
    Any ideas?
    Tx
    Andrew
    Andrew Payze

    Hi Andrew,
    Please try the option Allow unlimited length in document libraries in the column settings:
    http://littletalk.wordpress.com/2011/08/18/external-content-type-an-error-occurred-while-retrieving-data-from-a-system-administrators-see-the-server-log-for-more-information/
    If it doesn't help, please refer to the link below and raise the External content type Read List operation thresholds:
    http://lightningtools.com/bcs/business-connectivity-services-end-user-implications-part-one-threshold-limit-errors/
    Please provide error message in ULS log for further troubleshooting.
    Regards,
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected] .
    Rebecca Tu
    TechNet Community Support

  • Problem while transporting Data Source

    I get error while transport datasource from DEV to PROD:
    DataSource <DS> does not exist in source system <PRD_SYSTEM> of version A
    Field <XXXX> will not be delivered from DataSource <DS> in source system <PRD_SYSTEM>
    What does it mean? Do I need to activate <DS> datasource in source system PRD_SYSTEM?

    Hi
    1. Transport the Datasource from D to P system in R/3.
    2. Replicate the corresponding R/3 Sorce system in BW Production system.
    3. Right click on the datasource overview and check whether ur data source is available or not.
    4. If available then transport all the required info objects first from BW Dev to Prod System.
    5. Then transport your Infosource and other objects.
    This way will be fine.
    This error normally will occur when the data source is not replicated and the required info objects are not transported to the Prod system from Dev system.
    Regards
    M.A
    Edited by: M.A on Jun 5, 2008 2:46 PM

  • 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-600a1582a54a

    Hi,
    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

  • System Throws short dump while executing data source 2LIS_11_VASCL in RSA3.

    Hello Experts,
    I got short dump while executing data source 2LIS_11_VASCL in RSA3.
    The details are as follow.
    When importing object "MC11VA0SCL_TAB", the structure did not match the
    structure of the target object. The error occurred in component
    no. 567.
    This may be due to one of the following reasons:
    - the structure is actually different (the next field has, for
      example, a different data type) or
    - the same sequence of components were exported and imported,
      but the fields were from other include units.
    I have checked source and target fields and those are of same length and data type.
    Could you please give some points why this short dump occurs.
    Thanks
    Konda Reddy

    Hi,
    This error is not between BI and R/3.  It is within R/3.  You may have setup data and then modified the datasource.
    Delete setup data, generate your datasource again.  Setup data and try again.
    If you are on a live system with data setup after a downtime and you do not want to delete it, then bring your datasource to the original state when you setup data and pull data.
    Cheers....

  • SQL Service Broker 2012: the connection was closed by the remote end, or an error occurred while receiving data: '64(The specified network name is no longer available.)'

    Anyone can help with the below issue please? Much appreciated.
    We have about 2k+ messages in sys.transmission_queue
    Telnet to the ports 4022 is working fine.
    Network connectivity has been ruled out.
    The firewalls are OFF.
    We also explicitly provided the permissions to the service account on Server A and Server B to the Service broker end points.
    GRANT
    CONNECT ON
    ENDPOINT <broker> <domain\serviceaccount>
    Currently for troubleshooting purposes, the DR node is also out of the Availability Group, which means that we right now have only one replica the server is now a traditional cluster.
    Important thing to note is when a SQL Server service is restarted, all the messages in the sys.transmission queue is cleared immediately. After about 30-40 minutes, the errors are continued to be seen with the below
    The
    connection was
    closed by the
    remote end,
    or an
    error occurred while
    receiving data:
    '64(The specified network name is no longer available.)'

    We were able to narrow down the issue to an irrelevant IP coming into play during the data transfer. We tried ssbdiagnose runtime and found this error:
    Microsoft Windows [Version 6.1.7601]
    Copyright (c) 2009 Microsoft Corporation.  All rights reserved.
    C:\Windows\system32>SSBDIAGNOSE -E RUNTIME -ID 54F03D35-1A94-48D2-8144-5A9D24B24520 Connect to -S <SourceServer> -d <SourceDB> Connect To -S <DestinationServer> -d <DestinationDB>
    Microsoft SQL Server 11.0.2100.60
    Service Broker Diagnostic Utility
    An internal exception occurred: Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding.
    P  29830                                 Could not find the connection to the SQL Server that
    corresponds to the routing address tcp://XX.XXX.XXX.199:4022. Ensure the tool is connected to this server to allow investigation of runtime events
    The IP that corresponds to routing address is no where configured within the SSB. We are yet unsure why this IP is being referred despite not being configured anywhere. We identified that this IP belongs to one of nodes other SQL Server cluster, which has
    no direct relation to the source server. We failed over that irrelevant SQL Server cluster and made another node active and to our surprise, the data from sys.transmission_queue started flowing. Even today we are able to reproduce the issue, if we bring
    back this node [XX.XXX.XXX.199] as active. Since, its a high business activity period, we are not investigating further until we get an approved downtime to find the root cause of it.
    When we get a approved downtime, we will bring the node [XX.XXX.XXX.199] as active and we will be running Network Monitor, Process Monitor and the SSB Diagnose all in parallel to capture the process/program that is accessing the irrelevant IP.
    Once, we are able to nail down the root cause, I will share more information.

  • "An error occured querying a data source" - Web Service connecting to GetUserCollectionFromGroupSupport

    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.

  • Error: An error occurred while skipping data rows

    I am constantly getting error message “Error: An error occurred while skipping data rows”. Here is my scenario:
    I am pulling data from a text flat file which is Vertical Bar {|} delimited. My data source files naturally come without headers (no column names on first row). So what I did to bypass
    this is –
    I used a control file to supply the header names when I developed my package. This control file’s column names have corresponding column order used in the data source files.
    I then added an expression to my Flat File Connection Manager so that the system should automatically pick up new incoming files (files without headers).
    Now when I try to run my package I am receiving “Error: An error occurred while skipping data rows”. Could this be due to the fact that the system is expecting the column names which I
    entered when I developed the package while this new file does not have any headers, or could it be something different? There is very little information on the internet about this kind of error message. The only meaningful information that I have found is
    from the link below but unfortunately the case explained there is not the same as my situation.
    http://social.msdn.microsoft.com/forums/sqlserver/en-US/a790460b-9ef5-482b-b219-f55c05fa30d3/error-occured-while-skipping-data-rows
    I’m also aware that one can get the same error if the specified delimiter type on their package is different from the one on the flat file. Still that is not the case in my situation. Can
    someone please kindly help me troubleshoot this.
    Many thanks,
    Mpumelelo

    I have managed to address my problem. I did not have to manually enter some nearly 2000 column names by hand. Here is what I have done. I will explain it in detail for the benefit of those who might face the same problem but have no answers on how to work
    around it.
    I have maintained the column names from the control file because it was important for me to do this in the interest of some data flow components further down the pipeline. It therefore means that my package Flat File Source components have column names
    on both the External Column and Output Column sides.
    When I configured the Flat Files Source component using the control file I left the option “Column names in the first row” ticked as shown in the picture below. This is the default selection from Microsoft.
    I then went to my flat file connection manager; right clicked it and selected “Properties” to get something like shown below. You will notice that property “ColumnNamesInFirstRow” is down as “True” because when configuring my flat file manager I left
    that selection ticked. To address my problem I changed property “ColumnNamesInFirstRow” from “True” to “False” and saved my package.  This means that during runtime the package will not use the first row as column names but will use the already predefined
    column names which I entered from the control file. Please note that selecting the option of not using the first row as column names should be done from the Properties selection instead of the Flat File Source component. Changing this property from the Flat
    File Source component automatically changes all the metadata whereas doing this from the Properties selection leaves the metadata on the Flat File Source component unchanged.
    Mpumelelo

  • Error while activating data source in BI

    Hello Team
                     I am facing issues while activating data source. I followed following steps .
    a)First i created my target
    b)Then i made my Primary key as info provider
    c)Then i created one source system under file.
    d)Then i went to data source and created one application component
    e)In this application component i created my data source
    f)In this data source i imported my file and all the settings. Now when i am checking then it is not giving any error . But when i am trying to activate it it is giving error . Please find the supporting screesnhots . Can anyone please suggest me as to what is going wrong .

    Hi,
    Check the gateway settings for
    Gateway Host
    Gateway service
    Also check the UDC connection information.
    Check these links:
    1 - http://help.sap.com/saphelp_nw04/helpdata/en/78/ef1441a509064abee6ffd6f38278fd/content.htm
    2 - http://help.sap.com/saphelp_srm40/helpdata/es/54/ddfb3ff778ed28e10000000a1550b0/content.htm
    3 - https://encrypted.google.com/url?sa=t&source=web&cd=7&ved=0CCwQFjAG&url=http%3A%2F%2Fwww.bi-  
    expertonline.com%2Fdownloads%2FSchroeder0604.doc&rct=j&q=ud%20connection%20in%20sap%20bi&ei=WMDnTdm_E4ruvQOEzZWcDg&usg=AFQjCNGvqKuoTq9kypNMNGhis8WrZ-gFCg&cad=rja
    Let us know in case the issue still persists.
    Debanshu

  • I get error message iTunes could not sync calendars to iPhone because an error occurred while merging data

    I get error message iTunes could not sync calendars to iPhone because an error occurred while merging data on my wifes phone how do you correct problem without losing calendars info on phone.

    One thing that might help.
    1. open itunes preferences from the edit menu and click on the devices tab.
    2. check the box to disable syncing for iphones connected to itunes and click ok.
    3. Then click the button to reset sync history.
    4. Now click ok to close the preferences window.
    5. connect the iphone to itunes and go to the info tab.
    6. scroll to the bottom of the info page and check the box to replace the ical data on the iphone.
    7. then click apply on the bottom right of itunes.
    This will overwrite any events on the iphone, including any events that has become corrupted.
    Hope this helps

  • SAP MII 14.0 SP5 Patch 11 - Error has occurred while processing data stream Dynamic Query role is not assigned to the Data Server

    Hello All,
    We are using a two tier architecture.
    Our Corp server calls the refinery server.
    Our CORP MII server uses user id abc_user to connect to the refinery data server.
    The user id abc_user has the SAP_xMII_Dynamic_Query role.
    The data server also has the checkbox for allow dynamic query enabled.
    But we are still getting the following error
    Error has occurred while processing data stream
    Dynamic Query role is not assigned to the Data Server; Use query template
    Once we add the SAP_xMII_Dynamic_Query role to the data server everything works fine. Is this feature by design ?
    Thanks,
    Kiran

    Thanks Anushree !!
    I thought that just adding the role to the user and enabling the dynamic query checkbox on the data server should work.
    But we even needed to add the role to the data server.
    Thanks,
    Kiran

  • 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.

  • Error while activating Data source

    Hi,
    I hit an error while activating data source with adapter 'WEB_PUSH web service'.
    The error message is 'Generation of conversion exists and PSA update ...' with details 'Error generating Web service /BIC/CZZZ_0010000100 ...' and 'Error when activating DataSource ZZZ_001'.
    I can't find much detail on this error.
    Has anyone hit this error before and if you did can you please let me know what to check?
    Thks & Regards,
    Bbee

    Hi,
    I am having the same problem.  Have you been able to solve the issue since you posted this last year? 
    Thanks,
    TCT

  • Not enough memory for Data Provider-Error while creating Data Source

    Hi,
    I am loading data into Master Data_Attribute InfoObject I am getting following error message while creating Data Source under "Proposal" Tab
    "Not enough memory for Data Provider"
    My Master Data InfoObject having 65 attributes
    My CSV file having 15,00000 records
    I am using BI 7.0 version
    If anybody faced this problem. Please share with me
    Thanks.

    Hi
    Here the problem with the space so plz contact ur BASIS people to increase the spae for particular object.

Maybe you are looking for