Issue in copy_order API in OM

Hi,
I have posted wrongly in plsql forum..so i repost this query in this forum now.....
My requirement is :
To copy the existing order number and passing to API to insert new order lines in oe_order_lines_all table. I have gone through the APIs in net and tried.
I tried the same code from there. but it has thrown error as some components are missing. why it is so..? because of version issue..?
I am using R12 EBS..
Package is :_
CREATE OR REPLACE PACKAGE BODY XXCP_COPY_SALES_ORDER is
PROCEDURE MAIN
(P_ERRBUF OUT VARCHAR2,
P_RETCODE OUT NUMBER,
P_ORDER_NUM IN NUMBER
) is
l_query_header_id NUMBER;
l_return_status VARCHAR2(1);
l_msg_count NUMBER;
l_msg_data VARCHAR2(2000);
l_copy_rec Oe_order_copy_util.Copy_rec_type := Oe_order_copy_util.get_copy_rec;
l_new_order_number oe_order_headers_all.order_number%TYPE;
l_error_msg_data Oe_msg_pub.MSG_TBL_TYPE;
v_error_msg VARCHAR2(4000);
l_line_id varchar2(500);
l_line_type_id number;
l_header_id number;
l_order_type_id number;
l_Line_cnt number := 0;
l_ERRMSG varchar2(200);
MULTIPLE_ORDERS EXCEPTION;
cursor cur_line(p_header_id NUMBER) is select line_id,line_type_id from oe_order_lines
where header_id = p_header_id;
BEGIN
BEGIN
select header_id,order_type_id into l_header_id,l_order_type_id from oe_order_headers
where order_number = P_ORDER_NUM;
EXCEPTION
WHEN TOO_MANY_ROWS THEN
l_ERRMSG:= 'ERROR:More Then One Order exist';
RAISE MULTIPLE_ORDERS;
WHEN OTHERS THEN
l_ERRMSG := SQLERRM;
FND_FILE.PUT_LINE(FND_FILE.LOG, l_ERRMSG);
RAISE MULTIPLE_ORDERS;
END;
for rec_line in cur_line(l_header_id) loop
l_Line_cnt := 1+l_Line_cnt;
l_line_id := to_char(rec_line.line_id)||','|| l_line_id;
l_line_type_id := rec_line.line_type_id;
end loop;
--- fnd_global.apps_initialize(0, 51124, 660);
l_copy_rec.api_version_number := 1;
l_copy_rec.init_msg_list := FND_API.G_TRUE;
l_copy_rec.COMMIT :=FND_API.G_TRUE;
l_copy_rec.Copy_Order := FND_API.G_TRUE;
l_copy_rec.hdr_count := 1;
lcopy_rec.hdr_list :=l_header_id;_--this component is missing in the package..why it is so..?
l_copy_rec.append_to_header_id:= NULL;
l_copy_rec.hdr_info := 'T';
l_copy_rec.hdr_type := 1997;
l_copy_rec.hdr_descflex := 'T';
l_copy_rec.hdr_credit_card_details := 'T';
l_copy_rec.hdr_scredits := 'T';
l_copy_rec.hdr_attchmnts := 'T';
l_copy_rec.hdr_holds := 'T';
l_copy_rec.manual_order_number:= P_ORDER_NUM;
l_copy_rec.all_lines := 'T';
l_copy_rec.line_count := l_Line_cnt;
l_copy_rec.line_list := l_line_id;l_line_list;*--this component is missing in the package..why it is so..?
l_copy_rec.line_type := 1996;
l_copy_rec.incl_cancelled := 'T';
l_copy_rec.line_price_mode := 1;--Original Price;
--l_copy_rec.line_price_date := NULL;
-- l_copy_rec.line_discount_id := NULL;
l_copy_rec.line_descflex := 'T';
l_copy_rec.line_scredits := 'T';
l_copy_rec.line_attchmnts := 'T';
--l_copy_rec.return_reason_code := v_return_reason_code;
l_copy_rec.default_null_values:= 'T';
Oe_order_copy_util.copy_order( p_copy_rec => l_copy_rec
,x_header_id => l_query_header_id
,x_return_status => l_return_status
,x_msg_count => l_msg_count
,x_msg_data => l_msg_data);
IF l_return_status = 'S' THEN --Copy successful
update oe_order_lines_all set source_type_code = 'INTERNAL' where header_id = l_query_header_id;
OE_ORDER_BOOK_UTIL.Complete_Book_Eligible
(p_api_version_number=> 1
,p_init_msg_list=> FND_API.G_TRUE
,p_header_id => l_query_header_id
,x_return_status=> l_return_status
,x_msg_count => l_msg_count
,x_msg_data => l_msg_data
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'Order Header ID:'|| l_query_header_id);
ELSE
Oe_msg_pub.GET_MSG_TBL(l_error_msg_data);
FOR i IN l_error_msg_data.FIRST .. l_error_msg_data.LAST LOOP
FND_FILE.PUT_LINE(FND_FILE.LOG,l_error_msg_data(i).message);
END LOOP;
END IF;
IF l_return_status = 'S' THEN
for rec_line in cur_line(l_query_header_id) loop
OE_ORDER_CLOSE_UTIL.Close_Line
( p_api_version_number => 1.0
, p_line_id => rec_line.line_id
, x_return_status => l_return_status
, x_msg_count => l_msg_count
, x_msg_data => l_msg_data
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'CLOSE LINE:'||rec_line.line_id||'-'|| l_return_status);
END LOOP;
oe_order_close_util.close_order(1, NULL, l_query_header_id, l_return_status, l_msg_count, l_msg_data);
FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'CLOSE HEADER:'||l_query_header_id||'-'|| l_return_status);
END IF;
COMMIT;
EXCEPTION
WHEN MULTIPLE_ORDERS THEN
FND_FILE.PUT_LINE(FND_FILE.LOG, l_ERRMSG);
WHEN OTHERS THEN
l_ERRMSG := l_ERRMSG||'-'||l_msg_data;
ROLLBACK;
FND_FILE.PUT_LINE(FND_FILE.LOG, l_ERRMSG);
END MAIN;
END XXCP_COPY_SALES_ORDER;
Anybody please help me..
wins

