Error while creating Custom Defined Functions in Essbase

<p>Hi All,<br>I am trying to create CDF(Custom Defined Functions) in Essbase. Iwant to create a function which take list of child member andreturn the first child. For this, i have created a java file called"ChildAccess.java" which contains the following code:<br>public class ChildAccess<br>{<br>public static char GetFirstMember(char [] members)<br>{<br>return members[0];<br>}<br>}<br>I have compiled and made jar file called"ChildAccess.jar" and pasted it at"ARBORPATH/java/udf". Then i restarted the Essbase Serverand run the following MaxL command to register the function<br>create or replace function '@ChildAccess' as<br>'ChildAccess.GetFirstMember'<br>spec '@ChildAccess(memberRange)'<br>comment 'adds list of input members'.<br>Till here i am not getting any error but when i am using thisfunction in my calc script as given below<br><br>FIX(@ChildAccess(@CHILDREN("Abc")))<br><br>it gives the following error<br>"Error:1200414 Error parsing formula for [FIX STATEMENT]<br>(line 2)"argument[1] may not have size[6] in function[@CHILDREN]"<br>NOTE: The SIZE[6] is giving the no. of child in member"ABC".<br><br>Thanks in Advance<br>Arpit</p>

If you want to use the CDF in a FIX statement you need to make sure that it returns a member name rather than a number:<BR><i><BR>public class ChildAccess<BR>{<BR>    public static String GetFirstMember(String[] members)<BR>    {<BR>        return members[0];<BR>    }<BR>}<BR></i><BR>I prefer to define the function against a specific application rather than globally because you only need to restart the application in order to pick-up any modifications to the .jar file. So the MaxL function definition would be:<BR><i><BR>    create or replace function appname.'@_GETFIRSTMEMBER' as<BR>        'ChildAccess.GetFirstMember(String[])';<BR></i><BR>and in the calculation script the FIX statement would become:<BR><i><BR>    fix ( @member( @_GetFirstMember( @name( @children( "Abc" ) ) ) ) )<BR></i><BR>This looks a little messy so you can use a macro to simplify it:<BR><i><BR>    create or replace macro appname.'@GETFIRSTMEMBER'(single) <BR>        as '@member( @_GETFIRSTMEMBER( @name( @@1 ) ) )' <BR>        SPEC "@GETFIRSTMEMBER(memberRange)";<BR></i><BR>and then the FIX statement could be written:<BR><i><BR>    fix( @getfirstmember( @children( "PRODUCT" ) ) )<BR></i>

