Offset problem more than 240 characters

hi all,
please find the coding,when i run this program i got dump.
how to correct this dump.
wa_prchr = 'In Stahl India various sales scenarios are created   standard orders (Order type - OR)Sale order is created based on the customer purchase order from Chennai KanpurKolkattasample orders (Order type - FD)sample orders (Order type - FD)sample '..
a = 0.
b = 0.
do 15 times.
b = b + 72.
          wa_text =  wa_prchr+a(b).
              wa_tline-tdline = wa_text .
          wa_tline-tdformat = '*'.
         append wa_tline to tlinetab.
a = a + 72.
clear b.
clear wa_text.
enddo.
i got dump like this
Invalid access to a string (offset and length too large).
However, the sum of the offset (216) and length (72) specification
was greater than the length of the string (240).
This is not allowed.
Edited by: bala chandran on Jun 26, 2008 7:27 AM

Problem occurs because length of wa_prchr is 240.
Whereas  you are doing loop for 15 times and reading 72 characters in each loop pass.
so in 3rd loop pass, program tries to read 72*3 = 216 (72). As a result, program tries to read wa_prchr till (216+72 ) 288 characters.
As a result, there is a length mismatch and you get a dump.
Solution: Either specify length of wa_prchr to 1080 characters.
Or modify your do loop.
Reward if useful.

