String or binary Data would be truncated. Error detected by database DLL

Having problems generating two reports in Crystal Reports v8.5. I can run it on my machine and one on one of my Terminal Server(TermA). However when I tried to generate the same two reports on my second terminal server(TermB), it crashed and I get the following error messages: ODBC error: String or binary data would be truncated and Error detected by database DLL We have one set user ID and password to generate all of our Crystal Reports.
Steps taken:
Reinstall Crystal on TermB server and did a fresh installation of Crystal 8.5 on another workstation.  Ran the reports and the result were the same (unable to generate the report) same errors messages.
Please HELP...
Thanks.

Terminal Server was not supported in CR 8.5

Similar Messages

  • "String or binary data would be truncated" and field specifications

    Hi all,
    i have "String or binary data would be truncated" error when i try to execute an insert statment.
    can i find witch field is affected by this error? (for return it to the user)
    thank's all

    As far as I am aware, there's no way to determine which column's length has been exceeded.
    You should add code into your stored procedure to check the lengths of variables before inserting their values into your tables, raising an error if necessary - see the example below.
    Again I stress that it would be better to modify the client application's code to either warn the user or to limit the number of characters they can enter into a field.
    Chris
    Code Snippet
    --This batch will fail with the SQL Server error message
    DECLARE @MyTable TABLE (MyID INT IDENTITY(1, 1), MyValue VARCHAR(10))
    DECLARE @MyParameter VARCHAR(100)
    --Create a string of 52 chars in length
    SET @MyParameter = REPLICATE('Z', 52)
    INSERT INTO @MyTable(MyValue)
    VALUES (@MyParameter)
    GO
    --This batch will fail with a custom error message
    DECLARE @MyTable TABLE (MyID INT IDENTITY(1, 1), MyValue VARCHAR(10))
    DECLARE @MyParameter VARCHAR(100)
    --Create a string of 52 chars in length
    SET @MyParameter = REPLICATE('Z', 52)
    IF LEN(@MyParameter) > 10
    BEGIN
         RAISERROR('You attempted to insert too many characters into MyTable.MyValue.', 16, 1)
    RETURN
    END
    ELSE
    BEGIN
         INSERT INTO @MyTable(MyValue)
         VALUES (@MyParameter)
    END
    GO

  • Sporadically getting error "string or binary data would be truncated" in SQL server 2008 while inserting in a Table Type object

    I am facing a strange SQL exception:-
    The code flow is like this:
    .Net 4.0 --> Entity Framework --> SQL 2008 ( StoredProc --> Function {Exception})
    In the SQL Table-Valued Function, I am selecting a column (nvarchar(50)) from an existing table and (after some filtration using inner joins and where clauses) inserting the values in a Table Type Object having a column (nvarchar(50))
    This flow was working fine in SQL 2008 but now all of sudden the Insert into @TableType is throwing  "string or binary data would be truncated"  exception. 
    Insert Into @ObjTableType
    Select * From dbo.Table
    The max length of data in the source column is 24 but even then the insert statement into nvarchar temp column is failing.
    Moreover, the same issue started coming up few weeks back and I was unable to find the root cause, but back then it started working properly after few hours
    (issue reported at 10 AM EST and was automatically resolved post 8 PM EST). No refresh activity was performed on the database.
    This time however the issue is still coming up (even after 2 days) but is not coming up in every scenario. The data set, for which the error is thrown, is valid and every value in the function is fetched from existing tables. 
    Due to its sporadic nature, I am unable to recreate it now :( , but still unable to determine why it started coming up or how can i prevent such things to happen again.
    It is difficult to even explain the weirdness of this bug but any help or guidance in finding the root cause will be very helpful.
    I also Tried by using nvarchar(max) in the table type object but it didn't work.
    Here is a code similar to the function which I am using:
    BEGIN
    TRAN
    DECLARE @PID
    int = 483
    DECLARE @retExcludables
    TABLE
        PID
    int NOT
    NULL,
        ENumber
    nvarchar(50)
    NOT NULL,
        CNumber
    nvarchar(50)
    NOT NULL,
        AId
    uniqueidentifier NOT
    NULL
    declare @PSCount int;
    select @PSCount =
    count('x')
    from tblProjSur ps
    where ps.PID
    = @PID;
    if (@PSCount = 0)
    begin
    return;
    end;
    declare @ExcludableTempValue table (
            PID
    int,
            ENumber
    nvarchar(max),
            CNumber
    nvarchar(max),
            AId
    uniqueidentifier,
            SIds
    int,
            SCSymb
    nvarchar(10),
            SurCSymb
    nvarchar(10)
    with SurCSymbs as (
    select ps.PID,
                   ps.SIds,              
                   csl.CSymb
    from tblProjSur ps
                right
    outer join tblProjSurCSymb pscs
    on pscs.tblProjSurId
    = ps.tblProjSurId
    inner join CSymbLookup csl
    on csl.CSymbId
    = pscs.CSymbId 
    where ps.PID
    = @PID
        AssignedValues
    as (
    select psr.PID,
                   psr.ENumber,
                   psr.CNumber,
                   psmd.MetaDataValue
    as ClaimSymbol,
                   psau.UserId
    as AId,
                   psus.SIds
    from PSRow psr
    inner join PSMetadata psmd
    on psmd.PSRowId
    = psr.SampleRowId
    inner join MetaDataLookup mdl
    on mdl.MetaDataId
    = psmd.MetaDataId
    inner join PSAUser psau
    on psau.PSRowId
    = psr.SampleRowId
                inner
    join PSUserSur psus
    on psus.SampleAssignedUserId
    = psau.ProjectSampleUserId
    where psr.PID
    = @PID
    and mdl.MetaDataCommonName
    = 'CorrectValue'
    and psus.SIds
    in (select
    distinct SIds from SurCSymbs)         
        FullDetails
    as (
    select asurv.PID,
    Convert(NVarchar(50),asurv.ENumber)
    as ENumber,
    Convert(NVarchar(50),asurv.CNumber)
    as CNumber,
                   asurv.AId,
                   asurv.SIds,
                   asurv.CSymb
    as SCSymb,
                   scs.CSymb
    as SurCSymb
    from AssignedValues asurv
    left outer
    join SurCSymbs scs
    on    scs.PID
    = asurv.PID
    and scs.SIds
    = asurv.SIds
    and scs.CSymb
    = asurv.CSymb
    --Error is thrown at this statement
    insert into @ExcludableTempValue
    select *
    from FullDetails;
    with SurHavingSym as (   
    select distinct est.PID,
                            est.ENumber,
                            est.CNumber,
                            est.AId
    from @ExcludableTempValue est
    where est.SurCSymb
    is not
    null
    delete @ExcludableTempValue
    from @ExcludableTempValue est
    inner join SurHavingSym shs
    on    shs.PID
    = est.PID
    and shs.ENumber
    = est.ENumber
    and shs.CNumber
    = est.CNumber
    and shs.AId
    = est.AId;
    insert @retExcludables(PID, ENumber, CNumber, AId)
    select distinct est.PID,
    Convert(nvarchar(50),est.ENumber)
    ENumber,
    Convert(nvarchar(50),est.CNumber)
    CNumber,
                            est.AId      
    from @ExcludableTempValue est 
    RETURN
    ROLLBACK
    TRAN
    I have tried by converting the columns and also validated the input data set for any white spaces or special characters.
    For the same input data, it was working fine till yesterday but suddenly it started throwing the exception.

    Remember, the CTE isn't executing the SQL exactly in the order you read it as a human (don't get too picky about that statement, it's at least partly true enough to say it's partly true), nor are the line numbers or error messages easy to read: a mismatch
    in any of the joins along the way leading up to your insert could be the cause too.  I would suggest posting the table definition/DDL for:
    - PSMetadata, in particular PSRowID, but just post it all
    - tblProjectSur, in particularcolumns CSymbID and TblProjSurSurID
    - cSymbLookup, in particular column CSymbID
    - PSRow, in particular columns SampleRowID, PID,
    - PSAuser and PSUserSur, in particualr all the USERID and RowID columns
    - SurCSymbs, in particular colum SIDs
    Also, a diagnostic query along these lines, repeat for each of your tables, each of the columns used in joins leading up to your insert:
    Select count(asurv.sid) as count all
    , count(case when asurv.sid between 0 and 9999999999 then 1 else null end) as ctIsaNumber
    from SurvCsymb
    The sporadic nature would imply that the optimizer usually chooses one path to the data, but sometimes others, and the fact that it occurs during the insert could be irrelevant, any of the preceding joins could be the cause, not the data targeted to be inserted.

  • Synch Error: String or binary data would be truncated.

    I kicked off an inital synch for WebTools 2007 (may also be an issue in 596) and I had 1 synch error for SBOPartner:
    String or binary data would be truncated.
    The statement has been terminated.
       at netpoint.api.data.DataFunctions.Execute(String SQL, IDataParameter[] parameters, String connectionstring)
       at netpoint.api.NPBase.MarkSynched(String SynchID)
       at NetPoint.SynchSBO.SBOObjects.SBOPartner.SBOToNetPoint(SBOQueueObject qData)
       at NetPoint.SynchSBO.SynchObjectBase.Synch()
    I traced the sql log and found the problem was related to addresses. The synchid only allows 50 characters but my synchid was 51 characters (COMINF, Communication Infrastructure Corporation, S). Anyway, to fix I modified the table to allow 100 characters and reran the synch. I know an upgrade will set it back to 50 but at least it's working now.
    I tried to post this to support as a bug but I couldn't figure out how (as usual) or the authorization stuff changed so I figured I would post it here so hopefully the devs will see this and update the code.
    Steve

    Thanks Shawn ... My version of Netpoint is 2007.0.620.0 and the synch manager is 2007.0.620.35247. I'm not sure what patch level this means I am on though.
    Steve

  • String or binary data would be truncated - different service packs on publisher vs distributor

    We have transactional replication where the publisher is 10.0.4067 and the distributor is 10.0.4000.  The distribution agent will periodically will fail with the following error: String
    or binary data would be truncated
    SQLSTATE 22001] (Error 8152). The tables on the publisher and subscriber are all the same data type. Could the version difference be causing this issue?  Do we need
    to upgrade the distributor sql server (different server than the publication server)?

    Hello,
    Just as others post above, the difference service pack version between publisher and distributor should not cause this issue.The replication workfolw between publisher and distributor is through the Log Reader Agent which
    runs at the Distributor, it reads the publication transaction log in publisher and copies those transactions in batches to the distribution database at the Distributor.
    You can refer to the following thread which about the similar issue casused by a long stored procedure:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/5bbf2c8c-a5c0-4a22-b30b-82b6ce4f1fea/an-error-prevents-replication-from-synchronizing-string-or-binary-data-would-be-truncated?forum=sqlreplication.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click here.
    Fanny Liu
    TechNet Community Support

  • When i tried to insert data in a database the following error is displaying, error : String or binary data would be truncated

    Hi,
         can any anyone give me a solution for this.

    It is pretty old /famous error
    http://dimantdatabasesolutions.blogspot.co.il/2008/08/string-or-binary-data-would-be.html
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • String or binary data would be truncated.

    Anyone know why I would get this error when trying to place binary data into a sql server 2000 db? The file's length is 5512, and the length of the field I'm putting it in is 8000.
    Thanks

    That returns the length in bytes. Is the database field defined in bytes or bits?

  • - String or binary data would be truncated. ERROR

    was wondering if anyone is getting this error.  i created a new function and for 1 of the values i get this error.  i'm not sure if this is related to rounding issues but can anyone shed some light

    Hi Elmer,
    I would request you to first change the name of the variable.
    *function ACTBUD1(%MYACC%)
    (+(Account.%MYACC%,Scenario.Actual) - (Account.%MYACC%,Scenario.Budget))
    *endfunction

  • Getting the following error on one link on a specific website, Microsoft OLE DB Provider for ODBC Drivers error '80040e57' [Microsoft][ODBC SQL Server Driver][SQL Server]String or binary data would be truncated. /include/config.inc, line 131

    The link is to the forum page within the members login area. I have no trouble with anything else on this site and others do not have problems accessing the forum. They suggest it is an internet issue

    OK, well you usually need to wrap reserved words in double quotes. But I see that you are already using another reserved work "user" and wrapping that in square brackets so you could try that.
    MM_fldUserAuthorization = "[group]"
    If the person that built the data model is still there, let them know they've been using very common reserved words. Any word that is part of the SQL language itself should never be used.

  • Error detected by database DLL. [On Page Server: server_name]

    We have a web app that launches Crystal Reports (version 8) in the crystal reports viewer that plugs into IE (version 6.0 & 7.0). The reports connect to SQL Server 2005. We have some reports that work but we have 2 reports that used to work but stopped working since we made the change. Whenever we launch the report from the browser we get
    u2018Error detected by database DLL. [On Page Server: server_name]u2019
    This is very frustrating as we have
    1.     
    Recreated the reports from scratch
    2.     
    Checked the connection to the database
    3.     
    We connect to the live server using Terminal Server and we installed Crystal on the terminal server and the reports run fine there.
    4.     
    We had the report s working after the modification but for some strange reason they stop working and we start getting the above error
    5.
    Also we have noticed that sometimes when we remove the query string (?sf=...) to the report it works (actually we get the login screen - but it works fine after that).
    6.
    Please note that the reports with the query string work fine on our test server and on my local machine connecting to a local copy of the database.
    I am now very confused and would be very grateful for any help on this issue.
    Best regards
    Jose

    Well, after much search I found and fixed the problem.
    The problem was that I connect to two databases as part of a general view and our live server did not have the 'Crystal' user defined for the second (and less used) database. Once we defined the user on this second database it worked.
    One comment I would like to make is that the friendly error message 'Error detected by database DLL. [On Page Server: server_name]' is not as good as the 'raw' message that we get when we finally connected Crystal to the live server database and try to run the report - it went something like 'you are missing a connection to the database database_name' - I wished I had this error from the start.

  • Extracting strings from binary data

    Hello,
    I am trying to extract string from a binary file.
    At the unix command line (sunos) I can just type;
    strings <filename>
    This is a nice way to get a list of the contents of a directory.
    Is there a way in pl/sql to extract strings from binary data ? An equiv to strings on unix/linux ?
    Thanks in advance.
    Ben

    Hi,
    If you do want to list the contents of a directory, there are other ways to do it. Here's a base implementation of a utility I wrote:
    create or replace and resolve java source named "Util" as
    import java.io.*;
    import java.sql.*;
    import oracle.sql.*;
    import oracle.jdbc.driver.*;
    public class Util {
        public static void listFiles(String directory, oracle.sql.ARRAY[] names)
            throws IOException, SQLException {
            File f = new File(directory);
            if(f==null)
                throw new IOException("Directory: "+directory+" does not exist.");
            String[] files = f.list(
                new FilenameFilter() {
                    public boolean accept(File dir, String name) {
                        // List all files
                        return true;
            Connection conn = new OracleDriver().defaultConnection();
            ArrayDescriptor descriptor = ArrayDescriptor.createDescriptor("VC_TAB_TYPE", conn);
            names[0] = new ARRAY(descriptor, conn, files);
            return;
    create or replace type vc_tab_type is table of varchar2(255);
    create or replace package util authid current_user as
        function list_files(p_directory in varchar2)
            return vc_tab_type;
    end;
    create or replace package body util as
        procedure list_files (
            p_directory in varchar2
            , p_filenames out nocopy vc_tab_type
        is
        language java
        name 'Util.listFiles(java.lang.String, oracle.sql.ARRAY[])';
        function list_files(p_directory in varchar2) return vc_tab_type
        is
            l_filenames vc_tab_type := vc_tab_type();
        begin
            list_files(p_directory, l_filenames);
            return l_filenames;
        end;
    end;
    /You can then query the filesystem as follows:
      1  select column_value as filename
      2  from table(util.list_files('c:\windows'))
      3  where column_value like '%.log'
      4* and rownum <= 10
    SQL> /
    FILENAME
    0.log
    AdfsOcm.log
    aspnetocm.log
    bkupinst.log
    certocm.log
    chipset.log
    cmsetacl.log
    comsetup.log
    DtcInstall.log
    FaxSetup.log
    10 rows selected.cheers,
    Anthony

  • Error Detected by export DLL for pdf

    Post Author: netonomous
    CA Forum: Exporting
    We have a Win 2000 box with this feature working with no problem.
    I am getting an error exporting to .PDF when using .NET 2 Business Objects. Quite the opposite of your situation. Any ideas? My temp folder is under C:\Windows\Temp and the error I receive is
    Error in File C:\WINDOWS\TEMP\TSRDetail {F7EAB0D7-408F-4787-A1FE-5086F7199CB9}.rpt: Error detected by export DLL: This is on a Win 2003 box Service Pack 1 with IIS 6.0 with ASP.NET Framework for Crystal using an Oracle Database. Excel exports work ok.
    Thanks much in advance.

    Post Author: netonomous
    CA Forum: Exporting
    We have a Win 2000 box with this feature working with no problem.
    I am getting an error exporting to .PDF when using .NET 2 Business Objects. Quite the opposite of your situation. Any ideas? My temp folder is under C:\Windows\Temp and the error I receive is
    Error in File C:\WINDOWS\TEMP\TSRDetail {F7EAB0D7-408F-4787-A1FE-5086F7199CB9}.rpt: Error detected by export DLL: This is on a Win 2003 box Service Pack 1 with IIS 6.0 with ASP.NET Framework for Crystal using an Oracle Database. Excel exports work ok.
    Thanks much in advance.

  • Error detected by export DLL. Microsoft Windows Small Business Server 2003 SP 1

    Post Author: craig.engelbrecht
    CA Forum: .NET
    I have an Excel report that stopped working on a live environment a couple months ago.When I run the report I get the error 'Error detected by export DLL'.The server is running Microsoft Windows Small Business Server, Service Pack 1 and is using Crystal Reports 9.I am unable to replicate this error on other environments running the same configuration.I tried installing 'crnet11win_en.exe', even though this was a fix for Windows Server 2003 SP2, still no luck. Does anyone have any ideas on what is causing this and how it can be fixed?? Thanks,Craig

    Thanks Ludek
    We found the issue after doing control tests, here.
    We found that our crystal viewer, developed in .NET 2003, does not work with XP SP3, even with the fix crnet11win_en.exe.
    Our control test, was:
    Ran report with XP SP2, exported ok
    Upgraded pc to XP SP3, then ran report again, Report failed to export, with error message as described.
    Had a crystal viewer set for  using .NET 2005 files, but not yet ready for deployment to users, tested and was able to export to excel using .NET 2005 with XP SP3.
    The issue seems to relate to exportmodeller.dll, which was the issue in the past when XP was upgraded and stopped the export function from working before.

  • Standard Data Collection Failing with Error ORA-04054: database link  does not exist.

    Hi Gurus,
    When I am running Standard Data Collection in ASCP(APS) instance R12.1.3, its failing with error : ORA-04054: database link  does not exist.
    There is no such Database link exits which is showing in above error.
    Also the database link name in the above error is not profile values in the database.
    I think, concurrent might be fetching this database link name  from some tables related to plan.
    I am not having much knowledge about how this ASCP/APS works.
    Need your help to resolve this issue.
    Thanks,

    Hi,
    ASCP Collections looks at the dblink from instances definitions from.
    1. Responsibility: Advanced Planning Administrator
    2. Navigation: Admin > Instances
    You may review the note in support.oracle.com - Understanding DB Links Setup for APS Applications - ASCP and ATP Functionality (Doc ID 813231.1)

  • Error detected by Export DLL, when trying to export to excel

    Hi All
    We are having an issue that has occured recently where some of our user's are unable to export to excel. They were working ok.
    The crystal viewer was originally designed using Framework 1.1 (vs.net 2003) and we have applied the hotfix to the user's pc called:
    crnet11win_en.exe
    Which fixed the issue originally, by upgrading the ExportModeller.dll to 9.1.1.528.
    However in this case, even after running the patch, the user's pc is still unable to export to "excel", works ok for PDF and WORD, just not excel.
    Tested the report on 2 other pc's and the report is able to export to excel.
    Just not on that user's pc, is anyone able to give advice of what could be stopping the user from running the report.
    The user is on Windows XP SP3, but we been informed that other user's with XP SP3 are able to export to excel with no problem.
    Thanks in advance for any help or advice that you can give.
    Regards
    Chris
    Edited by: CMThompson on Feb 22, 2010 11:52 AM

    Thanks Ludek
    We found the issue after doing control tests, here.
    We found that our crystal viewer, developed in .NET 2003, does not work with XP SP3, even with the fix crnet11win_en.exe.
    Our control test, was:
    Ran report with XP SP2, exported ok
    Upgraded pc to XP SP3, then ran report again, Report failed to export, with error message as described.
    Had a crystal viewer set for  using .NET 2005 files, but not yet ready for deployment to users, tested and was able to export to excel using .NET 2005 with XP SP3.
    The issue seems to relate to exportmodeller.dll, which was the issue in the past when XP was upgraded and stopped the export function from working before.

Maybe you are looking for

  • PI 7.1 are released for Customer use??

    Hi All: Is PI 7.1 is ready for customer use? Meaning can I install PI 7.1 and start exploring that?? Farooq.

  • Enable virtualization technology in bios on HP G60-633NR

    How do I get Intel virtualization technology in bios on HP G60-633NR... can't find... EVERYTHING on this pc is X64.... but I can't build a 64 bit virtual machine!!! Help please

  • Sync Outlook Calendar

    This is for my Dad - he has an iPad2 with the latest iOS version and the latest iTunes on his machine.  He is trying to sync his calendar to the iPad - it was working, but something got messed up and now he's getting an error message when he tries to

  • Files are in READ ONLY mode

    I have a file server 2003 with shared folders. I have " FULL CONTROL" on all the folders. However, when someone else saves a document in one of the folders, it opens in READ ONLY mode on my Windows 7 machine, Office 2013. When I log into the server i

  • I have a question about how to contact HR with e-mail.

    I read the rules about anything about HR is not allowed, but I also read to contact HR directly, so I won't ask anything further here. My question is, how? I searched for an e-mail, but all I have been able to find is a phone number I can't ring sinc