Parameter has incorrect value

I have a simple test function that I have tried with both ODP.NET and MS Data Provider for Oracle. The same code (except for the datatype args when adding an OracleParameter) is used in both projects. The MS one works fine. But in the ODP.NET one, the first parameter passed in (In_A) is always 0 (zero) inside the function (I am saving it in a table). Why is it changing from
the original value (1234567890123456789) to 0?
Here is the VB.Net code and the function:
Dim oCon As OracleConnection
Dim oCmd As OracleCommand
Dim sSessID As String
Try
oCon = New OracleConnection("Data Source=DEV;User ID=XX;Password=XXXX;")
oCon.Open()
oCmd = New OracleCommand("SYSVC.CP_PACK.DOTNET_TEST", oCon)
oCmd.CommandType = CommandType.StoredProcedure
oCmd.Parameters.Add(New OracleParameter("In_A", OracleDbType.Varchar2, 19, ParameterDirection.Input, False, 0, 0, "", DataRowVersion.Current, "1234567890123456789"))
oCmd.Parameters.Add(New OracleParameter("Out_B", OracleDbType.Int16, 7, ParameterDirection.Output, True, 0, 0, "", DataRowVersion.Current, Convert.DBNull))
oCmd.Parameters.Add(New OracleParameter("Out_C", OracleDbType.Varchar2, 19, ParameterDirection.Output, True, 0, 0, "", DataRowVersion.Current, Convert.DBNull))
oCmd.Parameters.Add(New OracleParameter("DOTNET_TEST", OracleDbType.Varchar2, 19, ParameterDirection.ReturnValue, True, 0, 0, "", DataRowVersion.Current, Convert.DBNull))
oCmd.ExecuteNonQuery()
Catch ex As Exception
Throw New Exception(ex.Message & " -- " & sSessID, ex)
End Try
sSessID = oCmd.Parameters("DOTNET_TEST").Value
oCmd.Dispose()
oCmd = Nothing
oCon.Close()
oCon = Nothing
Logon = sSessID
FUNCTION DOTNET_TEST(In_A IN VARCHAR2,
Out_B OUT NUMBER,
Out_C OUT VARCHAR2) RETURN VARCHAR2
IS
BEGIN
SELECT h.co_num, h.acct_num
INTO out_b, out_c
FROM def_acct_hdr h
WHERE h.acct_num = in_a AND actv = -1;
RETURN out_c;
EXCEPTION
WHEN NO_DATA_FOUND THEN
DECLARE
errorMessage VarChar2(300) := SQLERRM;
BEGIN
errorMessage := In_A || ':' || Out_B || ':' || Out_C;
INSERT INTO cp_err(cp_cd, acct_num, err_msg, cr8_dt)
VALUES(NULL, In_A, errorMessage,SYSDATE);
RETURN 'XXXXXXX';
END;
WHEN OTHERS THEN
DECLARE
errorCode NUMBER := SQLCODE;
errorMessage VarChar2(300) := SQLERRM;
BEGIN
errorMessage := 'Error in DOTNET_TEST Procedure: ' || TO_CHAR(errorCode) || ': ' || errorMessage;
Raise_Application_Error(-20001, errorMessage);
END;
END DOTNET_TEST;
Thanks for any help!
Chris Garland
Volvo
[email protected]
(336) 931-4208

