OE_HOLD_PUB.Apply_hold API - Error Messages
Hi Experts,
I 'am using the OE_HOLD_PUB.apply_hold to apply hold on sales orders programmatically. While the hold gets applied in successful cases, I 'am not getting any error messages when there is a failure in applying the hold.
OE_Holds_PUB.Apply_Holds (
p_api_version => 1.0,
p_init_msg_list => FND_API.G_TRUE,
p_commit => FND_API.G_TRUE,
p_hold_source_rec => l_hold_source_rec,
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data );
When l_return_status is 'E', the x_msg_data is always null. Can you please suggest how to retrieve the error message data.
Thanks,
Ganapathi
Ganapathi
Try this:
DECLARE
l_hold_source_rec oe_holds_pvt.hold_source_rec_type;
v_msg_index_out NUMBER;
BEGIN
fnd_global.apps_initialize (user_id => u_id, resp_id => r_id, resp_appl_id => 660, security_group_id => 0);
mo_global.set_policy_context ('S', org_id);
l_hold_source_rec := oe_holds_pvt.g_miss_hold_source_rec;
l_hold_source_rec.hold_id := hld_id;
l_hold_source_rec.hold_entity_code := 'O';
l_hold_source_rec.hold_entity_id := hdr_id;
l_hold_source_rec.line_id := lines_record.line_id;
l_hold_source_rec.hold_comment := 'Credit Authorization Failure Hold';
l_msg_count := NULL;
fnd_file.put_line (fnd_file.output, 'Before calling OE_Holds_PUB.Apply_Holds:');
oe_holds_pub.apply_holds (p_api_version => 1.0
, p_init_msg_list => fnd_api.g_false
, p_commit => fnd_api.g_false
, p_hold_source_rec => l_hold_source_rec
, x_return_status => hold_status
, x_msg_count => l_msg_count
, x_msg_data => error_message
fnd_file.put_line (fnd_file.output, 'After calling OE_Holds_PUB.Apply_Holds:');
fnd_file.put_line (fnd_file.output, 'Message Count is: ' || x_msg_count);
fnd_file.put_line (fnd_file.output, 'Return Status is: ' || hold_status);
IF hold_status = fnd_api.g_ret_sts_success
THEN
fnd_file.put_line (fnd_file.output, 'success:');
hold_status := 'SUCCESS';
ELSIF hold_status IS NULL
THEN
fnd_file.put_line (fnd_file.output, 'Status is null');
ELSE
IF x_msg_count > 0
THEN
FOR v_index IN 1 .. x_msg_count
LOOP
fnd_msg_pub.get (p_msg_index => v_index
, p_encoded => 'F'
, p_data => error_message
, p_msg_index_out => v_msg_index_out
fnd_file.put_line (fnd_file.output
, 'Message number is :' || v_msg_index_out || ' and message is' || NVL (error_message, 'nothing')
--fnd_file.put_line (fnd_file.output, 'failure:' || NVL (error_message, 'nothing'));
hold_status := 'FAILURE';
END LOOP;
END IF;
END IF;
END;
Thanks
Nagamohan
Similar Messages
-
Where can I get a list of Adobe Connect API error messages?
We have a test that will try to connect to an invalid Adobe Connect site and confirms that we get an appropriate error message back. Last week, the error was "The remote name could not be resolved: test.com". Now the error is "Unable to connect to the remote server". Is there a list of Adobe Connect API errors and where would I check to see if they are changed/updated?
Thanks,
KevinAssuming that you did a default installation, you can click Start-->Programs-->National Instruments-->FieldPoint 3.0-->FieldPoint Help. There is a category called Errors and Warning Codes. Under that category is two subcategories; FieldPoint Specific Error Codes and General Error codes. These two sub-categories should list most error codes that you will see.
Regards,
Aaron -
API error in projects conversion
I am using pa_project_pub.create_project api to load projects.
The program errored with ERROR IN API
Error Message (API ERROR) This role has already been assigned to this person during the specified period.
Can anyone tell the reason for the above error.
ThanksDoes the API is giving project role to anyone ? Does it give any detailed
error message?
If the person has the project role then you may have to remove it and try the API again
Rajesh ALex -
Hi Team,
Created a simple file2file scenarion successfully. Unable to pick the file from Sender directory to Receiver Directory.
Checked from monitoring the Communication Channel.
Error message shown for sender communication channel as below:
Communication Channel Status Short Log Control Data Party Service Adapter Type Direction
sen_cc Red ball Processing Errors In the Last 30 Seconds Manually kanchuf2f_sen_bs File Sender
Line 1 / 1
By selecting the sender communication channel "sen_cc", below is the node details given.
Processing Details for Cluster Node Server 0 1_54295
Type
Time Stamp Message ID Explanation
12/3/08 8:20:01 AM 45f841be-a421-43bd-235a-c7ad19b0aec8 Retry interval started. Length: 60.0 seconds
12/3/08 8:20:01 AM 45f841be-a421-43bd-235a-c7ad19b0aec8 Error: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:JCO_COMMUNICATION_FAILURE:
By clicking on the first Message ID, The message says successful upto some point and give error says JCO COMMUNICATION FAILURE and RFC issue.
Below is the information provided in detail.
Audit Log for Message: 45f841be-a421-43bd-235a-c7ad19b0aec8
Time Stamp Status Description
03.12.2008 08:20:00 Success Channel sen_cc: Send binary file "f:\xi_file\sender\f2fmap.xml". Size 210 with QoS BE
03.12.2008 08:20:00 Success Application attempting to send an XI message synchronously using connection AFW.
03.12.2008 08:20:00 Success Trying to put the message into the call queue.
03.12.2008 08:20:00 Success Message successfully put into the queue.
03.12.2008 08:20:00 Success The message was successfully retrieved from the call queue.
03.12.2008 08:20:00 Success The message status set to DLNG.
03.12.2008 08:20:01 Error Returning synchronous error notification to calling application: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:JCO_COMMUNICATION_FAILURE:.
03.12.2008 08:20:01 Error Transmitting the message using connection http://sitaserv33:8001/sap/xi/engine?type=entry failed, due to: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:JCO_COMMUNICATION_FAILURE:.
03.12.2008 08:20:01 Error The message status set to FAIL.
03.12.2008 08:20:01 Error Returning to application. Exception: com.sap.aii.af.ra.ms.api.DeliveryException: XIServer:JCO_COMMUNICATION_FAILURE:
Page 1 / 2
I think this could be the problem with some basis related settings, I am not sure what exactly the issue with.
Any idea what exactly the error is talking about please do help me in finding the solution to thresolve this error message.
Regards,
Venkat Ramana KHi Carlos,
Thank you for the quick information.
Followed all the steps and also basis person from onsite restarted the XI server.
Now, I am able to log onto XI with the login Id but, when I give Tr Code: SXMB_IFR, unable to open the browser that shows Integration Builder.
Getting the error message.
*500 Internal Server Error*
*SAP J2EE Engine/7.00*
**Exception**
*An internal error occurred. Contact you XI administrator*
*Unable to read configuration data (ExchangeProfile/aii.properties)*
Error Details, Error History, Build Info, Generic Application Info
Regards,
Venkat Ramana K -
I am receiving this error message when trying to export pictures: 'Unable to Export": An internal error has occured: Win32 API error 2 ( "The system cannot find the file specified.") when calling ShellExecuteExW from AgWorkspace.shellExecute.// I have a HP ENVY Phoenix, fully loaded, 1 1/2 years old.
Nevermind I fixed it. Thank you.
-
Using SRW api : strange error message
Hi all,
i am using the srw api to generate reports out of the database. here is the procedure i have written:
CREATE OR REPLACE PROCEDURE Create_Reports
AS
v_paralist PORTAL.SRW_PARAMLIST;
v_ident PORTAL.SRW.JOB_IDENT;
BEGIN
v_paralist := PORTAL.SRW_PARAMLIST(PORTAL.SRW_PARAMETER('',''));
PORTAL.srw.add_parameter(v_paralist, 'GATEWAY', 'http://my.ias_machine.com/reports/rwservlet');
PORTAL.srw.add_parameter(v_paralist, 'SERVER', 'repserver);
PORTAL.srw.add_parameter(v_paralist, 'DESFORMAT', 'PDF');
PORTAL.srw.add_parameter(v_paralist, 'DESTYPE', 'FILE');
PORTAL.srw.add_parameter(v_paralist, 'DESNAME', 'w:\transfer\pdfs\eventdriven_test.pdf');
PORTAL.srw.add_parameter(v_paralist, 'REPORT', 'testreport.rdf');
PORTAL.srw.add_parameter(v_paralist, 'USERID', 'username/password@exampledb');
v_ident := portal.srw.run_report(v_paralist);
END;
The following error has occurred during execution:
ORA-01849: hour must be between 1 and 12
ORA-06512: at "PORTAL.SRW", line 290
ORA-06512: at "PORTAL.SRW", line 774
ORA-06512: at "PRAMA.CREATE_REPORTS", line 16
ORA-06512: at line 2
Neither in the report nor in another table which i use for this , i have a column with date or time datatype, so why does this error message occur?
Do you have any ideas?
KatharinaIf I run this report locally in reports builder it works without problems. Is it possible that the setting system time of the computer has something to do with this error message? After testing and troubleshooting the last days I found out that the report runs without problems only in the morning until 12.00 AM (?). In the afternoon and evenings I get this error message...
Has anybody similar experiences?
thank you!! -
As i said Premiere pro is crashing on me and I am having this error message: [../../../../MediaFoundation/API/Inc/MFBinaryData.h-62]
It happens when I try to import a file full of videos in premiere pro.. certain files import others do not. The ones that do not will if you import each video individually.
In my case that would take me a week to do. Need a solution.
Im running on a Mac with Premiere Pro CC updated. All malware is erased from computer. Why is it doing this? Premiere pro has been crashing a lot lately on me. Super frustrating!
Somewhere i heard I should verify disk permission and repair them..? I did that and its still a problem.
Computer settings:
OS X Yosemite (10.10.2)
Processor 2.8 GHz Intel Core i7
Memory: 16 GB 1333 MHz DDR3
Graphics: AMD Radeon HD 6770M 512 MBCorrection: It was not the footages problem. Only after a matter of time, I was able to import the footage like normal. Seemed to be a momentary problem. Odd and rather frustrating knowing that such problems can just arise at any point in time with relatively no explanation. Oh well!
-
Financial Reports error message Java API can't connect to olap
Hi,
On version 11.1.1.3, after reapplication of 11.1.1.3 because of other problems with shared services, get the following message on the diagnostics for the financial reporting server.
Launch external checker with next command: E:\Hyperion\common\validation\9.5.0.0\launchEssbaseJavaAPI.bat EssbaseJAPIConnect admin ****** hypolap.msj.org http://hypapp2.msj.org:13080/aps/JAPI
Error: Result: -1; Error message: Cannot connect to olap service. Cannot connect to Essbase Server. Error:Essbase Error(1051293): Login fails due to invalid login credentials
Recommended Action: Make sure external checker is working.
Financial reports over the Web can not connect to the essbase server. Financial reports through the studio works fine. Any suggestions how to troubleshoot or resolve the issue with the login credentials for the Java API to essbase?
AnneThings to check -
1) Does the user you specified in the connection have the role OLAP_USER
2) Does the user you specified in the connection have access to an OLAP schema (analytic workspace or CWM2 ROLAP schema)
3) Have you installed the correct JDBC files from your database instance into the BI Beans JDBC directory
Keith Laker
Oracle EMEA Consulting
BI Blog: http://oraclebi.blogspot.com/
DM Blog: http://oracledmt.blogspot.com/
BI on Oracle: http://www.oracle.com/bi/
BI on OTN: http://www.oracle.com/technology/products/bi/
BI Samples: http://www.oracle.com/technology/products/bi/samples/ -
hello experts
I am sending a message WS2RFC and recieve an error message that return from the RFC.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <!-- 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>XIAdapterFramework</SAP:Category>
<SAP:Code area="MESSAGE">GENERAL</SAP:Code>
<SAP:P1 />
<SAP:P2 />
<SAP:P3 />
<SAP:P4 />
<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: error while processing the request to rfc-client: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not convert request from XML to RFC:com.sap.mw.jco.JCO$ConversionException: (122) JCO_ERROR_CONVERSION: Date '03042008' has a wrong format at field DATUM: Unparseable date: "03042008"</SAP:AdditionalText>
<SAP:ApplicationFaultMessage namespace="" />
<SAP:Stack />
<SAP:Retry>M</SAP:Retry>
</SAP:Error>
any ideas what it is and how to solve it?Hi,
Looks like you have passed data in wrong format to RFC input parameter.
Your format: DDMMYYYY (03042008)
Expected: YYYYMMDD
I would use a graphical mapping function "DataTrans" to convert date format from DDMMYYYY to YYYYMMDD.
Regards,
Jakub -
I am unable to open my Red Box account. I get the message "unknown API error."
I switched to Fire Fox because of slowness and other issues with Internet Explorer. Fire Fox is much better, with one exception. I can't open my Red Box account. I get a message that states "unknown API error." Red Box says the problem is related to the fact that they have new software. However, I can still pull up Red Box in Explorer.
What extensions do you have installed? To get a full list, do the following:
In order to be able to find the correct solution to your problem, we require some more non-personal information from you. Please do the following:
*Click the Firefox button at the top left, then click the ''Help'' menu and select ''Troubleshooting information'' from the submenu. If you don't have a Firefox button, click the Help menu at the top and select ''Troubleshooting information'' from the menu.
Now, a new tab containing your troubleshooting information should open.
*At the top of the page, you should see a button that says "Copy all to clipboard''. Click it.
*Now, go back to your forum post and click inside the reply box. Press Ctrl+V to paste all the information you copied into the forum post.
If you need further information about the Troubleshooting information page, please read the article [[Using the Troubleshooting Information page]].
Thanks in advance for your help! -
Call of API for IBase contains errors Message no. CRM_IB050
Call of API for IBase contains errors
Message no. CRM_IB050
Diagnosis
No import data was entered for one of the function modules (APIs) for Installed Base Management. Therefore, the function cannot be executed.
System Response
The system terminates processing.
Procedure
If the APIs are called in customer-specific programs, check the call for the APIs and change the call accordingly.
Can anyone help me in the above issue.
Regards,
Mirza Kaleemulla BaigHi Sai,
This is too late to reply this post, but to let everyone know about the issue I am posting here.
Start new UI session and put breakpoint at BUPR_EMPLO_DELETE and check parameter IV_X_SAVE everytime, till you get the error message. The parameter IV_X_SAVE should be same/consistent (either ' ' or 'X') in whole Logical Unit of Work. It should not change in between.
I faced the same kind of problem and found that standard was passing IV_X_SAVE = ' ' and in our custom code we were passing IV_X_SAVE = 'X'. I changed it to IV_X_SAVE = ' ' and my problem got resolved.
You can try the same. Please post the alternate solution if you find it.
Best Regards,
Rahul Koshti -
Error message when listing activities with Oracle BPEL Control and Java API
I'm implementing some BPEL processes in an Oracle Application server 10.1.3.3 environment.
I use the Oracle BPEL Process Manager Client Java API to access some BPEL instances but when I want to list their activities with IInstanceHandle.listActivities() (I've tested the IInstanceHandle and it contains an open process instance) I receive the following error message:
"Activity error:ORABPEL-04003 Cannot find work items. An attempt to fetch the work items using the where condition "cikey = ? AND ( wi_state = 1 OR wi_state = 2 OR wi_state = 3 ) " from the datastore has failed. The exception reported is: [ODBC S1002] invalid column number Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid. sql statement: SELECT * FROM admin_list_wi WHERE ci_domain_ref = 0 AND cikey = ? AND ( wi_state = 1 OR wi_state = 2 OR wi_state = 3 )"
When I try to use the BPEL control to list the activities I also receive an error, which I think is related:
"[javax.servlet.ServletException]
Cannot find work items.
An attempt to fetch the work items using the where condition "" from the datastore has failed. The exception reported is: [ODBC S1002] invalid column number
Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
sql statement: SELECT * FROM admin_list_wi WHERE ci_domain_ref = 0 ORDER BY wi_modify_date desc"
Has anyone found a solution to this error? There are a couple of developers in our team that has the same problem and also have a similar problem when trying to purge instances from the BPEL control. The problem started when we patched to 10.1.3.3.When you upgraded to 10.1.3.3 did you run the SQL scripts that modified the SOA suite schemas?
SOA_ORACLE_HOME/bpel/system/database/scripts/upgrade_10131_10133_oracle.sql
cheers
James -
The message is Win32 API error 2 ("The system cannot find the file specified") when calling ShellExecuteExW from AgWorkplace.shellExecute. However the export works. What is happening and how do I get rid of the error message?
Near the bottom of the Export Daialog, in the "Post-Processing" section make sure that the "After Export" box is not empty (which is invalid and causes the export operation to trip up). Use the drop-down to select a valid choice such as "Do Nothing".
-
While using premiere pro CS6 on a Mac Pro, the following error message continues to pop up: "[../../../../MediaFoundation/API/Inc/MediaManager/MediaVector.h-144] "
Can anyone help?
ThanksCorrection: It was not the footages problem. Only after a matter of time, I was able to import the footage like normal. Seemed to be a momentary problem. Odd and rather frustrating knowing that such problems can just arise at any point in time with relatively no explanation. Oh well!
-
Getting an error message while importing Thor.API.tcUtilityFactory in JSP.
Hi All,
I am getting below error message when i am importing Thor.API.tcUtilityFactory class in a JSP page as mentioned below
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page import="java.util.*" %>
<%@ page import="java.sql.*" %>
<%@ page import="java.io.IOException" %>
<%@ page import="java.io.PrintWriter" %>
<%@ page import="javax.servlet.ServletConfig" %>
<%@ page import="javax.servlet.ServletException" %>
<%@ page import="javax.servlet.http.HttpServlet" %>
<%@ page import="javax.servlet.http.HttpServletRequest" %>
<%@ page import="javax.servlet.http.HttpServletResponse" %>
<%@ page import="java.util.HashMap" %>
<%@ page import="java.util.Map" %>
<%@ page import="java.util.Properties" %>
<%@ page import="java.util.*" %>
<%@ page import="Thor.API.tcUtilityFactory" %>
<%@ page import="Thor.API.Operations.*" %>
<%@ page import="Thor.API.tcResultSet" %>
and below is the error message that i am getting
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 19 in the generated java fileOnly a type can be imported. Thor.API.tcUtilityFactory resolves to a package
An error occurred at line: 21 in the generated java fileOnly a type can be imported. Thor.API.tcResultSet resolves to a package
can any one give me suggestions how can i overcome this issue.
Thanks in Advance.
Siva Pokuri.Can anyone please give me suggestions for my problem in the above post.
Thanks
Siva Pokuri.
Maybe you are looking for
-
Keep trying to download and install flash player
My flash player quit working, so I upgraded it. A few days ago, it just dies. I can't find it anywhere on my computer. So I tried to download and install the newest flash player. It initializes and begins installing. Then stops and asks me to tu
-
How can I hide files on an external drive?
Hello. I'm not sure if my subject line is even accurate for what I'm trying to do. Basically, I have 2 external hard drives connected to my MacBook Pro. On one drive, I have about 65 GB of audio files that I use for my music work. On the other drive,
-
Error starting the Application Server and Deployment Tool
After installing the iPlanet Aplication Server with sp3 I get the following errors starting the Application Server and Deployment Tool. iAS Application Server ================ GXBindInit: GXBindBasic failed GXContextInit: GXBindInit failed 2 [26/Out/
-
Hey. I was just checking out Aperture and noticed its minimum requirements. So, it isn't supported on an iBook G4? This is silly. While I wish I had waited for the Intel update, my system still carries a 1.42 GHz PowerPC G4 with 1 GB of memory. The o
-
I manally rearrange my photos in an album, the order does not stick when I export to a folder in order to make a book. Also, if I have given a title to a photo, it does not seem to export with the other pictures in an album.