Thursday, August 20, 2009

Shell Script Error ^ " does not exist.irectory ". ^

I put bunch of XML load statements together in Shell script
adjava -mx128m -nojit oracle.jrad.tools.xml.importer.XMLImporter ./oracle/apps/ap/oie/entry/lines/webui/customizations/site/0/DetailsPG.xml -username apps -password apps -dbconnection "(DESCRIPTION= (ADDRESS=(PROTOCOL=tcp)(HOST=server.db.com)(PORT=9999)) (CONNECT_DATA=(SID=SID))) " -rootdir .
and some more bundled together..

This script errored as

^ " does not exist.irectory ". ^

Strange error indeed...

I opened the script file to make sure there are no extra spaces etc. Everything looked fine.
I closed vi and ran it again. Still same error.

Did vi on the script.
This time I noticed [dos] in the vi editor opening line at the end where it shows file name,
number of lines etc when you open it fresh.

That clicked. I had ftp'ed the file from desktop to linux.

Ran DOS2UNIX on the shell and executed script.

And bingo ! the script ran smooth.

Monday, August 17, 2009

My Metalink Bookmarks



OWF H Diagnostics and Solutions

How To Call a PL/SQL Stored Procedure from an Application Module and Access the Returned Data from a Java Application

Troubleshooting JDeveloper setup for Oracle Applications

How To Customise Oracle Workflow Template

How to purge e-mail notifications from the workflow queue so the e-mail is not sent

How to Diagnose a Punchout Issue

How To Reset a Document To Incomplete/Requires Reapproval For Isolated Cases

Bulkload Errors- This Operating Unit (Buyer) Does Not Exist Or Does Not Exist In Your Business Group

Impact of R12 Design in PO Accounting

How Can I Turn Off Workflow Mailer Notifications For Some Events?

Internet Expenses Troubleshooting Guide

Purchasing Encumbrance Accounting Concepts and Process Model

Purchasing Setup: Encumbrance Accounting

11i: A Guide to Understanding and Implementing SSL for Oracle Applications

TROUBLESHOOTING FOR AUTOCREATE FREQUENTLY ASKED QUESTIONS

Custom Concurrent Host Program Can Not be Executed

Payables Open Interface and Expense Report Import Setup and Usage Guide

General Oracle XML Gateway FAQ

Basic Setup to Check Configuring Punchout in iP

Upgrading to J2SE 1.4.2 with Oracle Applications 11i

How to Register Sample Java Concurrent Program

Email Notification URL Link sent by the OTL Approval Process needs to be disabled

Internet Expenses Knowledge Browser Product Page

Response Emails Are Being Copied And Not Moved To Discard And Process Folders

Oracle Application Framework Development FAQ Release 11i (11.5.10)

SSLInitFailureException Occurs While Attempting To Download Supplier Punchout Definition

Troubleshooting Document For Build Default Approval List Failure

How To Get Log Files In iProcurement

How To Delete the Approve, Reject, and Request More Information Buttons from a Workflow E-mail Notificatin That Requires Response

A SAMPLE JAVA CONCURRENT PROGRAM

Best Practices for Securing the E-Business Suite

Business Flow for Flexfields - Modify existing structure code

Compiling A Flexfield from the Command Line

Cost Based Optimizer (CBO) Overview

DEFINITION OF TERMS RELATING TO THE MSOBA TO MULTI-ORG MIGRATION

Discoverer 10g with Oracle Applications 11i

Discoverer 4i with Oracle Applications 11i

ETRM DIRECT ACCESS DOCUMENT

Enhancing Oracle Applications Concurrent Processing

FAQ (Flexfields)

FAQ - Multiple Organizations Architechure (Multi-Org)

FF: enabling flexfield security

FLEXFIELD: Validate on Server Profile Option

General Ledger Flexfield FAQ

How to Setup the Bulk Loader to Load XML and Tab-Delimited TXT files

How to determine to which Flexfield(s) a Value Set is assigned?

Oracle Applications AD Utilities

Oracle Applications Flexfields Frequently Asked Questions (FAQ)

Oracle Customers Online Manuals and eTRMs

Purpose of MO: Security Profile and MO: Default Operating Unit Profile Options In Applications 11i

Query Handling and Tuning Overview

Rule Based Optimizer is to be Desupported in Oracle10i

SQL Parsing Flow Diagram

Setting Up Multiple Organizations in Oracle HRMS

Starting Oracle Workflow Notification Mailer Will Send Unwanted Notifications To Users

