R12 - Error 'Unable to process your transaction. The operating unit is either invalid or it cannot b
2014-10-02 17:28
561 查看
In this Document
Oracle Trading Community - Version 12.1.1 and later
Information in this document applies to any platform.
***Checked for Relevance 2-Jul-2013***
In R12.1.1, run
hz_cust_account_site_v2pub.create_cust_acct_site
and receive the following error message:
"ERROR-Unable to process your transaction. The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options.
The parameter for context used are from a valid Receivables responsibility and was tested with receivables API without problems. Now we are trying to create and update customers with TCA API, test with hz_cust_account_v2pub.create_cust_account API are fine,
now tests with hz_cust_account_site_v2pub.create_cust_acct_site shows error because is not possible to validate org_id."
Steps to reproduce:
1. Execute the following to set the org_id:
FND_GLOBAL.APPS_INITIALIZE(user_id, repsp_id, reps_app_id);
mo_global.set_policy_context('S', org_id);
2. Execute the following procedure:
p_cust_acct_site_rec.cust_account_id := 5050;
p_cust_acct_site_rec.party_site_id := 16051;
p_cust_acct_site_rec.created_by_module := 'SISTEMAS_POST';
p_cust_acct_site_rec.application_id := 222;
p_cust_acct_site_rec.status := 'A';
p_cust_acct_site_rec.org_id := 82;
hz_cust_account_site_v2pub.create_cust_acct_site
( p_init_msg_list => FND_API.G_TRUE,
p_cust_acct_site_rec => p_cust_acct_site_rec,
x_cust_acct_site_id => p_cust_acct_site_id,
x_return_status => p_return_status,
x_msg_count => p_msg_count,
x_msg_data => p_msg_data
);
Org context is not properly set.
To implement the solution, please execute the following steps:
1) Set the org context as follows:
Use the following queries to find responsibility id and user id:
a. Query to find responsibility id
select responsibility_id,responsibility_name
from fnd_responsibility_vl
where application_id = 222
and responsibility_name like '%&responsibility_name%';
b. Query to find user id
select user_id,user_name
from fnd_user
where user_name = '&user_name';
For example:
if resp_id = 50559 and user_id = 1318, then execute the following:
fnd_global.apps_initialize(user_id => 1318, resp_id => 50559, resp_appl_id => 222 );
mo_global.set_policy_context('S',<your_org_id>);
2) Run the API.
To discuss this information further with Oracle experts and industry peers, we encourage you to review, join or start a discussion in the My
Oracle Support Receivables Community.
To provide feedback on this note, click on the Rate this document icon at the top right corner of this note.
Symptoms |
Cause |
Solution |
Still Have Questions? |
References |
APPLIES TO:
Oracle Trading Community - Version 12.1.1 and laterInformation in this document applies to any platform.
***Checked for Relevance 2-Jul-2013***
SYMPTOMS
In R12.1.1, runhz_cust_account_site_v2pub.create_cust_acct_site
and receive the following error message:
"ERROR-Unable to process your transaction. The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options.
The parameter for context used are from a valid Receivables responsibility and was tested with receivables API without problems. Now we are trying to create and update customers with TCA API, test with hz_cust_account_v2pub.create_cust_account API are fine,
now tests with hz_cust_account_site_v2pub.create_cust_acct_site shows error because is not possible to validate org_id."
Steps to reproduce:
1. Execute the following to set the org_id:
FND_GLOBAL.APPS_INITIALIZE(user_id, repsp_id, reps_app_id);
mo_global.set_policy_context('S', org_id);
2. Execute the following procedure:
p_cust_acct_site_rec.cust_account_id := 5050;
p_cust_acct_site_rec.party_site_id := 16051;
p_cust_acct_site_rec.created_by_module := 'SISTEMAS_POST';
p_cust_acct_site_rec.application_id := 222;
p_cust_acct_site_rec.status := 'A';
p_cust_acct_site_rec.org_id := 82;
hz_cust_account_site_v2pub.create_cust_acct_site
( p_init_msg_list => FND_API.G_TRUE,
p_cust_acct_site_rec => p_cust_acct_site_rec,
x_cust_acct_site_id => p_cust_acct_site_id,
x_return_status => p_return_status,
x_msg_count => p_msg_count,
x_msg_data => p_msg_data
);
CAUSE
Org context is not properly set.
SOLUTION
To implement the solution, please execute the following steps:1) Set the org context as follows:
Use the following queries to find responsibility id and user id:
a. Query to find responsibility id
select responsibility_id,responsibility_name
from fnd_responsibility_vl
where application_id = 222
and responsibility_name like '%&responsibility_name%';
b. Query to find user id
select user_id,user_name
from fnd_user
where user_name = '&user_name';
For example:
if resp_id = 50559 and user_id = 1318, then execute the following:
fnd_global.apps_initialize(user_id => 1318, resp_id => 50559, resp_appl_id => 222 );
mo_global.set_policy_context('S',<your_org_id>);
2) Run the API.
Still Have Questions?
To discuss this information further with Oracle experts and industry peers, we encourage you to review, join or start a discussion in the My
Oracle Support Receivables Community.
To provide feedback on this note, click on the Rate this document icon at the top right corner of this note.
相关文章推荐
- R12 - Error 'Unable to process your transaction. The operating unit is either invalid or it cannot b
- R12 - Error 'Unable to process your transaction. The operating unit is either invalid or it cannot b
- Sharepoint Error : The URL "filename" is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web
- SharePoint 2010 Server Error: The URL "XXX" is invalid, it may refer to a nonexistent file or ...
- Unable to lock the administration directory (/var/lib/dpkg/),is another process using it?
- PHP错误The server encountered an internal error or misconfiguration and was unable to complete your re
- E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
- Unable to lock the administration directory (/var/lib/dpkg/),is another process using it?
- PhpStorm和WAMP配置调试参数,问题描述Error. Interpreter is not specified or invalid. Press “Fix” to edit your pro
- Unable to lock the administration directory (/var/lib/dpkg/),is another process using it?
- 安装Visual Studio 2010时提示"The location specified for the help content store is invalid or you do not have access to it".
- E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- Module 'starter' is not available! You either misspelled the module name or forgot to load it.
- Ubuntu终端出现Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- Failed to connect to database. This release of the GeoDatabase is either invalid or out of date
- Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
- windows上zend server安装 报The server encountered an internal error or misconfiguration and was unable to complete your request -解决方法 摘自网络