In this Document

  Symptoms
  Cause
  Solution
  Still Have Questions?
  References

APPLIES TO:

Oracle Trading Community - Version 12.1.1 and later

Information in this document applies to any platform.

***Checked for Relevance 2-Jul-2013***

SYMPTOMS

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

);

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的更多相关文章

  1. Android Studio: Failed to sync Gradle project 'xxx' Error:Unable to start the daemon process: could not reserve enough space for object heap.

    创建项目的时候报错: Failed to sync Gradle project 'xxx' Error:Unable to start the daemon process: could not r ...

  2. Android Studio新建了一个项目提示Error:Unable to start the daemon process

    提示如下错误:

  3. android studio Error:Unable to start the daemon process【转】

    本文转载自:https://blog.csdn.net/dhx20022889/article/details/44919905 我在用android studio 做一个小项目,在家里的mac电脑中 ...

  4. VS2017 Git failed with a fatal error. error: open(".vs/xxxxxx/v15/Server/sqlite3/db.lock"): Permission denied fatal: Unable to process path .vs/xxxxxx/v15/Server/sqlite3/db.lock

    具体错误信息:Git failed with a fatal error. error: open(".vs/xxxxxx/v15/Server/sqlite3/db.lock") ...

  5. git error Another git process seems to be running in this repository

    How to fix error Another git process seems to be running in this repository When you use Git, you se ...

  6. 我的Android进阶之旅------>解决Error:Unable to find method 'org.gradle.api.internal.project.ProjectInternal.g

    错误描述 今天在Github上面下载了一份代码,然后导入到Android Studio中直接报了如下图所示的错误: 错误描述如下: Error: Unable to find method 'org. ...

  7. ERROR: Unable to globalize '/usr/local/NONE/etc/php-fpm.d/*.conf' (ret = 2) from /usr/local/etc/php-fpm.conf at line WARNING: Nothing matches the include pattern '/usr/local/php7/etc/php-fpm.d/*.conf'

    Building from source is not easy if something is a bit different, and I had a hard time with some di ...

  8. Android Error:Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;'.

    问题:Error:Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List ...

  9. ERROR: Unable to clean up existing run directory

    Project Navigator - Launching PlanAhead gives: ERROR: Unable to clean up existing run directory   De ...

随机推荐

  1. Web API对application/json内容类型的CORS支持

    假设有一简单架构分为前后两部分,其一是Angular构成的前端页面站点,另一个则是通过ASP.NET Web API搭建的后端服务站点.两个站点因为分别布署,所有会有CORS(Cross-Origin ...

  2. Bootstrap3 表格-紧缩表格

    通过添加 .table-condensed 类可以让表格更加紧凑,单元格中的内补(padding)均会减半. <table class="table table-condensed&q ...

  3. MySQL系列教程(三)

    mySQL集群(cluster) 这一章,我根本不打算写,因为mySQL 的 官方Cluster方案基本上都是bullshit,尤其是它的官方集群方案,竟然都无人维护了,而且mySQL集群完全可以用眼 ...

  4. ICL Auto Vectorization

    简介 此文简单介绍如何使用intel c++编译器实现向量化加速. 全文如下安排: base : 待优化的源代码. vectorization : 第一个向量化版本. aligned : 内存对其对向 ...

  5. Mac上如何完美的转换epub至mobi供kindle观看

    网上有很多书籍资源的格式都是epub(我们不谈及pdf格式了,你懂得-),epub格式是无法直接在kindle上观赏的,除非你越狱kinde后,安装扩展插件 我们可以将epub转换为mobi格式,网上 ...

  6. Android N(7.0) 被美翻的新特性!

    Tamic 专注移动开发!更多文章请关注 Csdn: http://blog.csdn.net/sk719887916/article/details/52612444 $ http://www.ji ...

  7. Python Tkinter小试

    前两天看到一篇关于Python使用Tkinter 的博文,写的很好.就拿来研究了一下,改了改.现分享如下: 参考 代码 # coding:utf8 # python2.73 winxp ''''' 天 ...

  8. Spring+EhCache缓存实例(详细讲解+源码下载)

    一.ehcahe的介绍 EhCache 是一个纯Java的进程内缓存框架,具有快速.精干等特点,是Hibernate中默认的CacheProvider.Ehcache是一种广泛使用的开源Java分布式 ...

  9. SQLite Update 语句(http://www.w3cschool.cc/sqlite/sqlite-update.html)

    SQLite Update 语句 SQLite 的 UPDATE 查询用于修改表中已有的记录.可以使用带有 WHERE 子句的 UPDATE 查询来更新选定行,否则所有的行都会被更新. 语法 带有 W ...

  10. FFmpeg的HEVC解码器源代码简单分析:解析器(Parser)部分

    ===================================================== HEVC源代码分析文章列表: [解码 -libavcodec HEVC 解码器] FFmpe ...