Hi ,
Thanks for your response..
Error is :
The components hdr_list and line_list are missing .
Winsky

Similar Messages

  • Issue in notification API for oracle workflow

    Hi,
    I am facing issue in sending oracle workflow notification. i have created a simple workflow with a process.
    I wrote one package which is creating adhoc role and sending the notification through api I(wf_notification.send).
    I am able to get the notification as well as email notification but without attribute values. My workflow attributes are getting replaced by null, but message body is appearing.
    Please help me, its urgent.
    Thanks
    Rajni

    I doubt that Oracle 7 DB is not supported. You may consider raising a SR with support.
    Regards,
    Anuj

  • Lion server file sharing issue with windows API read/write ini file (GetPrivateProfileString)

    Hello,
    I try to config lion server as file server for a windows application we use at work. All other computers are windows 7 or XP, lion server is the only mac. I choose lion server because it's size, quality and personal love of apple products.
    10.7.2 lion server's samba file sharing works almost perfectly with all my windows machines, I can copy, delete, modify any text files or office files without any issue, but the most important windows application for my business doesn't work with samba file sharing. After some digging, I found it is because windows program can't read or write INI file stored on lion share. Windows API GetPrivateProfileString always returns empty if the INI file is store on lion share.
    You can download a small application for read/write windows INI file from codeproject.com to test this problem:
    http://www.codeproject.com/KB/files/ini.aspx
    I can open/edit the in file using any text editor without any problem. The only problem is with those windows APIs. ACL is turned on for my lion share and assigned "delete" rights to samba users.
    I install samba3 on the same server; it works perfectly with windows API. My windows program also works. Looks like there is something wrong with lion server's sambax.
    I'd prefer to use built-in samba even I have samba3 working. Built-in samba is very immature right now, but considered how young it is, I will give apple some time to make it mature.
    Does anyone have same issue or knows how to fix it?
    Thanks,
    Michael.

    All the memory is fine. The server rarely if ever goes down when there are only around 10-12 users connected. When there are 20+ users connected and working heavily it goes down often. When I say working heavily, I mean they are transferring huge files to the SAN (100GB+), sometimes 5 at a time per user, and there are a bunch of others who are reading large video files at a minimum of 220MB/sec from the SAN.
    Though this worked on Snow Leopard without any issues, Lion just doesn't seem to be able to handle it. The odd thing is, on Snow Leopard there was only a single 1GB ethernet connection to a NAS system, whereas with Lion we have a much more powerful machine with a 6-port 10GB ethernet card and a 4 lane 8GB fiber card to a true SAN. You would think that the newer scenario with Lion would handle far more users with ease.
    So far, very disappointing with regards to Lion's file serving performance.

  • Facing intermittent issue with findByAltKey api

    We are facing an intermittent issue with findByAltKey while invoking from service in out code and so we want to understand the expected behavior of this api
    the issue is we have an unposted row in the cache which we need to retrieve.So we are doing a findByAltKey and based on the alternate keys it should return the row,but it fails sometimes.
    We noticed while debugging that one of the alternate key attributes that we have defined on our EO is "Name" and the value of name in the EntityCache is sometimes becoming null.As a result of this the alternatekey attributes we pass doesnt match the EO.getAltKey(index) and it in turn doesnt fetch the row.
    This attribute "Name" is present both in the base table and the translation table and there is a view link from parent VO to the TL(translation) VO.
    What we want to understand here is when we do a findByAltKey based on name ,from where does it gets the name from the base vo or translation vo? And is it because of this sometimes this value in the cache is null?
    Can anyone please explain the above issue.

    Hi,
    Which SOA server you are using?
    A & B are synch or Asynch processes?
    Thanks
    Arik

  • Issue with update_task API for updating Scheduled Dates for Task..

    Hi All,
    We have a requirement to update the project and task dates to a specified period from the current dates. I dont want to update all the tasks, and hence using the update_task API. The scheduled_finish_Date is the column from "pa_proj_elem_ver_schedule" which we want to update. As, this is the date which is shown on the Workplan tab for the tasks for (Scheduled Start and Scheduled Finish Date). I want to extend this scheduled_finish_Date to some days , say for eg. 60 days.
    To achieve, that update_task api is being used and the parameter for the scheduled_date is : p_scheduled_finish_date, this is passed as call to pa_project_pub.update_task API.
    We are also updating the completion data, which is happening fine and is updating the pa_tasks : completion_date column.
    Problem is with scheduled date, Please let me know how to go about this issue.
    Here is the sample code for calling the API :
    pa_project_pub.update_task
    (p_api_version_number => l_api_version_number_i,
    p_commit => l_commit,
    p_init_msg_list => l_init_msg_list,
    p_msg_count => l_msg_count,
    p_msg_data => l_msg_data,
    p_return_status => lt_return_status,
    p_pm_product_code => l_pm_product_code,
    --p_structure_updates_flag      => g_no,
    p_pm_project_reference => l_proj_reference,
    p_pa_project_id => p_project_id_i,
    p_pm_task_reference => p_pm_task_reference_i,
    p_pa_task_id => p_task_id_i,
    p_task_name => p_task_name_i,
    p_task_number => p_task_number_i,
    p_pa_parent_task_id => p_parent_task_id_i,
    p_task_completion_date => p_tsk_actual_finish_date_i,
    --Transaction Date (shown on the screen)
    p_scheduled_finish_date => p_tsk_sched_end_date_i,
    -- Scheduled Date (shown on the screen)
    p_out_pa_task_id => l_pt_task_id,
    p_out_pm_task_reference => l_pt_task_ref
    I am really not sure if I am missing anything here, please suggest as to how to update the Schedule Start and Finish Dates using the API.
    Waiting in anticipation!
    Thank you
    Anand.

    Hello,
    Make sure the wf is active in QA (re-activate if possible), check the transport for errors, check authorizations for WF-BATCH perhaps delete and recreate via SWU3?), refresh the buffers (SWU_OBUF).
    Please let me know if any of this helps.
    regards
    Rick Bakker
    Hanabi Technology

  • Performance/Scalablity issues with NW APIs

    Hello,
    We have the following business scenario for one of our clients.
    1.  The Client has an SAP ECC system for order mangement
    2.  The Client has multiple Marketing assocaites who, want to place orders. These MAs are equiped with VB/.net application from where they want to reach ECC
    3.  The cummilative order volumes for a day can be upto 10000+ orders.
    4.  Each order would have around 40 line items.
    We trying to expose ECC order creation via a Rest Web Service and use SAP NW Gateway for the same.
    The question which we have is whether the Gateway APIS can support such volumes or would there be scalablity/Performance issues.
    Any pointers would be appreciated.  Is there a business case available which shows the usage of the NW APIS for such scenarios.
    Regards,
    Abhishek

    Hello Abhishek,
    What kind of order management scenario the customer is going to use? Is it Sales order?
    We have a sizing guide for Gateway 2.0 that located on SMP and can befound here:
    www.service.sap.com/sizing --> sizing guidelines --> solutions & platform u2013 new structure  SAP NetWeaver.
    This guide does not contain the information for all possible scenarios, but you should be able to find a scenarios/flows that can be compared to the required one.
    In general, Gateway provides scalable and stable platform that definitely can support the required load. But in order to provide this load, the Gateway server has to have sufficient Hardware (SAPS, memory, disk) that is descibed in the sizing guide.
    For any additional question please send me an email or just call me.
    Best Regards,
    David

  • Weblogic server proxy issues with twitter4j api

    I am using weblogic 10.3.4 using twitter4j Api running behind the proxy. I am not sure why I am getting this error. I do have the proxy name,port number, userid and password set in the twiiter4j api. The same code works fine for me in tomcat behind proxy. When I was trying to migrate from tomcat to weblogic i am getting following error. Any help is really appreciated. I am not sure its the issue with weblogic
    Thanks for the help
    Vinoj
    <Failed to communicate with proxy: tmsproxy.tms.toyota.com/80. Will try c
    onnection stream.twitter.com/443 now.
    weblogic.net.http.HttpUnauthorizedException: Proxy or Server Authentication Required
    at weblogic.net.http.HttpURLConnection.getAuthInfo(HttpURLConnection.java:297)
    at weblogic.net.http.HttpsClient.makeConnectionUsingProxy(HttpsClient.java:440)
    at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:351)
    at weblogic.net.http.HttpsClient.New(HttpsClient.java:527)
    at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:239)
    Truncated. see log file for complete stacktrace
    Dumping beanImpl -> ejbName map
    weblogic.management.j2ee.mejb.MejbBean: Mejb
    connect timed out
    Relevant discussions can be found on the Internet at:
    http://www.google.co.jp/search?q=944a924a or
    http://www.google.co.jp/search?q=24fd66dc
    TwitterException{exceptionCode=[944a924a-24fd66dc 944a924a-24fd66b2], statusCode=-1, message=null, code=-1, retryAfter=-1, rateLim
    itStatus=null, version=3.0.4-SNAPSHOT(build: f34757f6d8512eca8028601d9de303e0173d8d42)}
    at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:177)
    at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:61)
    at twitter4j.internal.http.HttpClientWrapper.post(HttpClientWrapper.java:98)
    at twitter4j.TwitterStreamImpl.getFilterStream(TwitterStreamImpl.java:304)
    at twitter4j.TwitterStreamImpl$7.getStream(TwitterStreamImpl.java:292)
    at twitter4j.TwitterStreamImpl$TwitterStreamConsumer.run(TwitterStreamImpl.java:462)
    Caused by: java.net.SocketTimeoutException: connect timed out
    at java.net.PlainSocketImpl.socketConnect(Native Method)
    at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
    at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
    at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
    at java.net.Socket.connect(Socket.java:529)
    at weblogic.net.http.HttpsClient.openWrappedSSLSocket(HttpsClient.java:565)
    at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:287)
    at weblogic.net.http.HttpsClient.openServer(HttpsClient.java:364)
    at weblogic.net.http.HttpsClient.New(HttpsClient.java:527)
    at weblogic.net.http.HttpsURLConnection.connect(HttpsURLConnection.java:239)
    at weblogic.net.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:255)
    at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java

    Hi,
    Has anybody got the solution like 64-bit libroxy or its source code to compile as 64-bit? I'm facing the same problem.

  • ESB Reprocessing Issue with client API

    All,
    We are currently working on reprocessing the failed ESB instances using the client API. The instances are getting reprocessed but on a random basis are are getting the below exception. The reprocessing code is also provided.
    oracle.tip.esb.client.ClientException: 404 : Not Found
    08/07/10 08:26:51 at oracle.tip.esb.client.HttpClient.invoke(HttpClient.java:118)
    08/07/10 08:26:51 at oracle.tip.esb.client.impl.ConsoleClientImpl.perform(ConsoleClientImpl.java:148)
    08/07/10 08:26:51 at oracle.tip.esb.client.impl.ConsoleClientImpl.<init>(ConsoleClientImpl.java:71)
    08/07/10 08:26:51 at oracle.tip.esb.client.ConsoleClientFactory.getConsoleClient(ConsoleClientFactory.java:32)
    08/07/10 08:26:51 at com.cccis.cfcs.reprocess.RecoveryHelper.resubmitFailedInstance(RecoveryHelper.java:129)
    08/07/10 08:26:51 at com.cccis.cfcs.reprocess.RecoveryHelper.reprocessESBFailedInstances(RecoveryHelper.java:195)
    08/07/10 08:26:51 at com.cccis.cfcs.reprocess.ReprocessServlet.doGet(ReprocessServlet.java:107)
    08/07/10 08:26:51 at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    08/07/10 08:26:51 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    08/07/10 08:26:51 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    08/07/10 08:26:51 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    08/07/10 08:26:51 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    08/07/10 08:26:51 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    08/07/10 08:26:51 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
    08/07/10 08:26:51 at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
    08/07/10 08:26:51 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    08/07/10 08:26:51 at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
    08/07/10 08:26:51 at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
    08/07/10 08:26:51 at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
    08/07/10 08:26:51 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    08/07/10 08:26:51 at java.lang.Thread.run(Thread.java:595)
    08/07/10 08:26:51 Caused by: java.io.IOException: 404 : Not Found
    08/07/10 08:26:51 at oracle.tip.esb.client.HttpClient.throwException(HttpClient.java:223)
    08/07/10 08:26:51 at oracle.tip.esb.client.HttpClient.postAndReceive(HttpClient.java:150)
    08/07/10 08:26:51 at oracle.tip.esb.client.HttpClient.invoke(HttpClient.java:114)
    public void resubmitFailedInstance(String flowID,SystemDetails sysdetail) {
    System.out.println("Within the resubmitFailedInstance method ************ ");
    String HOST = sysdetail.getHostName();
    System.out.println("Host at the beginning....................................."+HOST);
    int PORT = Integer.parseInt(sysdetail.getPort());
    System.out.println("Port at the beginning.............."+PORT);
    String USER_NAME = sysdetail.getUserName();
    System.out.println("User name at the beginning....................."+USER_NAME);
    String securityCredentials = sysdetail.getSecurityCredentials();
    System.out.println("Password at the beginning......................."+securityCredentials);
    String filter = FILTER;
    ConsoleClient client = null;
    String data = null;
    HashMap<String, String> requestProps = new HashMap<String, String>();
    try {
    requestProps.put("filter", URLEncoder.encode(filter, "UTF-8"));
    client =
    ConsoleClientFactory.getConsoleClient(HOST, PORT, USER_NAME,
    securityCredentials);
    data = client.perform("GetFailedInstances", requestProps);
    DOMParser parsedXML = new DOMParser();
    ByteArrayInputStream inArray = new ByteArrayInputStream(data.getBytes());
    parsedXML.parse(inArray);
    XMLDocument xmldoc = parsedXML.getDocument();
    NodeList nl = xmldoc.getElementsByTagName("failedInstance");
    for (int i = 0; i < nl.getLength(); i++) {
    Element el = (Element)nl.item(i);
    String flowId = el.getAttribute("flowId");
    String systemId = el.getAttribute("systemId");
    String retryable = el.getAttribute("retryable");
    String payload = el.getAttribute("inPayload");
    System.out.println("System ID :**********" + systemId);
    System.out.println("retryable :*********" + retryable);
    System.out.println("Payload :***************" + payload);
    if (flowId != null && flowId.equals(flowID)) {
    if (retryable.equals("true") && systemId != null) {
    System.out.println("Before calling the testResubmitInstanceById method ************");
    HashMap<String, String> requestProp = new HashMap<String, String>();
    requestProp.put("flowId", flowId);
    requestProp.put("systemId", systemId);
    System.out.println("Before reprocessing*************");
    String output = client.perform("ResubmitInstanceById", requestProp);
    System.out.println("Result>>>>>>>>>>>>>>>>>>>>"+output);
    System.out.println("After reprocessing**********");
    break;
    } catch (UnsupportedEncodingException e) {
    e.printStackTrace();
    } catch (ClientException e) {
    e.printStackTrace();
    } catch(Exception e) {
    e.printStackTrace();
    public void reprocessESBFailedInstances(String msgID,
    SystemDetails sysdetail) {
    System.out.println("Within the reprocess failed instances*****************");
    Connection con = null;
    Statement stmt = null;
    String flowID = null;
    String flowIDSql =
    "select flow_id from esb_activity a,esb_tracking_field_value t where a.id=t.activity_id and t.value='" +
    msgID + "'";
    try {
    String URL = RB_READER.getString("URL");
    String userName = RB_READER.getString("userName");
    String password = RB_READER.getString("password");
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    con = DriverManager.getConnection(URL, userName, password);
    stmt = con.createStatement();
    ResultSet res = stmt.executeQuery(flowIDSql);
    while (res.next()) {
    flowID = res.getString("FLOW_ID");
    System.out.println("Flow ID :***********" + flowID);
    resubmitFailedInstance(flowID,sysdetail);
    System.out.println(":::::::::::::::::::::::::::::::::::");
    System.out.println("End of the method*************");
    } catch (SQLException e) {
    e.printStackTrace();
    } catch (Exception e) {
    e.printStackTrace();
    Regards,
    M.Rajesh

    Hi Rajesh,
    I am trying to get the failed instances using the client API in your code what is the FILTER string that you have used since i have used below code to get the payload but not able to get the payload.If you are able to get the payload please do reply me back.
    String payload = el.getAttribute("inPayload"); // Not getting the payload
    Hoping for early reply from you.
    with regards
    NK

  • Issue with DI API : 1607 unable to install installshield Scripting Runtime

    Hello,
    I'm trying to reinstall my DI API but it fails due to this error message.
    Any idea ?
    Thanks
    Stéphane

    Steph,
    I solved that by downloading the latest MSI from window and re-installing my Microsoft Installer. I admit it was not linked to the DI installation at that time but...
    Check http://support.microsoft.com/kb/888019 maybe it can help as well?
    Cheers
    Frédéric

  • Issue with BatchDriver API

    I am trying to upload a txt file into Hyperion workspace.
    Followed below steps :
    1.Created a control file batch_driver.cf with below content
    data name=sqr^path=/BatchDriver^file=D:\UnxUtils\sqr\sqr.txt^desc=Text file uploaded with BatchDriver^browse=true^keyword=txt
    and placed at D:\UnxUtils\sqr
    2.Created a folder in Workpsace root directory named BatchDriver
    3.In the server navigated to
    C:\Oracle\Middleware\user_projects\epmsystem1\bin\ReportingAnalysis\SDK
    and executed below command
    execapi.bat BatchDriver admin Admin123 localhost 6800 D:\UnxUtils\sqr\batch_driver.cf D:\UnxUtils\sqr\batch_driver.log
    But got the below error
    Exception in thread "main" java.lang.NoClassDefFoundError: BatchDriver
    Caused by: java.lang.ClassNotFoundException: BatchDriver
            at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
            at java.security.AccessController.doPrivileged(Native Met
            at java.net.URLClassLoader.findClass(URLClassLoader.java:
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.ja
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    Could not find the main class: BatchDriver.  Program will exit.
    I have also tried executing rmapi.jar which has BatchDriver.class file using below command
    java -jar C:\Oracle\Middleware\EPMSystem11R1\common\raframeworkrt\11.1.2.0\lib\rmapi.jar
    got below error
    Failed to load Main-Class manifest attribute from
    C:\Oracle\Middleware\EPMSystem11R1\common\raframeworkrt\11.1.2.0\lib\rmapi.jar
    Highly appreciated your help in this regard
    Thanks,
    Aravind

    Aravind
    Compile BatchDriver.java using jc.bat file (or you can compile the regular way)and you should be good to go.
    Regards
    Celvin Kattookaran

  • Issue while running a custom package:ORA-20100: File o2670336.tmp creation for FND_FILE failed.You will find more information on the cause of the error in request log. in Package PA_OPPORTUNITY_MGT_PVT Procedure modify_project_attributes ORA-20100: File o

    Hi Guys,
    We have created a custom package where in we are trying to call the standard API's of Oracle projects i.e PA_PROJECT_PUB.When we are trying to call these APIs we are facing the below issue.
    We have tried testing in two instances ,Initially it worked in both instances.
    Using the same API's multiple times we tested the same data set in these instances.
    For the first few runs it works fine.But when we go on using the same API's again and again for our testing we face now and then the below issue.
    Standard API's
    =========
    add_task
    update_project
    change_structure_status
    create_draft_plan
    Error:
    ORA-20100: File o2670336.tmp creation for FND_FILE failed.You will find more information on the cause of the error in request log. in Package PA_OPPORTUNITY_MGT_PVT Procedure modify_project_attributes ORA-20100: File o2670336.tmp creation for FND_FILE failed.
    You will find more information on the cause of the error in request log. in Package PA_PROJECT_PUB Procedure update_project:ORA-0000: normal, successful completionError while publishing the task
    Please let us know if anyone of has come across the same situation.
    Regards,
    Vijay

    But have issue only with validating invoice batch. I followed metalink ID's 605542.1, 167990.1,261693.1,1088553.1,749491.1, 461271.1 and few more.Was this working before? If yes, any changes have been done recently?
    Please see if these docs help.
    APXAPRVL: Invoice Validation Errors With MSG-00001 and REP-1419 [ID 333305.1]
    Invoice Validation Errors When Others:101505:Non-Oracle Exception Rep-1419 [ID 464125.1]
    Invoice Validation Fails with REP-1419 Error in Ap_approval_matched_pkg.Execute_matched_checks [ID 293425.1]
    Invoice Validation Failing On Fnd_file Could Not Write To File L0202306.Tmp [ID 461520.1]
    Invoice Validation (APPRVL) Errors ORA-20001 APP-SQLAP-10000 PSA_FUNDS_CONTROL_PKG.glxfck [ID 463184.1]
    Validate Invoice Error With ORA-20001: APP-SQLAP-10000: AP_FUNDS_CONTROL_PKG.Calc_QV [ID 432702.1]
    Invoice Validation Program Is Erroring Out [ID 382844.1]
    Error On Validation Of Invoices From Previous Periods [ID 412814.1]
    Thanks,
    Hussein

  • ORA-28750 Unknown Error while trying to execute an external app's API call?

    New to using web services in PLSQL
    Environment
    Database: Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE 10.2.0.4.0 Production
    TNS for Linux IA64: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    App Server:
    RedHat ES 3.0 and Oracle Application Server 9.0.4 (IAS release 1)
    We are designing a plsql application, that is able to call an external application's webservice APIs. We have created an oracle wallet for this, where we have successfully imported the corrrect security certificate issued by the API provider.
    All we are trying to do is to call one of the methods (LOGIN), which should login the provided user into the application and should return a valid session id. For this, I have a function, http_request, which first establishes the request to the URI. The code is failing at this call, with following error:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line 1029
    ORA-28750: unknown error
    I could not find more information on ORA-28750..?
    Here is the function cal, in our application package:
    FUNCTION http_request(
    p_uri IN VARCHAR2,
    p_method IN VARCHAR2 DEFAULT 'GET',
    p_http_version IN VARCHAR2 DEFAULT NULL
    RETURN UTL_HTTP.req IS
    v_request UTL_HTTP.req;
    BEGIN
    v_request := UTL_HTTP.begin_request(p_uri, p_method, p_http_version);
    IF v_session_id IS NOT NULL THEN
    UTL_HTTP.set_header(v_request, 'SessionID', v_session_id);
    END IF;
    RETURN v_request;
    END http_request;
    Here is my anonymous block, where I tested the function with the URI parameters
    declare
    v_request UTL_HTTP.req;
    begin
    UTL_HTTP.set_wallet('file:/etc/ORACLE/WALLETS/attask', '<pwdforattask>');
    v_request := pkg_attask_api.http_request('https://streamsandbox.attask-ondemand.com/attask/api/login?username=<valid_user_name>&password=<valid_pwd>','GET',NULL);
    end;
    Please note that user name and passwords used for the above test have been tested to be correct. When I login to web interface of the URL, these values work fine.
    Any help is appreciated as I am close to hitting the wall on this!
    Thanks for your time and expertise,
    Suma

    28750, 00000, "unknown error"
    // *Cause:   An Oracle Security Server error of an unspecified type occurred.
    // *Action:  Enable tracing to determine the exact cause of this error.
    //           Contact Oracle customer support if needed.

  • One or more errors occurred using google drive api

    Hi,
    I am trying to use the Google Drive API in my C# application with the below code but getting the following error:
    System.AggregateException was unhandled
    HResult=-2146233088
    Message=One or more errors occurred.
    Source=mscorlib
    StackTrace:
    at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
    at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
    at System.Threading.Tasks.Task`1.get_Result()
    at WindowsFormsApplication1.frmMain.btnUpload_Click(Object sender, EventArgs e) in c:\Users\CakeBoutique\Documents\Visual Studio 2012\Projects\WindowsFormsApplication1\WindowsFormsApplication1\main_form.cs:line 35
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at DevExpress.XtraEditors.BaseButton.OnClick(EventArgs e)
    at DevExpress.XtraEditors.BaseButton.OnMouseUp(MouseEventArgs e)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at DevExpress.Utils.Controls.ControlBase.WndProc(Message& m)
    at DevExpress.XtraEditors.BaseControl.WndProc(Message& msg)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(Form mainForm)
    at WindowsFormsApplication1.Program.Main() in c:\Users\CakeBoutique\Documents\Visual Studio 2012\Projects\WindowsFormsApplication1\WindowsFormsApplication1\Program.cs:line 26
    at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
    at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
    at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
    InnerException: System.IO.FileNotFoundException
    HResult=-2147024894
    Message=Could not load file or assembly 'Microsoft.Threading.Tasks.Extensions.Desktop, Version=1.0.16.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
    Source=Microsoft.Threading.Tasks
    FileName=Microsoft.Threading.Tasks.Extensions.Desktop, Version=1.0.16.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    FusionLog==== Pre-bind state information ===
    LOG: User = JASSIM-RAHMA\CakeBoutique
    LOG: DisplayName = Microsoft.Threading.Tasks.Extensions.Desktop, Version=1.0.16.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    (Fully-specified)
    LOG: Appbase = file:///C:/Users/CakeBoutique/documents/visual studio 2012/Projects/WindowsFormsApplication1/WindowsFormsApplication1/bin/Release/
    LOG: Initial PrivatePath = NULL
    Calling assembly : Google.Apis.Auth.PlatformServices, Version=1.8.1.31699, Culture=neutral, PublicKeyToken=null.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\Users\CakeBoutique\documents\visual studio 2012\Projects\WindowsFormsApplication1\WindowsFormsApplication1\bin\Release\WindowsFormsApplication1.vshost.exe.Config
    LOG: Using host configuration file:
    LOG: Using machine configuration file from C:\Windows\Microsoft.NET\Framework\v4.0.30319\config\machine.config.
    LOG: Post-policy reference: Microsoft.Threading.Tasks.Extensions.Desktop, Version=1.0.16.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
    LOG: Attempting download of new URL file:///C:/Users/CakeBoutique/documents/visual studio 2012/Projects/WindowsFormsApplication1/WindowsFormsApplication1/bin/Release/Microsoft.Threading.Tasks.Extensions.Desktop.DLL.
    LOG: Attempting download of new URL file:///C:/Users/CakeBoutique/documents/visual studio 2012/Projects/WindowsFormsApplication1/WindowsFormsApplication1/bin/Release/Microsoft.Threading.Tasks.Extensions.Desktop/Microsoft.Threading.Tasks.Extensions.Desktop.DLL.
    LOG: Attempting download of new URL file:///C:/Users/CakeBoutique/documents/visual studio 2012/Projects/WindowsFormsApplication1/WindowsFormsApplication1/bin/Release/Microsoft.Threading.Tasks.Extensions.Desktop.EXE.
    LOG: Attempting download of new URL file:///C:/Users/CakeBoutique/documents/visual studio 2012/Projects/WindowsFormsApplication1/WindowsFormsApplication1/bin/Release/Microsoft.Threading.Tasks.Extensions.Desktop/Microsoft.Threading.Tasks.Extensions.Desktop.EXE.
    StackTrace:
    at Microsoft.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at Microsoft.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccess(Task task)
    at Microsoft.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task)
    at Microsoft.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
    at Google.Apis.Auth.OAuth2.GoogleWebAuthorizationBroker.<AuthorizeAsync>d__1.MoveNext() in c:\code\google.com\google-api-dotnet-client\default\Tools\Google.Apis.Release\bin\Debug\output\default\Src\GoogleApis.Auth.DotNet4\OAuth2\GoogleWebAuthorizationBroker.cs:line 54
    InnerException:
    here is the code:
    UserCredential credential = GoogleWebAuthorizationBroker.AuthorizeAsync(
    new ClientSecrets
    ClientId = "xxxxxxxxx",
    ClientSecret = "xxxxxxxxx",
    new[] { DriveService.Scope.Drive },
    "user",
    CancellationToken.None).Result;
    // Create the service.
    var service = new DriveService(new BaseClientService.Initializer()
    HttpClientInitializer = credential,
    ApplicationName = "Drive API Sample",
    File body = new File();
    body.Title = "My document";
    body.Description = "A test document";
    body.MimeType = "text/plain";
    byte[] byteArray = System.IO.File.ReadAllBytes("c:\\temp\\mygdriver.txt");
    System.IO.MemoryStream stream = new System.IO.MemoryStream(byteArray);
    FilesResource.InsertMediaUpload request = service.Files.Insert(body, stream, "text/plain");
    request.Upload();
    File file = request.ResponseBody;
    Console.WriteLine("File id: " + file.Id);
    Console.WriteLine("Press Enter to end this process.");
    Console.ReadLine();
    Kindly advise...

    Hello,
    For issues regarding google APIs, please post it to:
    https://developers.google.com/maps/support/
    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.

  • Using HRMS APIs in Forms 6i

    I am trying to build a custom Form that modifies inserts or modifies data in the Oracle HRMS system. To do this I thought the APIs would be the best tool because they would preserve the integrity of the system as a last guard if all of my checks on the data failed to catch something.
    I am having problems implementing this idea. I have what essentially amount to wrapper functions that take the dataset I am dealing with and send it off through the various APIs needed to place it in the propper location. Insertion of new data is compiling ok, but when I try to compile a package with a procedure in it that utalizes and update (HR_PERSON_API.UPDATE_US_PERSON) I get the following error:
    Implementation Restriction: 'HR_API.G_NUMBER':
    Cannot directly access remote package variable or cursor
    To simplify the problem I took the procedure out of the program unit in the form and made it a stand alone and also stripped it down to just the bare minimum passing in dummy data most of the time and only using local variables rather than objects. I end up with the following code:
    procedure update_person is
    start_date date;
    end_date date;
    full_name varchar2(300);
    comment_id number;
    comb_warning boolean;
    ass_warning boolean;
    pay_warning boolean;
    emp_number varchar2(200);
    object_version number;
    begin
    object_version := 10;
    emp_number := 1210;
    hr_person_api.update_us_person(
    p_effective_date => to_date('02-apr-2006', 'dd-mon-yyy'),
         p_datetrack_update_mode => 'UPDATE',
         p_person_id => 2852,
         p_object_version_number => object_version,
         p_employee_number => emp_number,
         p_effective_start_date => start_date,
         p_effective_end_date => end_date,
         p_full_name => full_name,
         p_comment_id => comment_id,
         p_name_combination_warning => comb_warning,
         p_assign_payroll_warning => ass_warning,
         p_orig_hire_warning => pay_warning
    end;
    This gives me the error from above. If I try to create the same procedure in the database itself using a utility like TOAD and the same information to log in to the database I get no such compile error and only get errors when I run the procedure as all the values are dummy and don't actually map to anything.
    Information on my version of forms builder, the db, and the application:
    Forms [32 Bit] Version 6.0.8.27.0
    RDBMS : 9.2.0.6.0
    Oracle Applications : 11.5.8
    Forms Server
    Oracle Forms Version : 6.0.8.25.2
    Application Object Library : 11.5.0
    I have literaly been on this same problem the entire day and anyone that can help me I would reall apreciate it. At this point I am at a loss. I suspect either I am making the call to the API incorrectly, or it is simply not possible to do what I am trying to do. I hope I am just doing something wrong because as I understood it, one of the points of the API was to allow custom forms to do validated insertion of data.
    thanks for any help
    Andrew

    Your approach of using published APIs is absolutely the best / supported mechanism to propgramatically enter data into HRMS.
    This is a long-known issue when calling APIs from Forms - you are not supplying values for all of the parameters that this API exposes, thus the package defaults will be evaluated but these fail over a RPC call.
    To work around simply supply all the API parameters with a value to avoid defaulting. So, for those that you do not actually wish to set you can set up a local constant(s) within the form, defined with the same definition as hr_api.g_number, g_varchar2 etc (check the db package specification for these), and pass them explicitly in your call together with those that you are setting currently.

  • "Save as..." hang on long PDF with annots.api plugin enabled

    Hi,
    I am not a regular Acrobat user but I have been attempting to use it recently to process some fairly long PDF files with up to 20K pages which weigh in at 50MB.  I thought I'd share something interesting I have discovered with the community.
    What I found is that the larger the file (not sure whether it is the number of pages, number of bytes or something else) the longer it takes for the "Save as..." dialog box to appear.  Then, when the filename has been chosen (just saving as a normal PDF) the amount of time before the progress bar appears also seems to get longer for longer files.
    In fact while the save as box is getting ready and while the progress bar is not yet showing, Adobe Acrobat seems to hang and stop responding.  We found that disabling plugins entirely (by shift clicking to open the document) eliminated entirely even for large documents.  We then narrowed it down to a specific plugin called annots.api.
    My questions for the community are: 
    Is this a known issue with annots.api?
    What does annots.api actually do?
    This seems to be the same for Adobe Reader X (Windows 2012), Adobe Acrobat X (Windows XP), Adobe Reader 11 (Windows 7), Adobe Acrobat XI (Windows 8) and Adobe Acrobat (Windows XI).
    Thanks,
    James
    P.S. If somebody from Adobe want help to recreate the issue, I can provide some sample PDF files that clearly illustrate the issue and snow a possible polynomial performance curve.

    i do not have a .mac account. i checked my preferences on that point and confirmed there is no effort to sync with iDisk.
    i am only user (account) on this eMac. So i do not have a basis for compaing other users. i may set up a dummy account (other dummy?) to test this theory.
    i checked my energy saver prefs. i had computer and display set to Never sleep. i had the box checked to put disk to sleep when possible. i have now unchecked that box.
    i also have just downloaded update to 10.4.4. so, i will try that.
    any other ideas, most appreciated. i am especially interested to know if there is software to look for possible virus infection that might cause this. since it happens randomly, i suspect it might be some bug (not sure if that is logical analysis on my part)
    steve

Maybe you are looking for

  • My iPod touch 4g will not sync for anything!

    I got my iTouch this January and have had horrible problems with it since about a month after I got it. The first problem I had was that certain songs go silent partway through, but the sound starts again about 30 seconds later. It always happens at

  • Importing Blackbery Contacts to Address book on imac

    What is the easiest way to import contact from a Blackberry pearl to address book on my intel imac? Thanks in advance for any assistance

  • Click a tab - Clear the Corresponding Page Cache

    When a user clicks a tab and they are taken to a search page that is assigned to that tab, I would like the cache of that page to be cleared so that all previous entries in search fields are gone. I would only like this clearing-out to happen when th

  • No pressure sensitivity in krita/qt

    I'm trying to get my graphire 4 to work in krita (2.1, 2.2), everything seems to work fine except the pressure sensitivity... I've installed xf86-input-wacom and linuxwacom from aur (also tried linuxwacom-dev). /etc/hal/fdi/policy/10-wacom.fdi <?xml

  • Problems opening and editing Olympus OM-D E-M1 files

    Hi, I have a new Olympus OM-D E-M1 camera. It produces (pretty great) video's of the .MOV format, H.264. However, I am not able to open, view and edit these files in Premiere Pro CS5. Some more information: - Video format .MOV, H.264, 1080p 29.97fps