Similar Messages

  • Error while creating customer account sites from backend

    I am creating Customer Account Sites using the TCA API from Toad.
    I am getting the following error
    The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options.
    The Operating unit has been defined.
    I am using the following code:
    DECLARE
    p_cust_acct_site_rec hz_cust_account_site_v2pub.cust_acct_site_rec_type;
    x_return_status VARCHAR2(2000);
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(2000);
    x_cust_acct_site_id NUMBER;
    BEGIN
    p_cust_acct_site_rec.cust_account_id := 9462;
    p_cust_acct_site_rec.party_site_id := 5473;
    --p_cust_acct_site_rec.language := 'US';
    p_cust_acct_site_rec.org_id := 126;
    p_cust_acct_site_rec.created_by_module := 'TCA-EXAMPLE';
    hz_cust_account_site_v2pub.create_cust_acct_site(
    'T',
    p_cust_acct_site_rec,
    x_cust_acct_site_id,
    x_return_status,
    x_msg_count,
    x_msg_data);
    dbms_output.put_line(SubStr('x_return_status =
    '||x_return_status,1,255));
    dbms_output.put_line('x_msg_count = '||TO_CHAR(x_msg_count));
    dbms_output.put_line(SubStr('x_msg_data = '||x_msg_data,1,255));
    IF x_msg_count >1 THEN
    FOR I IN 1..x_msg_count
    LOOP
    dbms_output.put_line(I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded =>
    FND_API.G_FALSE ), 1, 255));
    END LOOP;
    END IF;
    END;
    Thanks and Regards,
    K tanna

    Duplicate post.
    Error while creating customer account sites
    Error while creating customer account sites

  • Error while creating customer

    While creating customer from AR responsibility, I am getting an error while clicking "details" tab for "Ship to"
    error I am getting are
    1. The data that defines the flexfield on this field may be inconsistent. Inform your system administrator that the function: KeyFlexfieldDefinitionFactory.getStructureNumber could not find the structure definition for the flexfield specified by Application = SQLGL, Code = GL# and Structure number =
    2. Application: FND, Message Name: FND_GENERIC_MESSAGE. Tokens: MESSAGE = java.sql.SQLException: ORA-20001: Operating unit -1 does not exist in the target database. ORA-06512: at "APPS.APP_EXCEPTION", line 72 ORA-06512: at "APPS.GL_GLOBAL", line 65 ORA-06512: at line 1 ;
    any idea why is it coming, I checked Operating unit profile option i.e MO: Op Unit and MO: Sec. , all are fine.

    The error is occuring because Oracle is trying to validate/set a DFF.
    Check the DFF attached to the customer entity, address entity or site use entity.
    Especially look at the value sets attached to the DFF.
    Look at the value set definition and the default value for the field.
    Hope this helps,
    Sandeep Gandhi

  • Getting error while using user-defined function in transform activity

    Hi
    I designed one user-defined function to add 2 nos following the
    link:http://docs.oracle.com/cd/E16764_01/integration.1111/e10224/bp_xslt_mpr.htm .
    Under this i followed the portion creating user-defined function.
    After deploying,i'm getting an error stating:"<summary>
    An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc("xsl/Transformation_1.xsl", $inputVariable.payload).
    </summary>
    <detail>
    XPath expression failed to execute.
    An error occurs while processing the XPath expression; the expression is ora:doXSLTransformForDoc("xsl/Transformation_1.xsl", $inputVariable.payload).
    The XPath expression failed to execute; the reason was: javax.xml.transform.TransformerException: oramds:/deployed-composites/PO/HelloWorld_rev1.0/xsl/Transformation_1.xsl<Line 6, Column 104>: XML-22045: (Error) Extension function error: Class not found '
         Missing class: addition.add
    can anybody help me in this regard     
    Thanks
    Avinash

    Did you copy the jar file of your java classes to MIDDLEWARE_Home/user_projects/domains/soa_domain/lib?
    http://georgie-soablog.blogspot.com/2010/06/soasuite-11g-implement-user-defined.html
    hope this helps

  • Error while creating customer master XD01

    i have created own account group and assigned external number range when am creating customer in xd01 am getting error in partner tab the SP,SH,BP,PY the no is blank and when am trying to save its gives error document is incomplete the  error   Message no. F2643
    Diagnosis
    The account group of the current customer is not defined for the required partner usage.
    where as when am assining internal number range its working fine kindly help
    Thanx

    Hi Mukesh
    Please check the following again,
    IMG > Logistic > SD > Basic functions > Partner determination > Customer master
    Define the Partner functions. If you are defining new then specify the "PARTNER TYPE" for each Partner function.
    - Define Account group. You can use existing one (0001-sod-to-party) or you can copy it or create new.
    - Define your Partner determination procedure.
    - Assign the required Partner functions (SP,SH,PY and BP are mandatory) to your Account group, so that they will be permitted for your Account group.
    - Assign the "Partner functions" to your new "Procedure ". Here you specify which are "mandatory" and which are "not changeable".
    - Assign the "Account group" to your new "Procedure".
    Now, go to XD01,enter your Account group,External number,company code,Sale area and proceed.
    If you are finding problem then,fill up all your data (general data, company code data), go to sales area data, fill up sales ,shipping and billing document tab and save it.
    Next, go to XD02, sales area data >partner function tab, here fill up the places for respective Partner functions.

  • Error while creating a simple function, procedure or triger in Oracle8i Lite

    Hi,
    I have Oracle8i Lite release 4.0.
    While creating a simple proceudre/function/trigger on the database, it's throwing the following error:
    create or replace function test return number is
    ERROR at line 1:
    OCA-30021: error preparing/executing SQL statement
    [POL-5228] syntax error
    Here is my sample code.
    create or replace function test return number is
    begin
    return 0;
    end;
    Tried to create the same function in the user SYSTEM too but got the same error message.
    Thanks in advance for the soluton.
    null

    I just started with 8i Lite, but as far as I know 8i Lite does not support PL/SQL code.
    So you have to write your triggers and stored procedures in Java.
    Ciao

  • How to resolve the error while using user defined function.

    EPN Assembly file
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:osgi="http://www.springframework.org/schema/osgi"
    xmlns:wlevs="http://www.bea.com/ns/wlevs/spring"
    xmlns:jdbc="http://www.oracle.com/ns/ocep/jdbc"
    xmlns:spatial="http://www.oracle.com/ns/ocep/spatial"
    xsi:schemaLocation="
    http://www.springframework.org/schema/beans
    http://www.springframework.org/schema/beans/spring-beans.xsd
    http://www.springframework.org/schema/osgi
    http://www.springframework.org/schema/osgi/spring-osgi.xsd
    http://www.bea.com/ns/wlevs/spring
    http://www.bea.com/ns/wlevs/spring/spring-wlevs-v11_1_1_3.xsd
    http://www.oracle.com/ns/ocep/jdbc
    http://www.oracle.com/ns/ocep/jdbc/ocep-jdbc.xsd
    http://www.oracle.com/ns/ocep/spatial
    http://www.oracle.com/ns/ocep/spatial/ocep-spatial.xsd">
         <wlevs:event-type-repository>
              <wlevs:event-type type-name="TestEvent">
                   <wlevs:class>com.bea.wlevs.event.example.FunctionCEP.TestEvent</wlevs:class>
              </wlevs:event-type>
         </wlevs:event-type-repository>
         <wlevs:adapter id="InputAdapter"
              class="com.bea.wlevs.adapter.example.FunctionCEP.InputAdapter">
              <wlevs:listener ref="inputStream" />
         </wlevs:adapter>
         <wlevs:channel id="inputStream" event-type="TestEvent">
              <wlevs:listener ref="processor" />
         </wlevs:channel>
         <wlevs:processor id="processor">
              <wlevs:listener ref="outputStream" />
              <wlevs:function function-name="sum_fxn" exec-method="execute">
              <bean>com.bea.wlevs.example.FunctionCEP.TestFunction</bean>
              </wlevs:function>
         </wlevs:processor>
         <wlevs:channel id="outputStream" event-type="TestEvent">
              <wlevs:listener ref="bean" />
         </wlevs:channel>
         <bean id="bean" class="com.bea.wlevs.example.FunctionCEP.OutputBean">
         </bean>
    </beans>
    Event class
    package com.bea.wlevs.event.example.FunctionCEP;
    public class TestEvent {
         private int num_1;
         private int num_2;
         private int sum_num;
         public int getSum_num() {
              return sum_num;
         public void setSum_num(int sumNum) {
              sum_num = sumNum;
         public int getNum_1() {
              return num_1;
         public void setNum_1(int num_1) {
              this.num_1 = num_1;
         public int getNum_2() {
              return num_2;
         public void setNum_2(int num_2) {
              this.num_2 = num_2;
    Adapter class
    package com.bea.wlevs.adapter.example.FunctionCEP;
    import com.bea.wlevs.ede.api.RunnableBean;
    import com.bea.wlevs.ede.api.StreamSender;
    import com.bea.wlevs.ede.api.StreamSource;
    import com.bea.wlevs.event.example.FunctionCEP.TestEvent;
    public class InputAdapter implements RunnableBean, StreamSource {
    private StreamSender eventSender;
    public InputAdapter() {
    super();
    public void run() {
         generateMessage();
    private void generateMessage() {
         TestEvent event = new TestEvent();
         event.setNum_1(10);
         event.setNum_2(20);
         eventSender.sendInsertEvent(event);
    public void setEventSender(StreamSender sender) {
    eventSender = sender;
    public synchronized void suspend() {
    Output Bean class
    package com.bea.wlevs.example.FunctionCEP;
    import com.bea.wlevs.ede.api.StreamSink;
    import com.bea.wlevs.event.example.FunctionCEP.TestEvent;
    import com.bea.wlevs.util.Service;
    public class OutputBean implements StreamSink {
         public void onInsertEvent(Object event) {
              System.out.println("In Output Bean");
              TestEvent event1 = new TestEvent();
              System.out.println("Num_1 is :: " + event1.getNum_1());
              System.out.println("Num_2 is :: " +event1.getNum_2());
              System.out.println("Sum of the numbers is :: " +event1.getSum_num());
    Function Class
    package com.bea.wlevs.example.FunctionCEP;
    public class TestFunction {
         public Object execute(int num_1, int num_2)
              return (num_1 + num_2);
    config.xml file
    <?xml version="1.0" encoding="UTF-8"?>
    <wlevs:config xmlns:wlevs="http://www.bea.com/ns/wlevs/config/application"
    xmlns:jdbc="http://www.oracle.com/ns/ocep/config/jdbc">
         <processor>
              <name>processor</name>
                   <rules>
                   <view id="v1" schema="num_1 num_2">
                        <![CDATA[
                             select num_1, num_2 from inputStream     
                        ]]>
                   </view>
                   <view id="v2" schema="num_1 num_2">
                   <![CDATA[
                   select sum_fxn(num_1,num_2), num_2 from inputStream // I am getting error when i am trying to call this function
                   ]]>
                   </view>
                   <query id="q1">
                        <![CDATA[
                             select from v2[now] as num_2*     // Showing error while accessing the view also               ]]>
                   </query>
              </rules>
         </processor>
    </wlevs:config>
    Error I am getting is :
    Invalid statement: "select >>sum_fxn<<(num_1,num_2),age from inputStream"
    Description: Invalid call to function or constructor: sum_fxn
    Cause: Probable causes are: Function name sum_fxn(int,int) provided is invalid, or arguments are of
    the wrong type., or Error while handling member access to complex type. Constructor sum_fxn of type
    sum_fxn not found. or Probable causes are: Function name sum_fxn(int,int) provided is invalid, or
    arguments are of the wrong type., or Error while handling member access to complex type.
    Constructor sum_fxn of type sum_fxn not found.
    Action: Verify function or constructor for complex type exists, is not ambiguous, and has the correct
    number of parameters.
    I have made a user defined function in a java class and configured this function in the EPN assembly file under the processor tag.
    But when i am trying to access the function in the config.xml file , it is giving me an error in the query.
    Please provide urgent help that how to write the exact query.

    Hi,
    In the EPN Assembly file use
    <bean class="com.bea.wlevs.example.FunctionCEP.TestFunction"/>
    instead of
    <bean>com.bea.wlevs.example.FunctionCEP.TestFunction</bean>
    Best Regards,
    Sandeep

  • Error while creating customer master data

    dear sir,
    i have created customer master and maintined all level general,compnay code and sales level data.and again deleted all areas thru t-code XD06.and thru se16n i have deleted the entires in kna1 knb1 knvv table
      again while creating one with same name showing error while maintaing sales level data
    Check: Table KNA1 does not exist, table KNVI does
    Message no. F2061
    plz help how do i rectify this problem and maintain the same cutomer no (external) again.
    regards,
    Debesh

    Hi,
    you did the wrong thing, don't remove the entries from standard table like KNA1, KNVV etc, SAP will maintained the entries in lot of tables same time.
    XD06 is used to set delete indicator, after wards you may create new customer master, if any problem for name you may change the name field as 'delete' for old customer.
    Now to solve your issue, i believe you need to first save the entries with maintainace of general data (KNA1) and then use XD02 to maintain the Sales area data, pl try this way it should work.
    If this way will not work, pl maintain the tax indicator in table KNVI manually to solve the issue.
    regards
    Vivek.
    Edited by: Vievk Vardhan on Dec 7, 2009 6:41 PM

  • Error while creating customer account sites

    I am creating Customer Account Sites using the TCA API from Toad.
    I am getting the following error
    The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options.
    The Operating unit has been defined.
    I am using the following code:
    DECLARE
    p_cust_acct_site_rec hz_cust_account_site_v2pub.cust_acct_site_rec_type;
    x_return_status VARCHAR2(2000);
    x_msg_count NUMBER;
    x_msg_data VARCHAR2(2000);
    x_cust_acct_site_id NUMBER;
    BEGIN
    p_cust_acct_site_rec.cust_account_id := 9462;
    p_cust_acct_site_rec.party_site_id := 5473;
    --p_cust_acct_site_rec.language := 'US';
    p_cust_acct_site_rec.org_id := 126;
    p_cust_acct_site_rec.created_by_module := 'TCA-EXAMPLE';
    hz_cust_account_site_v2pub.create_cust_acct_site(
    'T',
    p_cust_acct_site_rec,
    x_cust_acct_site_id,
    x_return_status,
    x_msg_count,
    x_msg_data);
    dbms_output.put_line(SubStr('x_return_status =
    '||x_return_status,1,255));
    dbms_output.put_line('x_msg_count = '||TO_CHAR(x_msg_count));
    dbms_output.put_line(SubStr('x_msg_data = '||x_msg_data,1,255));
    IF x_msg_count >1 THEN
    FOR I IN 1..x_msg_count
    LOOP
    dbms_output.put_line(I||'. '||SubStr(FND_MSG_PUB.Get(p_encoded =>
    FND_API.G_FALSE ), 1, 255));
    END LOOP;
    END IF;
    END;
    Thanks and Regards,
    K tanna

    Hi,
    Please mention the application release along with the database version and OS.
    Please see if ('Change PO API' Errors with 'Multi-Org profile options' as Org Context Is Not Set Correctly [ID 732671.1]) helps.
    More details about setting the application context can be found in these docs.
    Note: 209185.1 - How To Set the Applications Context (FND_GLOBAL.APPS_INITIALIZE)
    Note: 420787.1 - Oracle Applications Multiple Organizations Access Control for Custom Code
    Note: 462383.1 - SQL Queries and Multi-Org Architecture in Release 12
    Note: 165042.1 - FAQ - Multiple Organizations Architechure (Multi-Org)
    Thanks,
    Hussein

  • Error while creating webservice from function module in ECC

    Hi
    while creating a web service out of a function module in ECC, in the configure service section we get a message saying ' Remember that the service does not have any runtime configuration and therefore cannot be used. Create the Web service configuration in the NetWeaver Admninistrator (transaction WSADMIN2).'
    instead of check box 'release for runtime'.
    Our ECC at release 7 patch level 22.
    Checked in SCICM, SICF teh service and the folder are active.
    Please suggest if we are missing on anything
    Regards
    Kumar

    In new version on ECC, the runtime configurations needs to be performed in transaction SOAMANGER.
    On executing the transaction, it opens a browser. The important configurations to be performed are:
    1. Configure J2EE server and host. You can choose to provide the ECC server and host
    2. Administration of the service in "Single Service Administration". The navigation path may differ depending of the ECC versions. But it is related to administration of the services.
    Once done, check the WSDL generated.
    Use this WSDL in the NWDS.
    Regards,
    Sharath

  • Error while executing User defined function

    I am getting the follower error when i try to exceute the following function.
    [Error] Script lines: 0-0 --------------------------ExecuteCallableQuery: Execute: ORA-06550: line 2, column 8:
    PLS-00201: identifier 'DWADTEST.CHECKABI' must be declared
    ORA-06550: line 2, column 2:
    PL/SQL: Statement ignored
    CREATE OR REPLACE FUNCTION "DWADTEST"."CheckABI" ( columnname IN VARCHAR2, columnvalue IN VARCHAR2, ABINumber IN VARCHAR2)
    RETURN VARCHAR2
    IS
    return_value VARCHAR2 (25) := NULL;
    tablevalue VARCHAR2 (25) := NULL;
    BEGIN
    SELECT columnname INTO tablevalue FROM D_BUSI_DEMOG WHERE ABINUM = ABINumber;
    IF
    columnvalue = NULL
    THEN
    return_value := tablevalue;
    ELSE
    return_value := columnvalue;
    END IF;
    RETURN return_value;
    END;
    Can anybody help me?

    I removed all inside code and try to run it. But still it is giving same error message.
    [Error] Script lines: 0-0 --------------------------ExecuteCallableQuery: Execute: ORA-06550: line 2, column 8:
    PLS-00201: identifier 'DWADTEST.CHECKABI' must be declared
    ORA-06550: line 2, column 2:
    PL/SQL: Statement ignored
    CREATE OR REPLACE FUNCTION "DWADTEST"."CheckABI" ( columnname IN VARCHAR2) RETURN VARCHAR2
    IS
    BEGIN
    RETURN 'return_value';
    END;

  • Error while using user defined function in reports

    Hi,
    When I use the below user defined function in oracle reports I got the wrong number of arguments error
    select test_function(id,a_number,v_date-14,b_number) from dual;
    If I remove -14 from the argument it works. But iIneed to subtract 14 days from the date.
    Thanks for your help.

    select test_function(id,a_number,v_date-14,b_number) from dual;
    you have to give the command like this to_date(v_date,'dd-mon-yyyy')-14
    because the v_Date you choose in the parameter form is not having the corrent date format
    the format dd-mon-yyyy is the format in which v_date is passed by the user.

  • Error While Creating Customer Account Site.

    Hi ,
    I am creating a customer thru API's.
    I am succesffuly creating location,party,party site,party site use,customer account.But unable to create customer account site. I am getting the below error:
    Unable to process your transaction. The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options.
    Could anyone help me to resolve out this issue.

    Hi,
    What is the application release?
    Did you set the Application/Multi-org context properly before using this API?
    Note: 732671.1 - 'Change PO API' Errors with 'Multi-Org profile options' as Org Context Is Not Set Correctly
    Note: 420787.1 - Oracle Applications Multiple Organizations Access Control for Custom Code
    Note: 209185.1 - How To Set the Applications Context (FND_GLOBAL.APPS_INITIALIZE)
    Regards,
    Hussein

  • Getting error while creating Customer Invoice Request via Web Service

    Hello,
    I am trying to create customer invoice request via web service.
    But I am getting the error message "No scheme configuration found for scheme '&CIRHP&' " continuously.
    It is working fine in reference tenant. But using the same payload its giving error in another tenant.
    Can you please tell me what is the root cause for this error?
    I have included the payload used in the prototype tenant(Payload.txt) and screen shot of the error.
    Thanks and Regards,
    Sriram

    Hi,
    Check the WSDL file is wellformed or not..You can test it using tools like XML Spy.
    Might be the attribute tag is missing something..If WSDL file is correct then, create proxy by selecting the WSDL file from local machine..
    Regards,
    Sunitha

  • Error while creating custom catalog in ATG 10.0.3

    Hi All,
    I am getting the below error while adding the Catalog Folder and during adding a new Catalog.
    CONTAINER:atg.repository.RepositoryException; SOURCE:java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("ATG_CORE"."DCS_GEN_FOL_CAT"."ASSET_VERSION")
         at atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:6816)
         at atg.adapter.gsa.GSARepository.addItem(GSARepository.java:1019)
         at atg.ui.repository.model.RepositoryAgentImpl.addRepositoryItem(RepositoryAgentImpl.java:3087)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at atg.security.proxy.UserSessionProxy$SessionSkeletonHandler.invoke(UserSessionProxy.java:251)
         at atg.rmi.context.ContextualSkeletonImpl.invoke(ContextualSkeletonImpl.java:105)
         at sun.reflect.GeneratedMethodAccessor307.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
         at sun.rmi.transport.Transport$1.run(Transport.java:159)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
         at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
         at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.sql.SQLIntegrityConstraintViolationException: ORA-01400: cannot insert NULL into ("ATG_CORE"."DCS_GEN_FOL_CAT"."ASSET_VERSION")
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:85)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:133)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:206)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1035)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:953)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1223)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3386)
         at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3467)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1350)
         at atg.service.resourcepool.MonitoredPreparedStatement.executeUpdate(MonitoredPreparedStatement.java:1080)
         at atg.adapter.gsa.SQLStatement.executeUpdate(SQLStatement.java:725)
         at atg.adapter.gsa.Table.insert(Table.java:1380)
         at atg.adapter.gsa.GSAItemDescriptor.addItem(GSAItemDescriptor.java:6739)
         ... 21 more
    Kindly help to resolve this issue.

    How are you adding the catalog? The error clearly means that the DB query is inserting null into the ASSET_VERSION column of DCS_GEN_FOL_CAT table. ASSET_VERSION column is non-null and required to maintain the repository asset versions in ATG content administration (CA).
    I suspect that you probably tried to do something which resulted in inserting into CA schema's DCS_GEN_FOL_CAT table outside a CA project context. You should add the catalog folder through BCC to have a CA project context. In case you are importing the data by executing startSQLRepository on CA schema then make sure that it is imported within a project context by specifying project, user, and comment options.

Maybe you are looking for