What Is The Functionality Of The Profile Option : Flexfields:Open Key Window

Workflow FAQ - All Versions

Thursday, August 6, 2009

Workflow AdHoc Role Issue

I was creating a ad-hoc role for list of users. Somehow this list of users got blanks between and the WF core routine "wf_directory.createadhocrole" would not complete. While parsing the string for users, it goes to infinite loop. So had to parse the user list to make sure, no blanks are passed.

For example, if the users list is 'A,,B,C,D,,', the routine would hang.

Put together a routine to remove extra commas and used this routine to make the user string good to go..


SET SERVEROUT ON
SET TIME ON

DECLARE

TYPE VARCHAR2_TABLE IS TABLE OF VARCHAR2(32767) INDEX BY BINARY_INTEGER;
lv_users_tab         VARCHAR2_TABLE;
lv_users_pruned_list VARCHAR2(4000);
ln_tablen            INTEGER;

PROCEDURE delimstring_to_table
( p_delimstring IN  VARCHAR2
 ,p_table       OUT VARCHAR2_TABLE
 ,p_nfields     OUT INTEGER
 ,p_delim       IN  VARCHAR2 DEFAULT ','
)
IS
 v_string   VARCHAR2(32767) := p_delimstring;
 v_nfields  PLS_INTEGER := 0;
 v_table    varchar2_table;
 v_delimpos PLS_INTEGER := INSTR(p_delimstring, p_delim);
 v_delimlen PLS_INTEGER := LENGTH(p_delim);
BEGIN

 DBMS_OUTPUT.PUT_LINE('==================START OF DELIMS==========');
 WHILE v_delimpos > 0
  LOOP
   IF TRIM(SUBSTR(v_string,1,v_delimpos-1)) IS NOT NULL THEN
    v_nfields := v_nfields+1;
    v_table(v_nfields) := SUBSTR(v_string,1,v_delimpos-1);
    DBMS_OUTPUT.PUT_LINE('v_table(v_nfields) ' || v_table(v_nfields));
    DBMS_OUTPUT.PUT_LINE('v_string  ' || v_string );
    DBMS_OUTPUT.PUT_LINE('v_nfields  ' || v_nfields );
   END IF;
   v_string := SUBSTR(v_string,v_delimpos+v_delimlen);
   v_delimpos := INSTR(v_string, p_delim);
  END LOOP;
 IF TRIM(v_string) IS NOT NULL THEN
  v_table(v_nfields) := v_string;
 END IF;
 p_table := v_table;
 p_nfields := v_nfields;
 DBMS_OUTPUT.PUT_LINE('==================END OF DELIMS==========');
END delimstring_to_table;

BEGIN
 DBMS_OUTPUT.ENABLE(20000000);

 ln_tablen            := NULL;
 lv_users_pruned_list := ',, ,, USERA,, ,,,,, USERB, USERC,D,,,,';

 DBMS_OUTPUT.PUT_LINE('ORIGINAL LIST ' || lv_users_pruned_list);
 delimstring_to_table ( p_delimstring   => lv_users_pruned_list
                       ,p_table         => lv_users_tab
                       ,p_nfields       => ln_tablen
                       ,p_delim         => ',');
 lv_users_pruned_list := NULL;
 DBMS_OUTPUT.PUT_LINE('ln_tablen ' || ln_tablen);
 FOR i IN 1 .. ln_tablen LOOP
  DBMS_OUTPUT.PUT_LINE(' COUNTER ' || I);
  DBMS_OUTPUT.PUT_LINE(' lv_users_tab(i) ' || lv_users_tab(i));
  IF lv_users_pruned_list IS NULL THEN
   lv_users_pruned_list := lv_users_tab(i);
  ELSE
   lv_users_pruned_list := lv_users_pruned_list ||','|| lv_users_tab(i);
  END IF;
 END LOOP;
 DBMS_OUTPUT.PUT_LINE('PRUNED LIST ' || lv_users_pruned_list);
END;
/

Interesting Issue in PO Accouting..

Found this issue today when was researching PO/Requisition Accounting..

1. Created requisition using iProc, and interestingly the accounting string had the disabled value for region. How does it allow that? There is no customization on accounting except for Projects, and this was not Project requisition.
2. Requisition is AutoCreated into a PO
3. The requisition Account gets copied to PO Charge Account as it is, despite region value being disabled
4. PO Form threw up error when I tried to change the account string, this time it showed that the region value was not active. Don't know how it got copied in the first place.

Have not checked on metalink yet...