Input parameter error: "string too long"

Hi,
SAP4Rails and SAPNWRFC run really well now, and I have not experienced a problem for a long, long time.
However, in an RFC I want to use, there is an import parameter (a plain value), which is of the type SYSUUID. The definition of this type says
<Format - Data Type "RAW" - No. characters "16"> and <Output Characteristics - Output Length "32">. Locally it works with 32 characters of input, but if I try to call the RFC through SAP4Rails, the error "RfcSetByte string too long" occurrs. Any idea, why this could be?
Thanks a lot in advance,
Bernd

This maybe a bug - if you can compile your own sapnwrfc can you try finding the following code:
    if (RSTRING(value)->len > max)
        rb_raise(rb_eRuntimeError, "RfcSetByte string too long: %sn", StringValueCStr(value));
and changing it to:
code]
    if (RSTRING(value)->len > max*2)
        rb_raise(rb_eRuntimeError, "RfcSetByte string too long: %s\n", StringValueCStr(value));
[/code]
and let me know what effect that has.
Cheers.

Similar Messages

  • Error: WAITED TOO LONG FOR A ROW CACHE ENQUEUE LOCK! pid=26

    Hi every one,
    Today, i met a problem: Application cannot connect to database because database hang ( I also cannot connect to database with sqlplus) . Check alert log, only one error:
    WAITED TOO LONG FOR A ROW CACHE ENQUEUE LOCK! pid=26This error not only appear first time, but also happen every one month. I must reset server for database release all memory but I think It isn't a true solution!
    Could you give a recommend for this.
    Regards.

    The Row Cache is actually the Data Dictionary Cache. It is where definitions from the data dictionary (tablespaces, objects, users etc) are loaded into memory.
    There would be an associated trace file written with the occurrence of this warning.
    See Oracle Support Note 278316.1 for more information
    Hemant K Chitale

  • XML Input String too long to Test Web Service in App Server

    We have a Web Service that accepts an XML input string but when we deploy this web service and try to test it through the Application Server it errors out because the input string is too long. Is there any way around this??
    Thanks...

    Update:
    Now I see that there are in fact two error messages. The second one is the one presented above. But the first one says:
    Line: 145
    Char: 97
    Error: Expected ';'
    Code: 0
    My question now is to what file it is referring?? Is it to ProjectAccountingPort.js that is automatically created? THen why is it not properly created??
    Please, please help me with this! The deadline is in a few days...

  • Urgent ..Please Help .Geting error URI too long

    I have a jsp page and it has a text area. When I am inputing shorter
    text it works fine but when I am putting longer text I am
    having an error that "Get is not defined" and in the http server error
    log I am getting URI too long error.
    The text area when submitted...supposed to invoke a servlet which(the servlet) will do some error checking on the input text.
    How can i overcome this limitation of http server ?
    Please help ...
    Thanks.

    I tried with post method but still get the error.
    Here is my jsp code..
    <form name="inputnews" method="post" action="validation">
    <table>
    <tr>
    <td width="600"><img src="//www.ibm.com/i/c.gif" width="600" height="4" alt=""/>
    </td>
    </tr>
    and here is the servelet(name validation) code:
    public void doPost(
         javax.servlet.http.HttpServletRequest req,
    javax.servlet.http.HttpServletResponse resp)
         hrows javax.servlet.ServletException, java.io.IOException
              System.out.print("i am in post");
              HttpSession session = null;
              String flag3 = "";
              String check = "checkok";
              Info info = null;
              String category = req.getParameter("category");
              String title = req.getParameter("title");
              String content_area = req.getParameter ("content_area");
    *** the content_area is the text area where user put long input
    Anything i am missing here ?

  • Odi error message too long to capture

    We are trying to insert error messsage into our error table using a procedure.
    To get the error, i am using API: odiRef.getPrevStepLog("MESSAGE") after the interface that raise the error, in a "KO" red line.
    But,Message will be very huge and more than 4000 characters and getting "ORA-01704: string literal too long" error.
    I just need to capture one line error information. I would appreciate if anybody suggests how to achieve this ASAP. We are using ODI 10g
    Thanks in advance
    RP

    Hi,
    You can use oracle's Substr Function with the odiRef.getPrevStepLog .
    Example
    insert into my_table.my_column values SUBSTR('<%=odiRef.getPrevStepLog("MESSAGE")%>',1,4000) ;
    This should give you the message staring from 1st position till 4000th position.
    Modify the query according to your need.
    Thanks,
    Sutirtha

  • String too long, how to auto-truncate it?

    Is there any general purpose add-on which can detect a string is
    too long to insert/update for a database field, and truncate the
    string to insert/update instead of getting ORA-01401 exception?

    I strongly suggest you don't truncate data going into your database. Data in the database should be complete (and valid). Better to limit a user's input to the size of the field in the database by such methods as only providing an input field of x character size so he can't type in too many characters. If a user types in data and its retrieved truncated, he's going to be mad.
    The question is, how large should a column be? If you set the max size to the max size if your current data set, then a future data value may be too large. I don't know the answer to this, but I suggest you be consistent for the same type of columns in multiple tables. For example, if you set the email address to 255 characters in one table, it should be the same in all tables.
    See: http://www.javapractices.com/topic/TopicAction.do?Id=211

  • Ring Item text string too long to display all - use ellipses ?

    The width of my Ring control is not wide enough to display all characters in the Item text string.  LabVIEW simply truncates the text with no indication that additional text is present.  Is there a way to display an ellipses in such cases ?  For example :
    "Ring text string that is too long"
    that is now shown as :
    "Ring text string that i"
    could be shown as :
    "Ring text st...too long"

    A couple of suggestions:
    1.) Use property nodes to determine which strings are too long, then concatenate the strings with ellipses.
    2.) Increase the height so the text wraps.
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal

  • Inner join.   error.  too long. unique. unique

    hi,
    I am a beginer to ABAP and trying to  do an inner join using 3 tables that are given by SAP
    scustom, spfli, and sbook. I want to join these 3 tables and  get
    the customer booking info and wants the result of
    customer_no , cust_name, Booking_ID, City_From, City_To, etc.
    my query i s below.
    select cid cname bbookid bconnid bfldate fcityfrom f~cityto
    into table it_scust
    from ((scustom as c inner join sbook as b
    on cid = bcustomid)
    inner join spfli as f on fconnid = bconnid and fcarrid = bcarrid).
    when i execute the program i am getting the error  that the 'query is too long. unique. unique. unique.'.
    If  I am joing only two tables it is working fine. Is there something wrong with my query?  Any ideas on this? Please help.
    Thanks in advance.

    Hi neeraja,
    what ever the code you have written is fine but it is unique/ too long means  the code you have written is not ending perfectly which is not identified by syntax error. your code is
    select cid cname bbookid bconnid bfldate fcityfrom f~cityto
    into table it_scust
    from ((scustom as c inner join sbook as b
    on cid = bcustomid)
    inner join spfli as f on fconnid = bconnid and fcarrid = bcarrid).
    iam sending the same code but with little modification just try this u will get the output.
    select cid cname bbookid bconnid bfldate fcityfrom f~cityto
    into table it_scust
    from (scustom as c inner join sbook as b
    on cid = bcustomid)
    inner join spfli as f on fconnid = bconnid and fcarrid = bcarrid.
    find the difference what i made.
    pls reward points if it is helpful.

  • Tirefox will not load in windows 7 after upgrade but is ok in linex(error taking too long to connect)

    my harddrive is partitioned 50/50. 1st half has windows 7 on it and 2nd half has ubuntu 11.10.
    Since latest upgrade of firefox the linex runs ok. but the windows 7 will not connect and gives error "taking too longto connect"
    I have tried deleting firefox and reloading yo no avail.

    The windows update sometimes creates issues. I've had this happen to me two times. I rolled back to the Firefox 8 and didn't have any problems, however one thing you can try is to increase your timeout range and try that. If its loading fine in linux we have to assume its not systemic, but is an OS issue. How long does it hang before you get the error?

  • MTU error (Path too long) with linux-3.6.2

    I have a PC running 24/7, with an OpenVPN connection up all the time as well. I also have a (shared) ssh connection open, through said vpn. Every night an rsync job is ran, to backup some stuff over said VPN, through a shared ssh connection.
    Starting a few days ago (Oct 17) I've had trouble with this, as in after rsync started, it would not be able to finish its job, getting "interrupted" (or, hanged) quite early on.
    Looking in the journal, I can see error messages such as those (right after rsync starts, which happens at 02:23) :
    Oct 17 02:23:05 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:23:06 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:23:06 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:23:06 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:23:06 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:23:07 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:23:09 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:23:13 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:23:22 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:23:39 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:24:13 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:25:20 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:27:21 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:29:21 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:31:21 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:33:22 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:35:22 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    Oct 17 02:37:22 arch.local openvpn@xxx[552]: read UDPv4 [EMSGSIZE Path-MTU=1460]: Message too long (code=90)
    This eventually led to the ssh connection timing out, and the rsync job failing to complete.
    Also, restarting OpenVPN seems to "fix" the issue, without the need to change any settings.
    That's when I realized this started happening since upgrading the kernel to 3.6.2, so I then downgraded to 3.5.6 (Oct 19) and, since then, haven't had any issue.
    So I'm thinking this is some kind of bug/regression in the 3.6 kernel, but I'm not really sure what to do now.
    Note: I see 3.6.3 is out (and in testing), but only looked at the changelog so far (and didn't see anything that seem related to this issue?).

    Thanks for your answers (and sorry about the delay).
    I'm not sure how to read the error message actually, but I use default settings and `ip addr show` reports a MTU of 1500 indeed. Also, (on linux-3.6.2) I tried using OpenVPN's --mtu-test option to see what it would say (even though early on I never have a problem), and here it is:
    NOTE: Empirical MTU test completed [Tried,Actual] local->remote=[1541,1541] remote->local=[1541,1541]
    I'm nor really sure what it means, that I could (should?) use 1541 instead of 1500? And if so, how come it says I could go higher while I get errors with Path-MTU=1460 ? And actually, right before this result I do have a couple of those Path-MTU errors in the log, so I really don't know what to make of it, could it fail at 1460 but work higher? Does that even make sense?
    I still don't know if it's really an MTU issue or not, since the kernel 3.5.6 isn't affected. Anyhow, I'll probably install 3.6.3 and see, hopefully it'll be back to normal.... if not I guess I'll have to try and set an MTU, though I'm not sure to what.
    Also, would that require the OpenVPN server to have its MTU set that way as well (Since currently it also uses default settings, so MTU 1500) ?

  • Sup Blackberry - input parameter error

    Hi ,
    I am developing a blackberry application which fetches data from sap and displays it .
    It works fine when i give default value for my order number .
    when i create a editbox and map it to my parameter and then on click of a button i want to match the value entered in the editbox and display the result according to that value it throws a error saying input parameter is required , when i have entered value for that .
    i am using synchronization parameter concept for fetching the data at run time .
    how can it be done .
    Regards .

    Hi,
    This can be done and I did that a lot of times now. I know its not documented anywhere and even I tried to figure out for almost 3 days before I could achieve it.
    Actually the process includes creating a synchronization parameter for an MBO and mapping it to input/import parameters on MBO and then mapping these synchronization parameters to screen elements.
    Steps, considering a scenario where you want to display order details based on order number entered by user in a Edit box and on click on DISPLAYDETAILS button :
    1. Create MBO using some RFC/BAPI
    2. Go to properties and add synchronization parameters. May be you can prefix them with SV_ORDER just to understand that it is a synchronization parameter.
    3. Then you need to map the synchronization parameter to the input parameters on the MBO. With that your MBO is ready and you can deploy it.
    4. Now coming to device applicaiton, create a screen with a edit box and a button. Now go to button properties and there you can add various actions. One of the action is Sycnrhonize, select that and then it launches the wizard. In that wizard you need to map the edit box to the synchronization parameter SV_ORDER which you created in 2nd step.
    5. Deploy the application and you are all set to go.
    Regards,
    Siva.

  • String too long exception

    hey everyone, I'm trying to modify this program so that i can use my own defined exception StringLongException in it. then after each time a string has been entered you have the choice to enter another.
    import java.util.Scanner;
    public class StringLongE
       public static void main (String[] args)
          String letters;
    StringLongException problem = new StringLongException("too long");
          Scanner scan = new Scanner (System.in);
          System.out.print ("Enter product code (XXX to quit): ");
          code = scan.nextLine();
          while (!code.equals ("XXX"))
             try
              if(letters.length > 35)
              throws problem
             catch (StringLongException exception)
                System.out.println ("Improper string length: " );
             System.out.print ("Enter product code (XXX to quit): ");
             code = scan.nextLine();
    System.out.println(letters);
    }thanks i appreicate the help

    ok, sorry guys, lets try this again....
    import java.util.Scanner;
    public class StringLong
         public static void main (String[] args) throws StringLongException
              String letters;
              StringLongException problem = new StringLongException("too long");
              Scanner scan = new Scanner (System.in);
              System.out.print ("Enter a String with the range(XXX to quit): ");
             letters = scan.nextLine();
             while (!letters.equals ("XXX"))
                try
                   if (letters.length() > 35 );              
                   throw problem;
                  catch (StringLongException exception)
                   System.out.println("STRING WAS TOO LONG PLEASE TRY ANOTHER:");
              System.out.println (letters);
              System.out.print ("Enter a String within the range(XXX to quit): ");
              letters = scan.nextLine();
              System.out.println();
         }this is the updated version

  • .bat error - "Line too Long"

    Hi ,
    Im need to run my server from a bath file on win NT M/c . My property list and the classpath is really huge , possibly more than 4000 chars .
    set %JAVA_PROP% =-D Really long set of props
    set %MY_CLASSPATH% = really long list of jars too!
    java %JAVA_PROP% -classpath "%MY_CLASSPATH%"  com.blah.blah.MyServeron running this i get "line too long". Any clue on how i could fix this? On an another site i got a suggestion saying..shorten ur classpath(which is not an option for me)!!!

    Set the actual CLASSPATH environment variable. And don't try to do it all on one line, use several lines like this:
    SET CLASSPATH=.;ridiculouslynamedthing.jar
    SET CLASSPATH=%CLASSPATH%;whatidiotthoughtupthisname.jar
    SET CLASSPATH=%CLASSPATH%;andsoonandsoon.jar
    then run your class like this:
    java %JAVA_PROP% com.blah.blah.MyServer

  • Error integer too long

    Hi,
    I'm taking a Java class currently, so please forgive me if I make any stupid mistakes. My assignment was to make a UPC checker and we are supposed to code in Bluej.
    //Code thus far
    import chn.util.*;
    public class UPCChecker
    private long checkdigit;
    private int[] numArray = new int[11];
    public long getDigit(long code)
    for(int i=10; i>=0; i--)
    numArray[i] = (int)(code%10);
    code = code/10;
    long sum = numArray[0] + numArray[2] + numArray[4] + numArray[6] + numArray[8] + numArray[10];
    sum *= 3;
    long sum2 = numArray[1] + numArray[3] + numArray[5] + numArray[7] + numArray[9];
    sum += sum2;
    checkdigit = sum%10;
              if(checkdigit != 0)
              checkdigit = 10 - checkdigit;
              return checkdigit;
         public boolean isValid()
         boolean valid;
    if (checkdigit == numArray[11])
    valid = true;
    else
    valid = false;
    return valid;
    //End Code
    When I create an instance, run it in Bluej (it automatically provides the box for input), and type in an example UPC code (12 digits), it says "Error: integer number too large". When I type in 9 digits, it works though. I would appreciate any advice and help.
    Thanks,
    miscreant.

    Thanks for the advice, I'll repost it the correct way: Good, but now your code doesn't even compile. My guess is that you
    copied and pasted the source from your original post and put it between
    those tags. This what it reads like now:import chn.util.*;
    public class UPCChecker
    private long checkdigit;
    private int[] numArray = new int[11];
    public long getDigit(long code)
    for(int i=10; i>=0; i--)
    numArray = (int)(code%10);No need to go any further: you cant assign an int value to an int array.
    Most likely you'll find me a nasty nitpicker but that's what programming
    is all about: the design is the overall structure of it all, the implementation
    is about those gory details which should at least be readable for the
    audience you're writing for in this forum.
    kind regards,
    Jos

  • BizTalk Stored Proce-passing XML as one of the Input parameter and String as another parameter

    I have a requirement in BizTalk that
    - I will receive XML from Source and i need to submit this XML data and two other string parameters in  SQL storeprocedure  as a parameters and submit data
    Ex: My_SP(myID Integer INPUT,myXML xml Input,mystring OUT)
    Could you please help me how call storeprocedure and submit multiple parameters in BizTalk.

    you can execute stored procedure by generating schemas from WCF-SQL Adapter.
    for passing parameters you will have to do the mapping to the Generated schema for Stored proc.
    I would suggest to do this in Message Assignment shape, there you can easily assign all the parameters.
    Integer and String parameters can be assigned from normal variables and XML parameter can be inserted as suggested by Abhishek-
    xmldoc=requestMsg;
    varOuterstring=xmldoc.Outerxml.Tostring();
    Please refer the below article.
    https://www.packtpub.com/books/content/new-soa-capabilities-biztalk-server-2009-wcf-sql-server-adapter
    http://msdn.microsoft.com/en-us/library/dd787968.aspx
    Thanks,
    Prashant
    Please mark this post accordingly if it answers your query or is helpful.