Similar Messages

  • How to enter more than 132 characters in a Parameters Field

    Hi Everyone,
    I have a field of type file_table-filename as Parameters in my Selection-screen. The size of the filename is 1024 characters as declared in the structure file_table. But when i am trying to enter the path into this field, its allowing not more than 132 characters....how is it possible to enter more characters? Even in debugging mode the maximum value we can scroll is upto 128/132 characters..if we want more then we should use the Offset option...but how to enter more than 132 chars into this field?
    Best regards,
    rama

    Hai,
    I did the same in my program...i get the filename along with the path into this field...but then there is a chance that the User wants to say edit the filename..here comes the problem.
    Best regards,
    rama

  • Excel 2007 to Sql server table. Column with more than 255 characters.

    Hi there,
    I am facing a problem while converting data from Excel 2007 to SQL server 2005 table. I am using BIDS 2005.I have an excel file where one particular column has more than 255 characters. I use OLEDB connection for excel file as there is no driver for Excel
    2007 in BIDS2005. I am using Microsoft Office 12.0 Access Database Engine OLE DB Provider for Excel file.
    Next, I changed advanced properties for the column to DT_NTEXT. But when I am getting errors on execution. They are:
    [OLE DB Source [1949]] Error: SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80040E21.
    [OLE DB Source [1949]] Error: Failed to retrieve long data for column "action".
    [OLE DB Source [1949]] Error: There was an error with output column "action" (2046) on output "OLE DB Source Output" (1959). The column status returned was: "DBSTATUS_UNAVAILABLE".
    [OLE DB Source [1949]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.  The "output column "action" (2046)" failed because error code 0xC0209071 occurred, and the error row disposition on "output column "action"
    (2046)" specifies failure on error. An error occurred on the specified object of the specified component.  There may be error messages posted before this with more information about the failure.
    Please advise on how can I deal with columns having more than 255 characters in Excel file.
    Thanks!

    Here is what your connection string should look like for excel source
    Provider
    =Microsoft.Jet.OLEDB.4.0;Data
    Source=c:\temp\test.xls;Extended
    Properties="EXCEL 8.0;HDR=YES";
    http://sqlworkday.blogspot.com/

  • More than 255 characters in a table text field

    Dear experts,
    i am facing a problem (in WD Alv too) that i can not display more than 255 characters in a single text field.
    I want to display a table containing a description field without a limitation of its length. As soon as providing a (formatted) string longer than 255 characters of length, no interactive form is shown on screen.
    Debugging a while, the following error message occurs;
    ADS: com.adobe.ProcessingException: com.adobe.ProcessingException: XMLFM Exception - PDF render operation exception, reason code: 0 : InvalidXDPException: Xml parsing error: reference to invalid character number (error code 14) ...
    Does anybody have similar problems to mine?
    Did anyone resolve the issue to show more than 255 characters in a table in interactive form?
    Regards,
    Florian Royer
    Edited by: Florian Royer on Feb 11, 2010 2:48 PM

    CALL METHOD lr_service_manager->retrieve
            EXPORTING
              iv_bo_name       = 'cPro_Project' "lv_bo_name "cPro_Project
    *      iv_bo_name      = cl_dpr_api_co=>sc_bo_cprojects "
              iv_bo_node_name =  'Longtext.Root' "lv_bo_node_name "Longtext.Root
              it_keys         = lt_ltext_key
              iv_edit_mode    = '0' "iv_edit_mode "0
            IMPORTING
              et_data         = lt_longtext_mast
              et_failed_keys  = lt_ltext_key_fail.
          READ TABLE lt_longtext_mast INTO ls_longtext_mast INDEX 1.
          MOVE ls_longtext_mast-longtext TO ls_action_item-zz_description.
    This is how i get the text with format (line feeds).
    zz_description is type string.
    My table is on a page, wrapped in a subform. and zz_description is type text field.
    Yes, i maintained "allow multiple lines" and did not limit length somehow.
    The problem arises in portal, pressing the preview button of a zform. providing a string <255 characters of length, everything works fine.
    Edited by: Florian Royer on Feb 11, 2010 3:10 PM

  • Using Cast('' to XML) when my stringb is more than 8000 characters

    I have some sql code that is generated dynamically to build a grid.  the xml string that is put together in my sp is dynamic and it just so happens I have a situation where the xml string it put together is more than 8000 characters so when I run my
    query I get 'Msg 9413, Level 16, State 1, Line 1 XML parsing; Line 1, character 8000, A string literal was expected.'
    below is the sql that my sp has built.  any ideas on how I can get it to work? 
    The problem line is the one with '</xs:schema>'as xml)'
    Thanks
    SELECT CAST('<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop"  attributeFormDefault="qualified"
    elementFormDefault="qualified">' + 
    '<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">' +
    '<xs:complexType>' +
    '<xs:choice minOccurs="0" maxOccurs="unbounded">' +
    '<xs:element name="BOMVerifyValue">' +
    '<xs:complexType>' +
    '<xs:sequence>' +
    '<xs:element name="BOMVerifyValueID" type="xs:int" minOccurs="0" msprop:Visible="0" msprop:Mandatory="1" />' +
    '<xs:element name="Row" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:integer" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="BOMVerifyID" msprop:State="0" msprop:Visible="0" msprop:BestFitColumnMode="2" type="xs:string" minOccurs="0"  msprop:Mandatory="1" />' +
    '<xs:element name="SizeX" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0"  msprop:Mandatory="1" />' +
    '<xs:element name="SizeY" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0"  msprop:Mandatory="1" />' +
    '<xs:element name="SizeZ" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0"  msprop:Mandatory="1" />' +
    '<xs:element name="HasErrors" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:boolean" minOccurs="0"  msprop:Mandatory="1" />' +
    '<xs:element name="Warning" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" msprop:ReadOnly="true" type="xs:boolean" minOccurs="0"  msprop:Mandatory="1"
    />' +
    '<xs:element name="RMK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4041" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4046" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4051" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ROT2" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4071" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FR-TK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4076" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDoors" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4081" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDrawers" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4086" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDFBox" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4091" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHD" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4096" type="xs:string" minOccurs="0" />' +
    '<xs:element name="OneDrawer" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4121" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BT" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4126" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDF" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4136" type="xs:string" minOccurs="0" />' +
    '<xs:element name="EL" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4161" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ER" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4166" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4191" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4196" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-Back" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4206" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BTBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="7979" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8024" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8032" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPLeft" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8190" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPRight" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8195" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPRightButt" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8413" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPLeftButt" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8480" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDFBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9204" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9262" type="xs:string" minOccurs="0" />' +
    '<xs:element name="OneDrawerBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9304" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDoorsFHD" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9408" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTKFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="10151" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTKFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="10172" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-FE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19191" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-FE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19195" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK_FrontBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19199" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK_BackFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19203" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-BackFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19207" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ROTOneeachside" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19422" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDSendDoorsLoose" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19733" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDSendDoorsLooseOne" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19737" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELFE-LBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20199" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERFE-RBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20203" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20335" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20339" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTKFE-LFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20703" type="xs:string" minOccurs="0" />' +
    '</xs:sequence>' +
    '</xs:complexType>' +
    '</xs:element>' +
    '</xs:choice>' +
    '</xs:complexType>' +
    '</xs:element>' +
    '</xs:schema>'as xml)
     SELECT * FROM (
     SELECT ROW_NUMBER() OVER (ORDER BY [bomvv].[BOMVerifyID]) as Row 
         , [BOMVerifyValueID] 
         , [bomvv].[BOMVerifyID] 
         , [bomv].[Size_X] + [SizeX] as [SizeX] 
         , [bomv].[Size_Y] + [SizeY] as [SizeY] 
         , [bomv].[Size_Z] + [SizeZ] as [SizeZ] 
         , [HasErrors] 
         , CASE WHEN ISNULL([bomvtl].[BOMVerifyTransactionLogID], 1) <> 1 
                THEN CASE WHEN ISNULL([csp].[CabinetServiceProcessID], 1) <> 1 
                          THEN '0' 
                          ELSE CASE WHEN ISNULL([bomvv].[UpdateDate], '1/1/2001') > ISNULL([bomvtl].[DateAdded], '1/1/2001') THEN 0 ELSE 1 END 
                     END 
                ELSE '0' 
                END as [Warning] 
         , CASE WHEN CHARINDEX( '4041',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [RMK]
         , CASE WHEN CHARINDEX( '4046',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK]
         , CASE WHEN CHARINDEX( '4051',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NTK]
         , CASE WHEN CHARINDEX( '4071',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ROT2]
         , CASE WHEN CHARINDEX( '4076',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FR-TK]
         , CASE WHEN CHARINDEX( '4081',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NoDoors]
         , CASE WHEN CHARINDEX( '4086',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NoDrawers]
         , CASE WHEN CHARINDEX( '4091',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NoDFBox]
         , CASE WHEN CHARINDEX( '4096',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FHD]
         , CASE WHEN CHARINDEX( '4121',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [OneDrawer]
         , CASE WHEN CHARINDEX( '4126',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BT]
         , CASE WHEN CHARINDEX( '4136',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDF]
         , CASE WHEN CHARINDEX( '4161',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [EL]
         , CASE WHEN CHARINDEX( '4166',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ER]
         , CASE WHEN CHARINDEX( '4191',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FE-L]
         , CASE WHEN CHARINDEX( '4196',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FE-R]
         , CASE WHEN CHARINDEX( '4206',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK-Back]
         , CASE WHEN CHARINDEX( '7979',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BTBack]
         , CASE WHEN CHARINDEX( '8024',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ELBack]
         , CASE WHEN CHARINDEX( '8032',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ERBack]
         , CASE WHEN CHARINDEX( '8190',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDEPLeft]
         , CASE WHEN CHARINDEX( '8195',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDEPRight]
         , CASE WHEN CHARINDEX( '8413',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDEPRightButt]
         , CASE WHEN CHARINDEX( '8480',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDEPLeftButt]
         , CASE WHEN CHARINDEX( '9204',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [BDFBack]
         , CASE WHEN CHARINDEX( '9262',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FHDBack]
         , CASE WHEN CHARINDEX( '9304',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [OneDrawerBack]
         , CASE WHEN CHARINDEX( '9408',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NoDoorsFHD]
         , CASE WHEN CHARINDEX( '10151',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NTKFE-R]
         , CASE WHEN CHARINDEX( '10172',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [NTKFE-L]
         , CASE WHEN CHARINDEX( '19191',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK-FE-R]
         , CASE WHEN CHARINDEX( '19195',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK-FE-L]
         , CASE WHEN CHARINDEX( '19199',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK_FrontBack]
         , CASE WHEN CHARINDEX( '19203',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK_BackFE-R]
         , CASE WHEN CHARINDEX( '19207',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTK-BackFE-L]
         , CASE WHEN CHARINDEX( '19422',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ROTOneeachside]
         , CASE WHEN CHARINDEX( '19733',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FHDSendDoorsLoose]
         , CASE WHEN CHARINDEX( '19737',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FHDSendDoorsLooseOne]
         , CASE WHEN CHARINDEX( '20199',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ELFE-LBack]
         , CASE WHEN CHARINDEX( '20203',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ERFE-RBack]
         , CASE WHEN CHARINDEX( '20335',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ELFE-L]
         , CASE WHEN CHARINDEX( '20339',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [ERFE-R]
         , CASE WHEN CHARINDEX( '20703',CAST ([ConfigOptions] as varchar(max))) > 0 THEN 'X' ELSE '' END as [FTKFE-LFE-R]
      FROM [CabinetDesigner].[BOMVerifyValue] bomvv 
     INNER JOIN [CabinetDesigner].[BOMValue] bomv 
     ON [bomv].[BOMID] = [bomvv].[BOMID] 
     AND [bomv].[EndDate] IS NULL 
     LEFT OUTER JOIN [CabinetDesigner].[BOMVerifyTransactionLog] bomvtl 
     ON [bomvtl].[BOMID] = 9143
     AND [bomvtl].[Processed] = 0 
     LEFT OUTER JOIN [CabinetService].[CabinetServiceProcess] csp 
       ON [csp].[BOMVerifyTransactionLogID] = [bomvtl].[BOMVerifyTransactionLogID] 
      AND [csp].[BOMVerifyID] = [bomvv].[BOMVerifyID] 
     WHERE [bomvv].[BOMID] = 9143
     AND [bomvv].[EndDate] IS NULL 
     ) xx 
     FOR XML PATH('BOMVerifyValue'), TYPE)
     FOR XML PATH('NewDataSet')

    Each of those segments is a varchar with some number up to 8000 and when you concatenate it, you get a varchar(8000).
    If you remove the single quotes and plus signs and create a single string, you will get a varchar(max) which works.
    Or you can concatenate an empty varchar(max) variable:
    declare @t varchar(max) = ''
    SELECT CAST(@t + '<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified">' +
    '<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true">' +
    '<xs:complexType>' +
    '<xs:choice minOccurs="0" maxOccurs="unbounded">' +
    '<xs:element name="BOMVerifyValue">' +
    '<xs:complexType>' +
    '<xs:sequence>' +
    '<xs:element name="BOMVerifyValueID" type="xs:int" minOccurs="0" msprop:Visible="0" msprop:Mandatory="1" />' +
    '<xs:element name="Row" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:integer" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="BOMVerifyID" msprop:State="0" msprop:Visible="0" msprop:BestFitColumnMode="2" type="xs:string" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="SizeX" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="SizeY" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="SizeZ" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:decimal" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="HasErrors" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" type="xs:boolean" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="Warning" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="2" msprop:ReadOnly="true" type="xs:boolean" minOccurs="0" msprop:Mandatory="1" />' +
    '<xs:element name="RMK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4041" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4046" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4051" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ROT2" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4071" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FR-TK" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4076" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDoors" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4081" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDrawers" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4086" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDFBox" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4091" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHD" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4096" type="xs:string" minOccurs="0" />' +
    '<xs:element name="OneDrawer" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4121" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BT" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4126" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDF" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4136" type="xs:string" minOccurs="0" />' +
    '<xs:element name="EL" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4161" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ER" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4166" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4191" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4196" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-Back" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="4206" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BTBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="7979" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8024" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8032" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPLeft" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8190" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPRight" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8195" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPRightButt" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8413" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDEPLeftButt" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="8480" type="xs:string" minOccurs="0" />' +
    '<xs:element name="BDFBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9204" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9262" type="xs:string" minOccurs="0" />' +
    '<xs:element name="OneDrawerBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9304" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NoDoorsFHD" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="9408" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTKFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="10151" type="xs:string" minOccurs="0" />' +
    '<xs:element name="NTKFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="10172" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-FE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19191" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-FE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19195" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK_FrontBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19199" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK_BackFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19203" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTK-BackFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19207" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ROTOneeachside" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19422" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDSendDoorsLoose" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19733" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FHDSendDoorsLooseOne" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="19737" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELFE-LBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20199" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERFE-RBack" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20203" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ELFE-L" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20335" type="xs:string" minOccurs="0" />' +
    '<xs:element name="ERFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20339" type="xs:string" minOccurs="0" />' +
    '<xs:element name="FTKFE-LFE-R" msprop:State="0" msprop:Visible="1" msprop:BestFitColumnMode="4" msprop:EntityBOMID="20703" type="xs:string" minOccurs="0" />' +
    '</xs:sequence>' +
    '</xs:complexType>' +
    '</xs:element>' +
    '</xs:choice>' +
    '</xs:complexType>' +
    '</xs:element>' +
    '</xs:schema>'as xml)
    Russel Loski, MCT, MCSE Data Platform/Business Intelligence. Twitter: @sqlmovers; blog: www.sqlmovers.com

  • Unable to read more than 255 characters in a string data type.

    Hello,
    I am using Crystal Reports version 11.5.8.826 to generate reports from databases such as MS-Excel & BaaN.
    In Excel, there are records which carry string lengths of more than 255 characters. All though the fields are getting displayed in the report, the data being displayed gets truncated once it reaches a length of 255 characters.
    Kindly provide me with a solution this problem.
    Regards

    Hello Manish,
    I know that older versions of Crystal (Crystal 10 and older ) had a limitation of only 256 Characters for a string value.  You should be able to use this code to get what  you need. 
    We were successfully able to print out the Declaration of Independence through a Crystal report using something very similiar to this.
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    Shared StringVar Array strings;
    Shared NumberVar arrayMax := 1;
    Shared NumberVar maxLength := 250;
    Shared BooleanVar firstTime := true;
    Redim strings[arrayMax];
    strings[1] := u201Cu201D;
    u2018done!u2019
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    Here is my main loop that I used in the group header:
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    WhilePrintingRecords;
    Shared StringVar Array strings;
    Shared NumberVar arrayMax;
    Shared NumberVar maxLength;
    Shared BooleanVar firstTime;
    Local StringVar enteredString;
    Local NumberVar lenStr;
    Local NumberVar lenArr;
    Local NumberVar lenLeft;
    enteredString := [Field Name];
    enteredString := IIF(firstTime,enteredString, u201C, u201D & enteredString);
    firstTime := false;
    lenStr := Length(enteredString);
    lenArr := Length(strings[arrayMax]);
    lenLeft := maxLength u2013 lenArr;
    if (lenLeft >= lenStr) then
    strings[arrayMax] := strings[arrayMax] & enteredString;
    u201D
    else
    strings[arrayMax] := strings[arrayMax] & left(enteredString, lenLeft);
    arrayMax := arrayMax + 1;
    redim preserve strings[arrayMax];
    strings[arrayMax] := u201Cu201D;
    strings[arrayMax] := strings[arrayMax] & right(enteredString, lenStr u2013 lenLeft);
    u201D
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    and then to display the different sets in the text area. I would have one of these for every element I need displayed and change the display number variable.
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    Shared StringVar Array strings;
    Shared NumberVar arrayMax;
    Local NumberVar displayNumber := [element in array];
    if(arrayMax >= displayNumber) then
    strings[displayNumber];
    else
    u201D;
    u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2014u2013
    I like this version better because the array is completely dynamic. It can be as big or as small as it needs to be.  There is always room for optimizations.  But hopefully this will get you started on the right path.
    Jenny

  • More than 255 Characters in 2D barcode

    Hi All,
    We are not able to print more than 255 characters in a 2D barcode which
    is used in a label using a smartform.
    We did Checked note 497380 but cant use SO10 as its a dynamic data.
    Any pointers would be extremely useful.
    Regards,
    Swati

    CALL METHOD lr_service_manager->retrieve
            EXPORTING
              iv_bo_name       = 'cPro_Project' "lv_bo_name "cPro_Project
    *      iv_bo_name      = cl_dpr_api_co=>sc_bo_cprojects "
              iv_bo_node_name =  'Longtext.Root' "lv_bo_node_name "Longtext.Root
              it_keys         = lt_ltext_key
              iv_edit_mode    = '0' "iv_edit_mode "0
            IMPORTING
              et_data         = lt_longtext_mast
              et_failed_keys  = lt_ltext_key_fail.
          READ TABLE lt_longtext_mast INTO ls_longtext_mast INDEX 1.
          MOVE ls_longtext_mast-longtext TO ls_action_item-zz_description.
    This is how i get the text with format (line feeds).
    zz_description is type string.
    My table is on a page, wrapped in a subform. and zz_description is type text field.
    Yes, i maintained "allow multiple lines" and did not limit length somehow.
    The problem arises in portal, pressing the preview button of a zform. providing a string <255 characters of length, everything works fine.
    Edited by: Florian Royer on Feb 11, 2010 3:10 PM

  • Not able to save more than 2000 characters

    Databse - SQL server 2000
    I am using jdbc to save some text in sql server 2000 database. column is of type ntext.
    If text is more than 2000 character, i am getting an error.
    I tried changing the connection setting to sendstringparameterasunicode=false. After setting this property i am able to save more than 2000 characters, but i am not able to save some special characters. eg - . I am not able to save “abc” but i can save "abc". So it is not recongnizing the double quotes in the first scenario.
    Amit
    Edited by: rushtoamit on Feb 22, 2010 8:48 AM

    No idea. But it isn't a java nor jdbc (general problem.)
    Thus if you are seeing something that tells you it is too big it either comes from the driver or the database.
    So your solutions are
    1. Use a different database and driver
    2. Use a different driver
    3. Modify your code

  • Storing more than 2000 characters in a varchar2 column in Oracle 11g?

    We have a table in Oracle 11g with a varchar2 column. We use a proprietary programming language where this column is defined as string. Maximum we can store 2000 characters (4000 bytes) in this column. Now the requirement is such that the column needs to store more than 2000 characters. The DBAs don't like BLOB, CLOB or LONG datatypes for maintenance reasons.
    There are 2 solutions I can think of -
    1. Remove this column from the original table and have a separate table for this column and then store each character in a row, in order to get more than 2000 characters. This table will be joined with the original table for queries.
    2. If maximum I need is 8000 characters, can I just add 3 more columns so that I will have 4 columns with 2000 char each to get 8000 chars. So when the first column is full, values would be spilled over to the next column and so on.
    Which one is a better and easier approach? Please suggest.

    Visu - Some people also do not like to use LOBs because of difficulty in reclaiming space and ever increasing LOB segments. Some of these problems were caused by Oracle bugs (eg, Bug 2944866 Free space in LOB table / tablespace not reused with ASSM, Bug 3019979 Space may not be reused efficiently in a LOB segment) - albeit in 9.2. I've seen a few bug reports for similar things in 10.2 (don't have the references). Still, if there is a workaround/patch is this reason enough to steer the application development into a new direction?

  • Cannot insert more than 4000 characters using PL/SQL SP  to LONG columns

    I have created a stored procedure which will insert more than 4000 characters in a table having long column.
    The stored procedure body is as follows :
    CREATE OR REPLACE PROCEDURE INSERTTOTEST(P_ZUNIQUEID IN  VARCHAR2,P_LONGVAL  IN LONG)
    AS
    BEGIN
    insert into CLOBVALUESHOW(zuniqueid, longval) VALUES (p_zuniqueid, p_longval) ;
    COMMIT;
    END INSERTTOTEST;
    When I use the RPAD function as below, it executes without any error :
    EXEC INSERTTOTEST('ABCD123',rpad('',32000,'*'))*
    But when I run with real-time values like the following string value :
    '[ERROR] [JTA_Command_Insert_tCatalog]Error invoking Transaction Command action: JTATransactionCommand - A SQL Command Exception occured against JNJ_MDD_OCD_CPL_DS with the following command BEGIN INSERT INTO tCatalog_SAPImport( tCatalog_SAPImport.CatalogNo, tCatalog_SAPImport.SONumber, tCatalog_SAPImport.ChemName, tCatalog_SAPImport.RH, tCatalog_SAPImport.ExpireMonth, tCatalog_SAPImport.SlidesPerCart, tCatalog_SAPImport.IDEXX_PART_NBR, tCatalog_SAPImport.TOP_FOIL_MATL_NBR, tCatalog_SAPImport.BTM_FOIL_MATL_NBR, tCatalog_SAPImport.AltChemName, tCatalog_SAPImport.StoreTemp, tCatalog_SAPImport.CartonCode, tCatalog_SAPImport.GrossLeakLimit, tCatalog_SAPImport.LeakLimit, tCatalog_SAPImport.CompValue, tCatalog_SAPImport.ProductType,tCatalog_SAPImport.CheckWeighHi, tCatalog_SAPImport.CheckWeighLo, tCatalog_SAPImport.SO_MASK, tCatalog_SAPImport.CAL_CURVE_PFX, tCatalog_SAPImport.PROD_INP_TYP, tCatalog_SAPImport.CTN_TUBE, tCatalog_SAPImport.SLIDE_STYLE, tCatalog_SAPImport.PROD_DESIG, tCatalog_SAPImport.SFM_AUD_RT, tCatalog_SAPImport.SPL_RT, tCatalog_SAPImport.FIRST_SLIDES_REM, tCatalog_SAPImport.SPL_FRONT, tCatalog_SAPImport.SPL_REAR, tCatalog_SAPImport.BARCODE_TYP, tCatalog_SAPImport.CHK_WEIGH_AIM, tCatalog_SAPImport.FOIL_TYP, tCatalog_SAPImport.CART_CLIP_PRES, tCatalog_SAPImport.TOP_LBL_TYP, tCatalog_SAPImport.FREEZER_MTH, tCatalog_SAPImport.OVERAGE_MTH) VALUES('1988211','09','ALB','33','NA','0','','','','ALB','8','522','305','710','50','17','208','165','','','SP','1','0','','0','0','0','0','0','2','0','0','0','1','0','0'); INSERT INTO tCatalog_SAPImport( tCatalog_SAPImport.CatalogNo, tCatalog_SAPImport.SONumber, tCatalog_SAPImport.ChemName, tCatalog_SAPImport.RH, tCatalog_SAPImport.ExpireMonth, tCatalog_SAPImport.SlidesPerCart, tCatalog_SAPImport.IDEXX_PART_NBR, tCatalog_SAPImport.TOP_FOIL_MATL_NBR, tCatalog_SAPImport.BTM_FOIL_MATL_NBR, tCatalog_SAPImport.AltChemName, tCatalog_SAPImport.StoreTemp, tCatalog_SAPImport.CartonCode, tCatalog_SAPImport.GrossLeakLimit, tCatalog_SAPImport.LeakLimit, tCatalog_SAPImport.CompValue, tCatalog_SAPImport.ProductType,tCatalog_SAPImport.CheckWeighHi, tCatalog_SAPImport.CheckWeighLo, tCatalog_SAPImport.SO_MASK, tCatalog_SAPImport.CAL_CURVE_PFX, tCatalog_SAPImport.PROD_INP_TYP, tCatalog_SAPImport.CTN_TUBE, tCatalog_SAPImport.SLIDE_STYLE, tCatalog_SAPImport.PROD_DESIG, tCatalog_SAPImport.SFM_AUD_RT, tCatalog_SAPImport.SPL_RT, tCatalog_SAPImport.FIRST_SLIDES_REM, tCatalog_SAPImport.SPL_FRONT, tCatalog_SAPImport.SPL_REAR, tCatalog_SAPImport.BARCODE_TYP, tCatalog_SAPImport.CHK_WEIGH_AIM, tCatalog_SAPImport.FOIL_TYP, tCatalog_SAPImport.CART_CLIP_PRES, tCatalog_SAPImport.TOP_LBL_TYP, tCatalog_SAPImport.FREEZER_MTH, tCatalog_SAPImport.OVERAGE_MTH) VALUES('1988211','09','ALB','33','NA','0','','','','ALB','8','522','305','710','50','17','208','165','','','SP','1','0','','0','0','0','0','0','2','0','0','0','1','0','0'); INSERT INTO tCatalog_SAPImport( tCatalog_SAPImport.CatalogNo, tCatalog_SAPImport.SONumber, tCatalog_SAPImport.ChemName, tCatalog_SAPImport.RH, tCatalog_SAPImport.ExpireMonth, tCatalog_SAPImport.SlidesPerCart, tCatalog_SAPImport.IDEXX_PART_NBR, tCatalog_SAPImport.TOP_FOIL_MATL_NBR, tCatalog_SAPImport.BTM_FOIL_MATL_NBR, tCatalog_SAPImport.AltChemName, tCatalog_SAPImport.StoreTemp, tCatalog_SAPImport.CartonCode, tCatalog_SAPImport.GrossLeakLimit, tCatalog_SAPImport.LeakLimit, tCatalog_SAPImport.CompValue, tCatalog_SAPImport.ProductType,tCatalog_SAPImport.CheckWeighHi, tCatalog_SAPImport.CheckWeighLo, tCatalog_SAPImport.SO_MASK, tCatalog_SAPImport.CAL_CURVE_PFX, tCatalog_SAPImport.PROD_INP_TYP, tCatalog_SAPImport.CTN_TUBE, tCatalog_SAPImport.SLIDE_STYLE, tCatalog_SAPImport.PROD_DESIG, tCatalog_SAPImport.SFM_AUD_RT, tCatalog_SAPImport.SPL_RT, tCatalog_SAPImport.FIRST_SLIDES_REM, tCatalog_SAPImport.SPL_FRONT, tCatalog_SAPImport.SPL_REAR, tCatalog_SAPImport.BARCODE_TYP, tCatalog_SAPImport.CHK_WEIGH_AIM, tCatalog_SAPImport.FOIL_TYP, tCatalog_SAPImport.CART_CLIP_PRES, tCatalog_SAPImport.TOP_LBL_TYP, tCatalog_SAPImport.FREEZER_MTH, tCatalog_SAPImport.OVERAGE_MTH) VALUES('8257289','67','GGT','15','NA','0','','','','GGT','8','543','305','710','50','21','323','250','','','SP','1','0','','0','0','0','0','0','2','0','0','0','2','0','0'); INSERT INTO tCatalog_SAPImport( tCatalog_SAPImport.CatalogNo, tCatalog_SAPImport.SONumber, tCatalog_SAPImport.ChemName, tCatalog_SAPImport.RH, tCatalog_SAPImport.ExpireMonth, tCatalog_SAPImport.SlidesPerCart, tCatalog_SAPImport.IDEXX_PART_NBR, tCatalog_SAPImport.TOP_FOIL_MATL_NBR, tCatalog_SAPImport.BTM_FOIL_MATL_NBR, tCatalog_SAPImport.AltChemName, tCatalog_SAPImport.StoreTemp, tCatalog_SAPImport.CartonCode, tCatalog_SAPImport.GrossLeakLimit, tCatalog_SAPImport.LeakLimit, tCatalog_SAPImport.CompValue, tCatalog_SAPImport.ProductType,tCatalog_SAPImport.CheckWeighHi, tCatalog_SAPImport.CheckWeighLo, tCatalog_SAPImport.SO_MASK, tCatalog_SAPImport.CAL_CURVE_PFX, tCatalog_SAPImport.PROD_INP_TYP, tCatalog_SAPImport.CTN_TUBE, tCatalog_SAPImport.SLIDE_STYLE, tCatalog_SAPImport.PROD_DESIG, tCatalog_SAPImport.SFM_AUD_RT, tCatalog_SAPImport.SPL_RT, tCatalog_SAPImport.FIRST_SLIDES_REM, tCatalog_SAPImport.SPL_FRONT, tCatalog_SAPImport.SPL_REAR, tCatalog_SAPImport.BARCODE_TYP, tCatalog_SAPImport.CHK_WEIGH_AIM, tCatalog_SAPImport.FOIL_TYP, tCatalog_SAPImport.CART_CLIP_PRES, tCatalog_SAPImport.TOP_LBL_TYP, tCatalog_SAPImport.FREEZER_MTH, tCatalog_SAPImport.OVERAGE_MTH) VALUES('1513209','12','PHOS','33','11','12','','','','PHOS','8','507','305','710','50','11','323','262','','','SP','1','0','','0','0','0','0','0','2','0','0','0','1','0','0'); INSERT INTO tCatalog_SAPImport( tCatalog_SAPImport.CatalogNo, tCatalog_SAPImport.SONumber, tCatalog_SAPImport.ChemName, tCatalog_SAPImport.RH, tCatalog_SAPImport.ExpireMonth, tCatalog_SAPImport.SlidesPerCart, tCatalog_SAPImport.IDEXX_PART_NBR, tCatalog_SAPImport.TOP_FOIL_MATL_NBR, tCatalog_SAPImport.BTM_FOIL_MATL_NBR, tCatalog_SAPImport.AltChemName, tCatalog_SAPImport.StoreTemp, tCatalog_SAPImport.CartonCode, tCatalog_SAPImport.GrossLeakLimit, tCatalog_SAPImport.LeakLimit, tCatalog_SAPImport.CompValue, tCatalog_SAPImport.ProductType,tCatalog_SAPImport.CheckWeighHi, tCatalog_SAPImport.CheckWeighLo, tCatalog_SAPImport.SO_MASK, tCatalog_SAPImport.CAL_CURVE_PFX, tCatalog_SAPImport.PROD_INP_TYP, tCatalog_SAPImport.CTN_TUBE, tCatalog_SAPImport.SLIDE_STYLE, tCatalog_SAPImport.PROD_DESIG, tCatalog_SAPImport.SFM_AUD_RT, tCatalog_SAPImport.SPL_RT, tCatalog_SAPImport.FIRST_SLIDES_REM, tCatalog_SAPImport.SPL_FRONT, tCatalog_SAPImport.SPL_REAR, tCatalog_SAPImport.BARCODE_TYP, tCatalog_SAPImport.CHK_WEIGH_AIM, tCatalog_SAPImport.FOIL_TYP, tCatalog_SAPImport.CART_CLIP_PRES, tCatalog_SAPImport.TOP_LBL_TYP, tCatalog_SAPImport.FREEZER_MTH, tCatalog_SAPImport.OVERAGE_MTH) VALUES('1513209','12','PHOS','33','11','12','','','','PHOS','8','507','305','710','50','11','323','262','','','SP','1','0','','0','0','0','0','0','2','0','0','0','1','0','0'); INSERT INTO tCatalog_SAPImport( tCatalog_SAPImport.CatalogNo, tCatalog_SAPImport.SONumber, tCatalog_SAPImport.ChemName, tCatalog_SAPImport.RH, tCatalog_SAPImport.ExpireMonth, tCatalog_SAPImport.SlidesPerCart, tCatalog_SAPImport.IDEXX_PART_NBR, tCatalog_SAPImport.TOP_FOIL_MATL_NBR, tCatalog_SAPImport.BTM_FOIL_MATL_NBR, tCatalog_SAPImport.AltChemName, tCatalog_SAPImport.StoreTemp, tCatalog_SAPImport.CartonCode, tCatalog_SAPImport.GrossLeakLimit, tCatalog_SAPImport.LeakLimit, tCatalog_SAPImport.CompValue, tCatalog_SAPImport.ProductType,tCatalog_SAPImport.CheckWeighHi, tCatalog_SAPImport.CheckWeighLo, tCatalog_SAPImport.SO_MASK, tCatalog_SAPImport.CAL_CURVE_PFX, tCatalog_SAPImport.PROD_INP_TYP, tCatalog_SAPImport.CTN_TUBE, tCatalog_SAPImport.SLIDE_STYLE, tCatalog_SAPImport.PROD_DESIG, tCatalog_SAPImport.SFM_AUD_RT, tCatalog_SAPImport.SPL_RT, tCatalog_SAPImport.FIRST_SLIDES_REM, tCatalog_SAPImport.SPL_FRONT, tCatalog_SAPImport.SPL_REAR, tCatalog_SAPImport.BARCODE_TYP, tCatalog_SAPImport.CHK_WEIGH_AIM, tCatalog_SAPImport.FOIL_TYP, tCatalog_SAPImport.CART_CLIP_PRES, tCatalog_SAPImport.TOP_LBL_TYP, tCatalog_SAPImport.FREEZER_MTH, tCatalog_SAPImport.OVERAGE_MTH) VALUES('1513209','12','PHOS','33','11','12','','','','PHOS','8','507','305','710','50','11','323','262','','','SP','1','0','','0','0','0','0','0','2','0','0','0','1','0','0'); INSERT INTO tCatalog_SAPImport( tCatalog_SAPImport.CatalogNo, tCatalog_SAPImport.SONumber, tCatalog_SAPImport.ChemName, tCatalog_SAPImport.RH, tCatalog_SAPImport.ExpireMonth, tCatalog_SAPImport.SlidesPerCart, tCatalog_SAPImport.IDEXX_PART_NBR, tCatalog_SAPImport.TOP_FOIL_MATL_NBR, tCatalog_SAPImport.BTM_FOIL_MATL_NBR, tCatalog_SAPImport.AltChemName, tCatalog_SAPImport.StoreTemp, tCatalog_SAPImport.CartonCode, tCatalog_SAPImport.GrossLeakLimit, tCatalog_SAPImport.LeakLimit, tCatalog_SAPImport.CompValue, tCatalog_SAPImport.ProductType,tCatalog_SAPImport.CheckWeighHi, tCatalog_SAPImport.CheckWeighLo, tCatalog_SAPImport.SO_MASK, tCatalog_SAPImport.CAL_CURVE_PFX, tCatalog_SAPImport.PROD_INP_TYP, tCatalog_SAPImport.CTN_TUBE, tCatalog_SAPImport.SLIDE_STYLE, tCatalog_SAPImport.PROD_DESIG, tCatalog_SAPImport.SFM_AUD_RT, tCatalog_SAPImport.SPL_RT, tCatalog_SAPImport.FIRST_SLIDES_REM, tCatalog_SAPImport.SPL_FRONT, tCatalog_SAPImport.SPL_REAR, tCatalog_SAPImport.BARCODE_TYP, tCatalog_SAPImport.CHK_WEIGH_AIM, tCatalog_SAPImport.FOIL_TYP, tCatalog_SAPImport.CART_CLIP_PRES, tCatalog_SAPImport.TOP_LBL_TYP, tCatalog_SAPImport.FREEZER_MTH, tCatalog_SAPImport.OVERAGE_MTH) VALUES('1450261','03','CA','33','NA','0','','','','Ca','8','506','305','710','50','11','323','262','','','SP','1','0','','0','0','0','0','0','2','0','0','0','1','0','0'); INSERT INTO tCatalog_SAPImport( tCatalog_SAPImport.CatalogNo, tCatalog_SAPImport.SONumber, tCatalog_SAPImport.ChemName, tCatalog_SAPImport.RH, tCatalog_SAPImport.ExpireMonth, tCatalog_SAPImport.SlidesPerCart, tCatalog_SAPImport.IDEXX_PART_NBR, tCatalog_SAPImport.TOP_FOIL_MATL_NBR, tCatalog_SAPImport.BTM_FOIL_MATL_NBR, tCatalog_SAPImport.AltChemName, tCatalog_SAPImport.StoreTemp, tCatalog_SAPImport.CartonCode, tCatalog_SAPImport.GrossLeakLimit, tCatalog_SAPImport.LeakLimit, tCatalog_SAPImport.CompValue, tCatalog_SAPImport.ProductType,tCatalog_SAPImport.CheckWeighHi, tCatalog_SAPImport.CheckWeighLo, tCatalog_SAPImport.SO_MASK, tCatalog_SAPImport.CAL_CURVE_PFX, tCatalog_SAPImport.PROD_INP_TYP, tCatalog_SAPImport.CTN_TUBE, tCatalog_SAPImport.SLIDE_STYLE, tCatalog_SAPImport.PROD_DESIG, tCatalog_SAPImport.SFM_AUD_RT, tCatalog_SAPImport.SPL_RT, tCatalog_SAPImport.FIRST_SLIDES_REM, tCatalog_SAPImport.SPL_FRONT, tCatalog_SAPImport.SPL_REAR, tCatalog_SAPImport.BARCODE_TYP, tCatalog_SAPImport.CHK_WEIGH_AIM, tCatalog_SAPImport.FOIL_TYP, tCatalog_SAPImport.CART_CLIP_PRES, tCatalog_SAPImport.TOP_LBL_TYP, tCatalog_SAPImport.FREEZER_MTH, tCatalog_SAPImport.OVERAGE_MTH) VALUES('1450261','03','CA','33','NA','0','','','','Ca','8','506','305','710','50','11','323','262','','','SP','1','0','','0','0','0','0','0','2','0','0','0','1','0','0'); INSERT INTO tCatalog_SAPImport( tCatalog_SAPImport.CatalogNo, tCatalog_SAPImport.SONumber, tCatalog_SAPImport.ChemName, tCatalog_SAPImport.RH, tCatalog_SAPImport.ExpireMonth, tCatalog_SAPImport.SlidesPerCart, tCatalog_SAPImport.IDEXX_PART_NBR, tCatalog_SAPImport.TOP_FOIL_MATL_NBR, tCatalog_SAPImport.BTM_FOIL_MATL_NBR, tCatalog_SAPImport.AltChemName, tCatalog_SAPImport.StoreTemp, tCatalog_SAPImport.CartonCode, tCatalog_SAPImport.GrossLeakLimit, tCatalog_SAPImport.LeakLimit, tCatalog_SAPImport.CompValue, tCatalog_SAPImport.ProductType,tCatalog_SAPImport.CheckWeighHi, tCatalog_SAPImport.CheckWeighLo, tCatalog_SAPImport.SO_MASK, tCatalog_SAPImport.CAL_CURVE_PFX, tCatalog_SAPImport.PROD_INP_TYP, tCatalog_SAPImport.CTN_TUBE, tCatalog_SAPImport.SLIDE_STYLE, tCatalog_SAPImport.PROD_DESIG, tCatalog_SAPImport.SFM_AUD_RT, tCatalog_SAPImport.SPL_RT, tCatalog_SAPImport.FIRST_SLIDES_REM, tCatalog_SAPImport.SPL_FRONT, tCatalog_SAPImport.SPL_REAR, tCatalog_SAPImport.BARCODE_TYP, tCatalog_SAPImport.CHK_WEIGH_AIM, tCatalog_SAPImport.FOIL_TYP, tCatalog_SAPImport.CART_CLIP_PRES, tCatalog_SAPImport.TOP_LBL_TYP, tCatalog_SAPImport.FREEZER_MTH, tCatalog_SAPImport.OVERAGE_MTH) VALUES('1450261','03','CA','33','NA','0','','','','Ca','8','506','305','710','50','11','323','262','','','SP','1','0','','0','0','0','0','0','2','0','0','0','1','0','0'); INSERT INTO tCatalog_SAPImport( tCatalog_SAPImport.CatalogNo, tCatalog_SAPImport.SONumber, tCatalog_SAPImport.ChemName, tCatalog_SAPImport.RH, tCatalog_SAPImport.ExpireMonth, tCatalog_SAPImport.SlidesPerCart, tCatalog_SAPImport.IDEXX_PART_NBR, tCatalog_SAPImport.TOP_FOIL_MATL_NBR, tCatalog_SAPImport.BTM_FOIL_MATL_NBR, tCatalog_SAPImport.AltChemName, tCatalog_SAPImport.StoreTemp, tCatalog_SAPImport.CartonCode, tCatalog_SAPImport.GrossLeakLimit, tCatalog_SAPImport.LeakLimit, tCatalog_SAPImport.CompValue, tCatalog_SAPImport.ProductType,tCatalog_SAPImport.CheckWeighHi, tCatalog_SAPImport.CheckWeighLo, tCatalog_SAPImport.SO_MASK, tCatalog_SAPImport.CAL_CURVE_PFX, tCatalog_SAPImport.PROD_INP_TYP, tCatalog_SAPImport.CTN_TUBE, tCatalog_SAPImport.SLIDE_STYLE, tCatalog_SAPImport.PROD_DESIG, tCatalog_SAPImport.SFM_AUD_RT, tCatalog_SAPImport.SPL_RT, tCatalog_SAPImport.FIRST_SLIDES_REM, tCatalog_SAPImport.SPL_FRONT, tCatalog_SAPImport.SPL_REAR, tCatalog_SAPImport.BARCODE_TYP, tCatalog_SAPImport.CHK_WEIGH_AIM, tCatalog_SAPImport.FOIL_TYP, tCatalog_SAPImport.CART_CLIP_PRES, tCatalog_SAPImport.TOP_LBL_TYP, tCatalog_SAPImport.FREEZER_MTH, tCatalog_SAPImport.OVERAGE_MTH) VALUES('1513209','12','PHOS','33','11','12','','','','PHOS','8','507','305','710','50','11','323','262','','','SP','1','0','','0','0','0','0','0','2','0','0','0','1','0','0'); INSERT INTO tCatalog_SAPImport( tCatalog_SAPImport.CatalogNo, tCatalog_SAPImport.SONumber, tCatalog_SAPImport.ChemName, tCatalog_SAPImport.RH, tCatalog_SAPImport.ExpireMonth, tCatalog_SAPImport.SlidesPerCart, tCatalog_SAPImport.IDEXX_PART_NBR, tCatalog_SAPImport.TOP_FOIL_MATL_NBR, tCatalog_SAPImport.BTM_FOIL_MATL_NBR, tCatalog_SAPImport.AltChemName, tCatalog_SAPImport.StoreTemp, tCatalog_SAPImport.CartonCode, tCatalog_SAPImport.GrossLeakLimit, tCatalog_SAPImport.LeakLimit, tCatalog_SAPImport.CompValue, tCatalog_SAPImport.ProductType,tCatalog_SAPImport.CheckWeighHi, tCatalog_SAPImport.CheckWeighLo, tCatalog_SAPImport.SO_MASK, tCatalog_SAPImport.CAL_CURVE_PFX, tCatalog_SAPImport.PROD_INP_TYP, tCatalog_SAPImport.CTN_TUBE, tCatalog_SAPImport.SLIDE_STYLE, tCatalog_SAPImport.PROD_DESIG, tCatalog_SAPImport.SFM_AUD_RT, tCatalog_SAPImport.SPL_RT, tCatalog_SAPImport.FIRST_SLIDES_REM, tCatalog_SAPImport.SPL_FRONT, tCatalog_SAPImport.SPL_REAR, tCatalog_SAPImport.BARCODE_TYP, tCatalog_SAPImport.CHK_WEIGH_AIM, tCatalog_SAPImport.FOIL_TYP, tCatalog_SAPImport.CART_CLIP_PRES, tCatalog_SAPImport.TOP_LBL_TYP, tCatalog_SAPImport.FREEZER_MTH, tCatalog_SAPImport.OVERAGE_MTH) VALUES('1450261','03','CA','33','NA','0','','','','Ca','8','506','305','710','50','11','323','262','','','SP','1','0','','0','0','0','0','0','2','0','0','0','1','0','0');'*
    I get the error -
    Error starting at line 1 in command:
    exec P_TESTCLOB(6, '[ERROR] [JTA_Command_Insert_tCatalog]Error invoking Transaction Command action: JTATransactionCommand - A SQL Command Exception occured against JNJ_MDD_OCD_CPL_DS with the following command BEGIN INSERT INTO tCatalog_SAPImport( tCatalog_SAPImport.CatalogNo, tCatalog_SAPImport.SONumber, tCatalog_SAPImport.ChemName, tCatalog_SAPImport.RH, tCatalog_SAPImport.ExpireMonth, tCatalog_SAPImport.SlidesPerCart, tCatalog_SAPImport.IDEXX_PART_NBR, tCatalog_SAPImport.TOP_FOIL_MATL_NBR, tCatalog_SAPImport.BTM_FOIL_MATL_NBR, tCatalog_SAPImport.AltChemName, ………..tCatalog_SAPImport.CAL_CURVE_PFX, tCatalog_SAPImport.PROD_INP_TYP, tCatalog_SAPImport.CTN_TUBE, tCatalog_SAPImport.SLIDE_STYLE, tCatalog_SAPImport.PROD_DESIG, tCatalog_SAPImport.SFM_AUD_RT, tCatalog_SAPImport.SPL_RT, tCatalog_SAPImport.FIRST_SLIDES_REM, tCatalog_SAPImport.SPL_FRONT, tCatalog_SAPImport.SPL_REAR, tCatalog_SAPImport.BARCODE_TYP, tCatalog_SAPImport.CHK_WEIGH_AIM, tCatalog_SAPImport.FOIL_TYP, tCatalog_SAPImport.CART_CLIP_PRES, tCatalog_SAPImport.TOP_LBL_TYP, tCatalog_SAPImport.FREEZER_MTH, tCatalog_SAPImport.OVERAGE_MTH) VALUES('1450261','03','CA','33','NA','0','','','','Ca','8','506','305','710','50','11','323','262','','','SP','1','0','','0','0','0','0','0','2','0','0','0','1','0','0');' *(the statement continues, I have trimmed it as it is not possible that amount of length in the forum. )*
    Error report:
    ORA-06550: line 1, column 1398:
    PLS-00103: Encountered the symbol "1988211" when expecting one of the following:
    ) , * & = - + < / > at in is mod remainder not rem =>
    <an exponent (**)> <> or != or ~= >= <= <> and or like like2
    like4 likec between || multiset member submultiset
    06550. 00000 - "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:
    Can anyone tell me why I am getting this error executing the same STORED PROCEDURE while inserting into the LONG column but when using RPAD functions for executing the same STORED PROCEDURE its not happening ?

    >
    But then why will the problem happen with this long string ?
    >
    You don't have a 'long string'. You have a lot of single-quoted strings combined with some unquoted strings.
    There are embedded singel quotes in what you call 'this long string'.
    Try using a different string delimiter so that the quotes do not cause a problem.
    You can use an exclamation point ('!') since there is none in the text you provided.
    Here is an example of what will not work because there is one embedded single quote
    'name LIKE '%DBMS_%%'This is the same value using exclamation as the delimiter - this works because there is no exclamation in the string
    q'!name LIKE '%DBMS_%%'!'1. q must be the first character
    2. ' (single quote) must be the next character
    3. ! (or any delimiter you choose) is the next character
    4. abcdefg. . . -- this is your string that can include single quotes but not an exclamation point
    5. ! is the next to last character - must be the same delimiter used as the third character
    6. ' (single quote) is the last character
    See the 'Text Literals' section of the SQL Reference for more examples
    http://docs.oracle.com/cd/B19306_01/server.102/b14200/sql_elements003.htm
    Note that this one will not work because the string includes the percent
    This is the same value using exclamation as the delimiter - this works because there is no exclamation in the string
    q'%name LIKE '%DBMS_%%'%'

  • Writing to db more than 4000 characters

    Hi, i want to store a text with more than 4000 characters in an oracle database.
    i can't use varchar2(4000)
    what should i use?
    blob?
    clob?

    there is some kind of a problem here
    a want to store a text with 29212 characters, but there is an error message saying, data size is greater than the maximum value of this type...
    this is an sqlexception

  • Insert more than 4000 characters using sql plus

    I have a SQL script that creates a database. The problem is that some of the fields are longer than 4000 characters in the INSERT statement and Oracle doesn't seem to like it.
    The field is a clob and works fine in the application (i.e. I can insert more than 4000 characters using the app) - how do I achieve this in a SQL script?
    Any help is much appreciated.
    Cheers,
    Steve

    Hi,
    This pl/sql block works absolutely fine in SQL*Plus inserting > 4000 characters into clob column:
    declare
    l_str varchar2(8000);
    l_str1 varchar2(2400) := 'first part of the verly long string...';
    l_str2 varchar2(2400) := 'second part of the verly long string...';
    begin
    l_str := l_str1 || l_str2;
    insert into tmpl values (l_str);
    end;
    So, you'll have to replace inserts with pl/sql blocks in your script.
    Tested in Oracle 8.1.7.0.0
    Regards,
    Andrew Velitchko
    BrainBench MVP for Developer/2000
    http://www.brainbench.com

  • Error when inserting more than 500 characters

    Hello all,
    I am not sure if I should be posting here or in the Flex
    Forum, so I apologize ahead of time if I am in the wrong place.
    I am Using a Flex frontend and a ColdFusion backend to edit
    data in a simple Access Database (for testing). I have a ColdFusion
    CFC on the backend that handles everything just fine until I enter
    in more than 500 characters (Actually 510) into my text area and
    then I get the error "Unable to invoke CFC - Error Executing
    Database Query.". Now you might be saying that either the database
    field is not set to handle that many characters or the CFC is
    restricting more than 500 characters, but they are not. The
    database field is set to "memo" and the maxlength in the CFC is set
    to 5000. I am wondering if has something to do with Access
    databases I do not know because I don't use them that often.
    I have tested this over and over and it only throws the error
    if I exceed 510 characters in the Flex TextArea.
    Any thoughts are appreciated.
    The CFC code is below I didn't add the MXML because I figured
    there was nothing special about the TextArea block:

    Very strange as to why this worked but just in case someone
    else has the same problem here is how I got it to work.
    I just changed this line:
    rss_copy = <cfqueryparam value="#arguments.rss_copy_edit#"
    cfsqltype="cf_sql_varchar" maxlength="5000">
    to this:
    rss_copy = '#arguments.rss_copy_edit#"'
    and it worked just fine.

  • Error when sending more than 500 Characters

    Hello all,
    I am not sure if I should be posting here or in the
    ColdFusion Forum, so I apologize ahead of time if I am in the wrong
    place.
    I am Using a Flex frontend and a ColdFusion backend to edit
    data in a simple Access Database (for testing). I have a ColdFusion
    CFC on the backend that handles everything just fine until I enter
    in more than 500 characters (Actually 510) into my text area and
    then I get the error "Unable to invoke CFC - Error Executing
    Database Query.". Now you might be saying that either the database
    field is not set to handle that many characters or the CFC is
    restricting more than 500 characters, but they are not. The
    database field is set to "memo" and the maxlength in the CFC is set
    to 5000. I am wondering if has something to do with Access
    databases I do not know because I don't use them that often.
    I have tested this over and over and it only throws the error
    if I exceed 510 characters in the Flex TextArea.
    Any thoughts are appreciated.
    The CFC code is below I didn't add the MXML because I figured
    there was nothing special about the TextArea block:

    The code should be in my initial post.
    Very strange as to why this worked but just in case someone
    else has the same problem here is how I got it to work.
    I just changed this line:
    rss_copy = <cfqueryparam value="#arguments.rss_copy_edit#"
    cfsqltype="cf_sql_varchar" maxlength="5000">
    to this:
    rss_copy = '#arguments.rss_copy_edit#"'
    and it worked just fine.
    Not the best solution but it works fine now all the
    same.

  • How to handle more than 250 characters in excel attachment

    hi,
    i lokesh, actually i am sending a excel attachment through mail. i am using " SO_DOCUMENT_SEND_API1" function module, one problem what i facing is , this function module handle only 250 characters, i need to display more than 250 characters. pls any one knows about this, pls let me know.
    regards
    lokesh t

    Hi,
    Xls allows only 250 char.
    Cheers

Maybe you are looking for