I still need help with this!
I'm getting an InvalidCastException; which I think is occuring on this line:
sSessID = oCmd.Parameters("DOTNET_TEST").Value
See above code for the declarations.
How can I get the actual string value from a "OUT" OracleParameter with an OracleString structure type?
1) I'm writing in VB.NET not c#
2) sSessID is a .NET String type. I don't want an OracleString structure. I just want the returned value assigned to the .NET String sSessID. The original error is "Cast from type 'OracleString' to type 'String' is not valid."
How come only a DataReader seems to have an easy way to cast an Oracle string to a .Net string (.ToString)? I would think that if Oracle were providing a tool (ODP.NET) for people developing against an Oracle database in .NET, they would provide simple methods for casting their datatypes into .Net datatypes for all access methods (DataSet, DataReader AND OUT OracleParameters. Why would someone want an OracleString structure in .Net? It's useless. I can see that when a value is passed back to Oracle you would want it passed in a datatype common to Oracle. But why would I want a useless structure after I've retrieved the data on the .Net side?
Sorry for the[i]Long postings are being truncated to ~1 kB at this time.

Similar Messages

  • VersionMajor has incorrect value

    Recently we have migrated from SAP 4. 7 to ECC6 , After migration the  ABAP proxy interfaces are not working we get an error messages
    "XML tag Main/@versionMajor has incorrect value 002; expected value is 003"
    Any idea where to modify version major?

    Hi,
    refer this link.
    Re: Parser - "Unexpected value" error
    Regards,
    Sharanya.

  • XML tag Main/@versionMajor has incorrect value 002; expected value is 003

    Dear experts!
    I have created a file to proxy scenario. When sent out of XI the following message occurs:
    O, btw, I have tried both XI 2.0 and 3.0 in the comm. channel and a fault message is present.
    What's the matter???
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIProtocol</SAP:Category>
      <SAP:Code area="PARSER">UNEXPECTED_VALUE</SAP:Code>
      <SAP:P1>Main/@versionMajor</SAP:P1>
      <SAP:P2>002</SAP:P2>
      <SAP:P3>003</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>XML tag Main/@versionMajor has incorrect value 002; expected value is 003</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Thanks for your suggestions!
    <i>Will reward points if answers are helpful</i>

    Hi.
    Can you copy past your xml input payload...
    Check out this thread...he has same issue...n its resolved..
    XI 3.0 and external Java client/web service
    Use the url:
    http://hostname:port/XISOAPAdapter/MessageServlet?version=3.0&channel=:SOAPRequest:SOAPIn
    Nilesh
    Message was edited by:
            Nilesh Kshirsagar

  • Error "XML tag Main/@versionMinor has incorrect value 001; expected value."

    I'm going to describe our scenario.
    We have created an Abap proxy in a BW system to run a XI interface. The abap proxy in BW is connected to the IE of a XI 3.0 system. That scenario runs without problems with BW 3.5 (basis 6.40). Now, we are migrating the release of BW to 7.30. we have created the Abap proxy in the migrated BW system but when we run the interface the next message is returned:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Integration Server
      -->
    - <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIProtocol</SAP:Category>
      <SAP:Code area="PARSER">UNEXPECTED_VALUE</SAP:Code>
      <SAP:P1>Main/@versionMinor</SAP:P1>
      <SAP:P2>001</SAP:P2>
      <SAP:P3>000</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>XML tag Main/@versionMinor has the incorrect value 001. Value 000 expected</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    does anyone know what the problem is? is there a version conflict between BW 7.3 and XI 3.0?
    Thanks very much

    Hi,
    I'm not an expert, but it might be that you would also need to update the XI content to match the new release and then regenerate the proxy.
    It does indeed seem to be a difference in the version of the proxies between BW 3.5 and BW 7.3.
    Regards,
    Horia

  • 0HR_PT_1 (Employee Planned Times) has incorrect values

    Hi BW'ers
    I am trying to use the 0HR_PT_1.  The setup is ok as I can extract data.  The problem is that the Planned working hours are incorrect compared to the values in R/3 using Txn PA20, InfoType = 7 (Planned Working Time), and then looking at the work schedule.
    For example -
    An employee in the R/3 work schedule for August 2007 has 172.5 hours. 
    The 0HR_PT_1 extract has 0PLHRS = 195.5 & 0WRHRS = 195.5
    There are no public holidays or leave for this person in August.
    I would expect that BW would have 172.5 hours for this employee in both 0PLHRS  & 0WRHRS.
    Any suggestions / advice would be appreciated.
    Kindest regards
    Karen

    Thank you Robert very much for your response.......
    I forgot to deal with the units !!!
    So, when you add the hours AND days the number is correct ! 
    By extracting the PSA data I found the problem.  The correct data is coming into BW, the Units are not being dealt with when loading the cube......
    I appreciate your quick response.
    Kindest regards
    Karen

  • Approval mail has incorrect value

    Hi Guys,
    I am facing one issue here where the SC was raised for 48 M JPY, however when the approvers received the notification, the amount reflected as 480 K JPY.
    Can anyone tell me what is wrong and how to correct it?
    Regards,
    Sid

    Hi Sidmi
    Is it notification or workitem?
    SAP Note 1117190 -Incorrect shopping cart value in approver's inbox
    You create a shopping cart using currencies without decimals (Ex : JPY,KRW, etc.) When the approver, approves the shopping cart, the total value displayed is in a wrong format.
    SAP Note 981733 - Approver's Inbox : Incorrect SC value
    Shopping Cart is in Approver's Inbox. Before the approver approves the SC,the requisitioner makes changes to the cart and resubmits the SC.
    When checked in Approver's Inbox, the SC total value is incorrect for those currency w/o decimal places. (Ex : JPY..)
    REGARDS
    Muthu

  • SAP PI 7.31 / Sender SOAP Channel Issue with XML tag Main/@versionMajor has incorrect value 000; expected value is 003

    Hi PI Experts,
    We are on SAP PI 7.31 SP 10.
    We are in the process of integrating ARIBA P2P solution using SOAP Adapter as sender to connect Ariba with our PI system.
    We have configured all required components in ESR and ID(Most of them are content provided by Ariba).When we try to post a message into PI using SOAP UI we are ending with below error.

    http://<host name> : <port name> /XISOAPAdapter/MessageServlet?channel= <party name> : <service name> : <channel name>
    For the above issue we had configured SOAP Sender channel as above,and the URL we are using to hit PI is as above screenshot.
    We have followed the note on this topic with out any luck.
    1378872
    We are not sure where is problem.As the issue is not reaching to PI not able to see the messages in SXMB_MONI.
    and in the SXMB_ADM PI has been configured as Integration Server.
    I had even tried to change the message protocol as XI3.0 in SOAP sender channel and noluck.
    I have tried to ximessage=true query also in URL and noticed that not working.This is clear that the message we are trying to send from Ariba is not compatible with XI3.0 protocol,Ariba is not having any option to change at their end as it is a cloud application and many customers have been using same with out any issues.
    We have tried maintain the Java System properties in NWA as XPI.Adapter.Version.Major = 3 but no luck.
    Can some one provide us the solution to get rid of this issue?

  • EntityFramework retrieve the view and has incorrect values?

    So the story is I have to use EF with Oracle datababse (lot of things go unsupported for 11c too...) Long story short, I have to create view that is a join product of multiple tables. Using distinct on the ID and Count distinct on something else. I have
    something of the following: as a view in the ORACLE database:
    ID     DTG     VALUE
    A       11         2
    B       10         3
    B       10         4
    B       10         5
    but when I use EF context to list it out and attach to database, what EF give me is:
    ID     DTG     VALUE
    A       11         2
    B       10         3
    B       10         3
    B       10         3
    Note, when I tried to use .Take(5) from the context.MY_VIEW.toList().Take(5), I get one of the values from VALUE COLUMN in the Oracle db view, why is that?

    Hello,
    For this issue, I would suggest that you could post it to the Oracle forum:
    https://community.oracle.com/welcome
    There are Oracle experts who help you better.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Parameter TSTMP1 has invalid value 0

    I am getting the following error(dump in the back end)..when I try executing the following ABAP Webdynpro program
    http://HOST:8000/sap/bc/webdynpro/sap/asr_processes_display
    Runtime Errors         UNCAUGHT_EXCEPTION
    Exception              CX_PARAMETER_INVALID_RANGE
    The following error text was processed in the system ED1 : Parameter has invalid value: Parameter TSTMP1 has invalid value 0 .
    The error occurred on the application server host_ED1_00 and in the work process 0 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: SUBTRACT of program CL_ABAP_TSTMP=================CP
    Method: SUBTRACT_TIMESTAMPS of program CL_HRASR00_PROCESS_UTILITIES==CP
    Method: GET_CURRENT_TIME_DATA of program CL_HRASR00_PROCESS_UTILITIES==CP
    Method: START_TRACKING of program /1BCWDY/2VM0SKJ71MBDIR0QYUEP==CP
    Method: IF_COMPONENTCONTROLLER~START_TRACKING of program /1BCWDY/2VM0SKJ71MBDIR0QYUEP==CP
    Method: HANDLEDEFAULT of program /1BCWDY/2VM0SKJ71MBDIR0QYUEP==CP
    Method: HANDLEDEFAULT of program /1BCWDY/2VM0SKJ71MBDIR0QYUEP==CP
    Method: IF_WDR_VIEW_DELEGATE~WD_INVOKE_EVENT_HANDLER of program /1BCWDY/2VM0SKJ71MBDIR0QYUEP==CP
    Method: INVOKE_EVENTHANDLER of program CL_WDR_DELEGATING_IF_VIEW=====CP
    Method: DISPLAY_TOPLEVEL_COMPONENT of program CL_WDR_CLIENT_COMPONENT=======CP
    Any ideas on solving this?

    Hi
    Any one has any incite into this issue. Pls share it.
    I am also facing the same issue. In our case, we have been developing processes and some of the processes are working fine until Friday 10/24. Now we are facing this error. I checked all config changes after Firday. Nothing significant related to processes. No patches applied over the weekend.
    Any help is appreciated!
    Thank you

  • Customs Number Guarantor (insurance Comp has an incorrect value()

    Hello,
    I am configuring default data for Guarantor (Insurance Company). After searching I have found that 'Office of Destination' is the same field as Guarantor. ( Kindly correct me if this is not the same fields).
    I have populated insurance company by default data in the US Import document. When i check messages I am getting following error 'Customs Number Guarantor (insurance Comp has an incorrect value()'
    Message: M4010 - Customs Declaration U.S. ABI(EI)
    Appreciate if any help on this.
    Regards
    Pradeep

    Hi Dave,
    Appreciate your quick reply. thank you.
    Can you please elaborate on the possible solution regarding error message. Im not able to figure out the same. I am attaching the screen shot of partner tab with error message.
    Thanks
    Pradeep

  • PDI - Handle parameter 'page' has bad value 0

    Hallo Leute,
    ich möchte über die PDI in PHP ein PDF in ein bestehendes PDF einfügen und bekomme folgende Fehlermeldung:
    Handle parameter 'page' has bad value 0
    Folgende Vorgehensweise:
    /* Blindes PDF einfügen */
    $tmpFile = pdf_new();
    pdf_open_file($tmpFile, "tmp/tmpFile.pdf");
    pdf_begin_page($tmpFile, 5, 5);
    pdf_end_page($tmpFile);
    pdf_close($tmpFile);
    $pdi = pdf_open_pdi($pdf, "tmp/tmpFile.pdf", "", 0);
    $page = pdf_open_pdi_page($pdf, $pdi, 1,"");
    /* Höhe und Breite des PDF's */
    $width = pdf_get_pdi_value($pdf, "width", $pdi, $page, 0);
    $height = pdf_get_pdi_value($pdf, "height", $pdi, $page, 0); pdf_place_pdi_page($pdf, $tmppage, 1, 1, 1.0, 1.0);
    pdf_close_pdi_page($pdf, $tmppage);
    Ich bedanke mich im Vorraus!

    I do not know at the moment. I will inquire. Thanks for trying to answer.
    It almost seems like a framework bug. I get the feelling that the framework is getting maxed out with this form, and acting weird in all kinds of ways. But we are not really seeing any errors in all the logs.

  • Passing variable which has multiple values to cursor as parameter

    declare
    i varchar2(4000):='0';
    j varchar2(100):='0';
    cursor c1
    is
    (select * from gl_je_lines
    where period_name='Mar-10'
    and reference_10='WRITEOFF');
    cursor c2 (l_ref varchar2)
    is
    (select * from gl_je_lines
    where period_name='Mar-10'
    and reference_10='WRITEOFF'
    and reference_2 not in (l_ref));
    begin
    for cur_record in c1
    loop
    j:=cur_record.reference_2;
    end loop;
    i:= i||','''||j||'''';
    dbms_output.put_line(i);--here i has 254 values separated by ','
    for cash_rec in c2(i)
    loop
    dbms_output.put_line('this is loop 2');
    dbms_output.put_line(cash_rec.reference_2||','||cash_rec.reference_1);--Here this output is not displayed
    --i think the code in this cursor c2 is not executing
    --please tell me the solution
    end loop;
    end;
    I already use pl-sql table with array..it is not sufficietn to my requirement.because when i use it we must increment the index of that table ..so every time not in operator works in cursor2.so it shows wrong result
    From last three days i am working on this only please let me know as early as possible friends
    Edited by: 805567 on Oct 28, 2010 11:30 PM
    Edited by: 805567 on Oct 29, 2010 1:05 AM

    you said two cases
    in first case
    place my second cursor in first cursor
    if i place like that here i use not in operator
    so it prints for every value it will print not in of that value
    so it was wrong result
    i want not in all values
    in second case
    i took values from cursor not from table
    like as shown below
    declare
    credit_amount number:=0;
    debit_amount number:=0;
    v1 number:=0;
    v2 number:=0;
    v3 varchar2(500);
    v4 varchar2(500);
    v5 varchar2(240);
    v6 varchar2(240);
    v7 number;
    v8 varchar2(240);
    v9 varchar2(240);
    v10 number;
    v11 number;
    v12 varchar2(240);
    v13 varchar2(240);
    v14 varchar2(240);
    v15 number;
    v16 number;
    --This cursor is for liability records which are in GL not in AP
    cursor c1(p_header_id number,p_reference_2 varchar2,p_reference_4 varchar2)
    is
    (select
    jl.je_header_id "JE_HEADER_ID"
    ,jl.period_name "PERIOD"
    ,glcc.concatenated_segments "ACCOUNT_CODE"
    ,DECODE(jl.accounted_dr,null,0,jl.accounted_dr)"ACCOUNTED_DEBIT"
    ,DECODE(jl.accounted_cr,null,0,jl.accounted_cr) "ACCOUNTED_CREDIT"
    ,DECODE(jl.accounted_dr,null,0,jl.accounted_dr) - DECODE(jl.accounted_cr,null,0,jl.accounted_cr) "NET"
    ,glcc.CODE_COMBINATION_ID "CODE_COMBINATION_ID"
    ,jl.SET_OF_BOOKS_ID "SET_OF_BOOKS_ID"
    ,jl.PERIOD_NAME "PERIOD_NAME"
    ,DECODE(Jl.entered_dr,null,0,Jl.entered_dr)"ENTERED_DEBIT"
    ,DECODE(Jl.entered_cr,null,0,Jl.entered_cr) "ENTERED_CREDIT"
    ,jl.reference_1 "SUPPLIER"
    ,jl.reference_2 "INVOICE_ID"
    ,jl.reference_3 "CHECK_ID"
    ,jl.reference_4 "CHECK_NUMBER"
    ,jl.reference_5 "INVOICE_NUM"
    ,jl.reference_6 "'AP_PAYMT_JUST_INSERTED'"
    ,jl.reference_7 "set_of_books_id"
    ,jl.GL_SL_LINK_ID "GL_SL_LINK_ID"
    ,jl.REFERENCE_8 "INVOICE_DIST_LINE_NUMBER"
    ,jl.reference_9 "INVOICE_PAYMENT_ID"
    ,jl.REFERENCE_10 "LIABILITY"
    ,jl.TAX_CODE_ID "TAX_CODE_ID"
    ,jl.TAX_GROUP_ID "TAX_GROUP_ID"
    FROM
    gl_je_lines jl
    , apps.gl_code_combinations_KFV glcc
    , gl_je_headers jh
    WHERE
    jl.period_name='Mar-10'
    and glcc. code_combination_id in (1016,1296,1298)
    and jh.je_header_id = jl.je_header_id
    AND glcc.code_combination_id = jl.code_combination_id
    and jh.je_source = 'Payables'
    AND jl.je_header_id = p_header_id
    and jl.reference_2 = p_reference_2
    and jl.reference_4 = p_reference_4
    MINUS
    select
    ir.je_header_id
    , h.period_name "APPERIOD"
    ,g.CONCATENATED_SEGMENTS "AP ACCOUNT CODE"
    ,DECODE(l.accounted_dr,null,0,l.accounted_dr) "AP ACCOUNTED_DR"
    ,DECODE(l.accounted_cr,null,0,l.accounted_cr) "AP ACCOUNTED_CR"
    ,DECODE(l.accounted_dr,null,0,l.accounted_dr) - DECODE(l.accounted_cr,null,0,l.accounted_cr) "NET"
    ,l.CODE_COMBINATION_ID "AP_CCID"
    ,h.set_of_books_id
    ,h.PERIOD_NAME "PERIOD_NAME"
    ,DECODE(l.entered_dr,null,0,l.entered_dr)"ENTERED_DEBIT"
    ,DECODE(l.entered_cr,null,0,l.entered_cr) "ENTERED_CREDIT"
    ,l.reference1 "SUPPLIER"
    ,l.reference2 "INVOICE_Id"
    ,l.reference3 "reference_3"
    ,l.reference4 "reference_4"
    ,l.reference5 "INVOICE_NUM"
    ,l.reference6 "reference_6"
    ,l.reference7 "reference_7"
    ,l.GL_SL_LINK_ID "GL_SL_LINK_ID"
    ,l.REFERENCE8 "REFERENCE_8"
    ,l.reference9 "reference_9"
    ,l.REFERENCE10 "REFERENCE_10"
    ,l.TAX_CODE_ID "TAX_CODE_ID"
    ,l.TAX_LINK_ID "TAX_LINK_ID"
    from
    ap_ae_lines_all l,
    ap_ae_headers_all h,
    gl_code_combinations_kfv g
    ,gl_import_references ir
    where
    ir.gl_sl_link_id=l.gl_sl_link_id
    AND g.CODE_COMBINATION_ID = l.CODE_COMBINATION_ID
    and h.ae_header_id = l.ae_header_id
    AND h.period_name ='Mar-10'
    AND g.CODE_COMBINATION_ID in (1016,1296,1298)
    AND ir.JE_HEADER_ID = p_header_id
    and l.reference2 = p_reference_2
    and l.reference4 = p_reference_4);
    --This cursor is for writeoff records
    cursor c2
    is
    (select * from gl_je_lines
    where period_name='Mar-10'
    and reference_10='WRITEOFF'
    and reference_2 in ('525706','525600'));
    credit number:=0;
    debit number:=0;
    j varchar2(240);
    i varchar2(4000):='0';
    cursor c3 (p_invoice_id varchar2)
    is
    (select
    jl.je_header_id "JE_HEADER_ID"
    ,jl.period_name "PERIOD"
    ,glcc.concatenated_segments "ACCOUNT_CODE"
    ,DECODE(jl.accounted_dr,null,0,jl.accounted_dr)"ACCOUNTED_DEBIT"
    ,DECODE(jl.accounted_cr,null,0,jl.accounted_cr) "ACCOUNTED_CREDIT"
    ,DECODE(jl.accounted_dr,null,0,jl.accounted_dr) - DECODE(jl.accounted_cr,null,0,jl.accounted_cr) "NET"
    ,glcc.CODE_COMBINATION_ID "CODE_COMBINATION_ID"
    ,jl.SET_OF_BOOKS_ID "SET_OF_BOOKS_ID"
    ,jl.PERIOD_NAME "PERIOD_NAME"
    ,DECODE(Jl.entered_dr,null,0,Jl.entered_dr)"ENTERED_DEBIT"
    ,DECODE(Jl.entered_cr,null,0,Jl.entered_cr) "ENTERED_CREDIT"
    ,jl.reference_1 "SUPPLIER"
    ,jl.reference_2 "INVOICE_ID"
    ,jl.reference_3 "CHECK_ID"
    ,jl.reference_4 "CHECK_NUMBER"
    ,jl.reference_5 "INVOICE_NUM"
    ,jl.reference_6 "'AP_PAYMT_JUST_INSERTED'"
    ,jl.reference_7 "set_of_books_id"
    ,jl.GL_SL_LINK_ID "GL_SL_LINK_ID"
    ,jl.REFERENCE_8 "INVOICE_DIST_LINE_NUMBER"
    ,jl.reference_9 "INVOICE_PAYMENT_ID"
    ,jl.REFERENCE_10 "LIABILITY"
    ,jl.TAX_CODE_ID "TAX_CODE_ID"
    ,jl.TAX_GROUP_ID "TAX_GROUP_ID"
    FROM
    gl_je_lines jl
    , apps.gl_code_combinations_KFV glcc
    , gl_je_headers jh
    WHERE
    jl.period_name='Mar-10'
    and glcc. code_combination_id in (1016,1296,1298)
    and jh.je_header_id = jl.je_header_id
    AND glcc.code_combination_id = jl.code_combination_id
    and jh.je_source = 'Payables'
    and jl.reference_2 in (p_invoice_id)
    MINUS
    select
    ir.je_header_id
    , h.period_name "AP PERIOD"
    ,g.CONCATENATED_SEGMENTS "AP ACCOUNT CODE"
    ,DECODE(l.accounted_dr,null,0,l.accounted_dr) "AP ACCOUNTED_DR"
    ,DECODE(l.accounted_cr,null,0,l.accounted_cr) "AP ACCOUNTED_CR"
    ,DECODE(l.accounted_dr,null,0,l.accounted_dr) - DECODE(l.accounted_cr,null,0,l.accounted_cr) "NET"
    ,l.CODE_COMBINATION_ID "AP_CCID"
    ,h.set_of_books_id
    ,h.PERIOD_NAME "PERIOD_NAME"
    ,DECODE(l.entered_dr,null,0,l.entered_dr)"ENTERED_DEBIT"
    ,DECODE(l.entered_cr,null,0,l.entered_cr) "ENTERED_CREDIT"
    ,l.reference1 "SUPPLIER"
    ,l.reference2 "INVOICE_Id"
    ,l.reference3 "reference_3"
    ,l.reference4 "reference_4"
    ,l.reference5 "INVOICE_NUM"
    ,l.reference6 "reference_6"
    ,l.reference7 "reference_7"
    ,l.GL_SL_LINK_ID "GL_SL_LINK_ID"
    ,l.REFERENCE8 "REFERENCE_8"
    ,l.reference9 "reference_9"
    ,l.REFERENCE10 "REFERENCE_10"
    ,l.TAX_CODE_ID "TAX_CODE_ID"
    ,l.TAX_LINK_ID "TAX_LINK_ID"
    from
    ap_ae_lines_all l,
    ap_ae_headers_all h,
    gl_code_combinations_kfv g
    ,gl_import_references ir
    where
    ir.gl_sl_link_id=l.gl_sl_link_id
    AND g.CODE_COMBINATION_ID = l.CODE_COMBINATION_ID
    and h.ae_header_id = l.ae_header_id
    AND h.period_name ='Mar-10'
    AND g.CODE_COMBINATION_ID in (1016,1296,1298)
    and l.reference2 in (p_invoice_id)); --here if i put l.reference2  in (p_invoice_id)) it must show the details of
    -- of all.but it doesnot display sir
    --here if i put l.reference2 not in (p_invoice_id)) it shows that id also sir
    BEGIN
    for writeoff_rec in c2
    LOOP
    FOR Main_cur in c1(writeoff_rec.je_header_id,writeoff_rec.reference_2,writeoff_rec.reference_4)
    LOOP
    j:='0';
    IF writeoff_rec.accounted_dr is not null AND Main_cur.ACCOUNTED_CREDIT<>0
    THEN
    v10:=Main_cur.ACCOUNTED_CREDIT;
    credit_amount:= credit_amount+Main_cur.ACCOUNTED_CREDIT;
    ELSIF writeoff_rec.accounted_cr is not null AND Main_cur.ACCOUNTED_DEBIT<>0
    THEN
    v11:=Main_cur.ACCOUNTED_DEBIT;
    debit_amount:= debit_amount+Main_cur.ACCOUNTED_DEBIT;
    END IF;
    if c1%found then
    j:=Main_cur.INVOICE_ID;
    end if;
    END LOOP;
    -- i:=i||','||j;
    i:= i||','''||j||'''';
    END LOOP;
    dbms_output.put_line(i); --Here i got all invoiceids of varchar2 records without single qutations
    --its look like '0','23232','2324234' etc.
    for cash_clearing_cur in c3(i)--here is the problem i am sending i with 250 values separated by ',' is it correct
    loop
    v3:=0;
    v4:=0;
    v5:=0;
    v6:=0;
    v7:=0;
    v8:=0;
    v9:=0;
    v10:=0;
    v11:=0;
    v12:=0;
    v13:=0;
    v14:=0;
    v15:=0;
    v16:=0;
    credit:=credit+cash_clearing_cur.ACCOUNTED_CREDIT;
    debit:=debit+cash_clearing_cur.ACCOUNTED_DEBIT;
    v3:=cash_clearing_cur.JE_HEADER_ID;
    v4:=cash_clearing_cur.INVOICE_ID;
    v5:=cash_clearing_cur.CHECK_NUMBER;
    v6:=cash_clearing_cur.LIABILITY;
    v7:=cash_clearing_cur.CODE_COMBINATION_ID;
    v8:=cash_clearing_cur.PERIOD;
    v9:=cash_clearing_cur.ACCOUNT_CODE;
    v10:=cash_clearing_cur.ACCOUNTED_CREDIT;
    v11:=cash_clearing_cur.ACCOUNTED_DEBIT;
    v12:=cash_clearing_cur.SUPPLIER;
    v13:=cash_clearing_cur.CHECK_ID;
    v14:=cash_clearing_cur.INVOICE_NUM;
    v15:=cash_clearing_cur.GL_SL_LINK_ID;
    v16:=cash_clearing_cur.SET_OF_BOOKS_ID;
    DBMS_OUTPUT.PUT_LINE('HEAd '||v3||','||'inv_id '||v4||','||
    'chk_num '||v5||','||'ref10 '||v6||','||'CCID '||V7||','||'PED '||V8
    ||','||'acctcode '||v9||','||'acct_Ct '||V10
    ||','||'acct_Dt '||v11||','||'chk_id '||v13||','||'inv_num '||V14
    ||','||'link '||v15||','||'sob '||v16||','||'suplir '||V12);
    end loop;
    DBMS_OUTPUT.PUT_LINE( 'Dr Amt ' ||debit || 'Cr amt ' || credit );
    EXCEPTION
    when too_many_rows then
    dbms_output.put_line('Invalid no of rows');
    when no_data_found then
    dbms_output.put_line('no data found exception');
    when others then
    dbms_output.put_line('Other than Invalid no of rows');
    dbms_output.put_line(SQLERRM);
    END;
    /

  • Wbadmin System State Backup "Parameter is incorrect"

    Hello,
    We have two physical Windows Server 2008 R2 x64 Standard Domain Controllers and the system state backup on both fails with the same error.
    We issue the command:
    wbadmin start systemstatebackup -backuptarget:c:
    (NOTE: We did the REG fix to allow backups to the system volume)
    and we get  this as the output:
    C:\Windows\system32>wbadmin start systemstatebackup -backuptarget:c:
    wbadmin 1.0 - Backup command-line tool
    (C) Copyright 2004 Microsoft Corp.
    Starting to back up the system state [28/02/2010 21:26]...
    Retrieving volume information...
    This will back up the system state from volume(s) System(C:) to c:.
    Do you want to start the backup operation?
    [Y] Yes [N] No y
    Creating a shadow copy of the volumes specified for backup...
    Creating a shadow copy of the volumes specified for backup...
    Please wait while system state files to back up are identified.
    This might take several minutes...
    Summary of the backup operation:
    The backup of the system state failed [28/02/2010 21:27].
    Log of files successfully backed up:
    C:\Windows\Logs\WindowsServerBackup\Backup-28-02-2010_21-26-31.log
    Log of files for which backup failed:
    C:\Windows\Logs\WindowsServerBackup\Backup_Error-28-02-2010_21-26-31.log
    The operation ended before completion.
    The parameter is incorrect.
    C:\Windows\system32>
    This happens on both servers and the two backup log files mentioned in the output are both empty.
    There's no other information that I can find so I don't know what the "parameter" is or why it is incorrect.
    Has anyne come across this problem and know what the error is referring to?
    Thanks
    Sunil

    I received a PowerShell script from Suhas and ran it on the affected server, the script output gave:
    1.
         Service Name    : RMAGENT
         Service Caption : RMAGENT
         Registry key    : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RMAGENT\ImagePath
         Value           : \\PRIMARY\admin$\Microsoft DPM SRT\RFCAgent.exe
         Reason          : The service path contains a double slash. Network paths or paths containing a double slash are not supported.
    2.
         Service Name    : RMAGENT
         Service Caption : RMAGENT
         Registry key    : HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\RMAGENT\ImagePath
         Value           : \\PRIMARY\admin$\Microsoft DPM SRT\RFCAgent.exe
         Reason          : The service path does not have a proper path format. Only paths beginning with [<Drive>]:\ format are supported.
    The "RMAgent" is from Microsoft Data Protection Manager 2007 System Recovery Tool (DPM-SRT) and I think is the remote agent that DPM-SRT uses to backup the remote system.
    The DPM-SRT RMAgent isn't supported and doesn't work on Windows Server 2008 R2 systems and I am not sure how it ended up installed on the server. Removing this service should solve the problem and allow the System State Backups to work. The DPM-SRT agent wasn't listed in the "Programs and Features" and so couldn't be installed from there (if it was I would have spotted this a long time ago and probably solved the problem). Instead, I used the information at:
    http://www.howtogeek.com/howto/windows-vista/how-to-delete-a-windows-service-in-vista-or-xp/
    To delete the RMAgent service: sc delete "RMAgent" in an Administrator CMD prompt. This removed the registry entries shown in the script output above. When this was done, I ran the script again just to be sure there was nothing else and indeed the RMAgent entries had gone and there were no other items that needed attention.
    Finally, I tried "webadmin start systemstatebackup -backuptarget:C:" again in an administrator CMD prompt and it completed successfully.
    I would like to thank Abhinav Mathur and Suhas Rao in particular for their very helpful script.
    Sunil

  • Getting error Data record has grouping value "" in

    Trying to change Address data in HR using BAPI_ADDRESSEMPUS_CHANGE
    Getting error message : Data record has grouping value "" instead of ""
    Please advise.
    Thanks,
    Bhaskar

    Hi,
    I assume the following system situation exists:
    The new Infotypeframework NITF is inactive for PA30. Flag CCURE PC UI is activated in T77SO. You are using ESS based on Web Dynpro which uses the new Infotypeframework.
    Here we have to differentiate between infotypes which are participating in the data sharing functionality and all other infotypes. Such as:
    Infotypes without Data Sharing:
              - Infotype checks     => module pool
              - Infotype update     => SAPFP50P/SAPUP50R
    Infotypes with Data Sharing:
              - Infotype checks     => module pool
              - Infotype update     => NITF
    ATTENTION:
    BAdI HRPAD00INFTY is not processed in this case (importing parameter NEW_IMAGE is always space). Instead the BAdI HRPAD00INFTYDB of the NITF is been processed.
    The following notes (1 and 2) will solve the problem. Note 3) solves an involving problem caused during the deletion process of a personnel number.
    1) 783499 - Incorrect framework synchronization
    2) 845592 - Incorrect framework synchronization - Retroactive accounting
    3) 844998 - PU00: Termination when deleting a personnel number
    Hope this will help!
    Regards,
    Sibylle

  • An unexpected error occurred while the job was running. (ID 104 Details: The parameter is incorrect (0x80070057))

    We are using DPM Version: 4.1.3465.0 with System Center 2012 Service Pack 1 to back up VMs in our Hyper V Cluster. We have a total of 37 VMs with a combination of 2008r2 servers and 2012 servers. One of our 2012 servers will not backup, and we consistently
    get the message "An unexpected error occurred while the job was running. (ID 104 Details: The parameter is incorrect (0x80070057))". I have seen this error message when I Googled it, but cannot get past it. I have deleted the Protection Group and
    data and tried to re-create, but get the same errors. I also thought the the server might be mis-reporting the data size, but I expanded that to cover the replication data. I have also tried to perform consistancy checks multiple times with no luck. I have
    not seen a difinitive answer from my Google searches, so was hopeful someone has seen this also, and have had success in resolving. Currently this server has no backup recovery points, so I am worried if it does crash. I think I have the rollups installed
    as well.

    Hi Kelly,
    does the issue still persists?

Maybe you are looking for