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. 剑指架构师系列-MySQL调优

    介绍MySQL的调优手段,主要包括慢日志查询分析与Explain查询分析SQL执行计划 1.MySQL优化 1.慢日志查询分析 首先需要对慢日志进行一些设置,如下: SHOW VARIABLES LI ...

  2. C语言中file文件指针概念及其操作 (转载)

    文件 文件的基本概念 所谓"文件"是指一组相关数据的有序集合. 这个数据集有一个名称,叫做文件名.实际上在前面的各章中我们已经多次使用了文件,例如源程序文件.目标文件.可执行文件. ...

  3. Ubuntu 16.04.4 LTS下安装JDK

    写在前面 为什么我又装jdk?今天顺手升级了我的双系统中的ubuntu,开始的时候用的图形化界面升级,后来你懂的,升级软件死锁了.. 用命令行也没有效果了,提示锁被占用,手残重启试试,彻底崩了...我 ...

  4. Arrays的二分查找

    二分查找也称为折半查找,是对有序元素查找的一种算法,在查找的过程中,不断的将搜索长度减半,因此效率不错.Java的JDK提供了二分法查找的算法,使用的方法是Arrays.binarySearch(). ...

  5. 使用Spring Boot开发Web项目

    前面两篇博客中我们简单介绍了Spring Boot项目的创建.并且也带小伙伴们来DIY了一个Spring Boot自动配置功能,那么这些东西说到底最终还是要回归到Web上才能体现出它的更大的价值,so ...

  6. python模块:网络协议和支持

    python模块:网络协议和支持 webbrowser 调用浏览器显示html文件 webbrowser.open('map.html') [webbrowser - Convenient Web-b ...

  7. 软件测试之BUG分析定位概述(QA如何分析定位BUG)

    你是否遇到这样的场景? QA发现问题后找到DEV说: 不好了,你的程序出问题了! DEV(追查半小时之后): 唉,是你们测试环境配置的问题 唉,是你们数据不一致 唉,是你们**程序版本不对 唉,是** ...

  8. [LaTex]插图

    1.不错的Latex参考网站 http://www.ctex.org/documents/latex/graphics/node120.html http://www.ctex.org/documen ...

  9. Gazebo與ROS版本說明

    使用哪种ROS / Gazebo版本的组合 介绍 本文档提供了有关将不同版本的ROS与不同版本的Gazebo结合使用的选项的概述.建议在安装Gazebo ROS包装之前阅读它.重要!简单的分析,快速和 ...

  10. [struts2学习笔记] 第四节 学着使用struts 2的tag标签

    本文地址:http://blog.csdn.net/sushengmiyan/article/details/40349201 官方文档: http://struts.apache.org/relea ...