Maybe you are looking for

  • How to obtain windows 8 on a Pavilion 15" and 17" laptops

    Hi there, The stickers are long since gone from my laptops, having owned them for 6 months now. Early on in ownership I installed windows 7, however windows 7 is not supported and I've had a huge amount of trouble getting support so am trying to get

  • Docking Station T430, Graphic interfaces from notebook and docking station usable at once?

    Dear community, I have a Thinkpad T430 and I want to use two external monitors. The Thinkpad T430 has just one mini Displayport and I do not want to use the VGA port. So I thought about buying a docking station. But there are several ones. I just nee

  • Internal Server Error when Displaying Total No. of Pages in Oracle Reports

    Hello all, I've already posted an almost similar message in the Developer Tools forums but would like to post it again here since we think that this is a problem with the report server (Maybe we're missing a patch, a configuration value not set prope

  • LR4 to CS6 not opening image.

    Right clicking on image in LR4, then selecting open with CS6.  CS6 program starts fine, but no image?  If I select CS5, it works fine. Also, I tried a workaround, by exporting the file to my desktop (DNG).  Right clicking on the image, and selecting

  • Curiosity about a feature to iMessage.

    I was wondering how the feature of iMessage where when your in a conversation, and your text field is at the bottom.. when you click on the text field, the screen goes up with it so you can still see the latest messages. I wanted to know how to do th