Applying Sql operator in Sql loader

Hi I have a table sql_ldr with four columns
create table slq_ldr(a number,b number,c number,d number)
I have to load the .csv file with the following values
1,12,123
2,23,234
3,34,345
4,45,456
I want to populate the column d by concatenating a,b and c
so the table to populated as below
a b c d
1 12 123 112123
2 23 234 223234
3 34 345 334345
4 45 456 445456
I tried with using the concat function
==================
LOAD DATA
infile 'sql_ldr.csv'
INTO TABLE sql_ldr
APPEND
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY ' '
TRAILING NULLCOLS
a integer external
,b integer external
,c integer external
,d integer external "CONCAT(:a,:b,:c)"
I am getting the error
Table SQL_LDR, loaded from every logical record.
Insert option in effect for this table: APPEND
TRAILING NULLCOLS option in effect
Column Name Position Len Term Encl Datatype
A FIRST * , O( ) CHARACTER
B NEXT * , O( ) CHARACTER
C NEXT * , O( ) CHARACTER
D NEXT * , O( ) CHARACTER
SQL string for column : "CONCAT(:a, :b, :c)"
Record 1: Rejected - Error on table SQL_LDR, column D.
ORA-00909: invalid number of arguments
the same error for all records
What is the way to do it.?
Thanks
ARI

CONCAT accepts only two arguments. So the control file becomes:
LOAD DATA
infile 'sql_ldr.csv'
INTO TABLE sql_ldr
APPEND
FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY ' '
TRAILING NULLCOLS
a integer external
,b integer external
,c integer external
,d integer external "CONCAT(:a,CONCAT(:b,:c))"
A second solution would be to use a trigger on the table to populate the value for column d rather than handling it in the SQL Loader control file spec.
HTH! Sue

Similar Messages

  • [823] [HY000] [Microsoft][ODBC SQL Server Driver][SQL Server]The operating system returned error 1450(Insufficient system resources exist to complete the requested service.) to SQL Server.

    Hi,
    I am facing an issue while loading fresh data into SQL server database.
    we are able to load data into staging area, but while processing stored procedures system face bellow error message :
    [823] [HY000] [Microsoft][ODBC SQL Server Driver][SQL Server]The operating system returned error 1450(Insufficient system resources exist to complete the requested service.) to SQL Server during a write at offset 0x00000243bd0000 in file 'E:\SQLDB\DBName.mdf'.
    Additional messages in the SQL Server error log and system event log may provide more detail. This is a severe system-level error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC
    CHECKDB). This error can be caused by many factors; for more information, see SQL Server Books Online.
    we use windows 2008 R2 with SQL server managment studio 2008.
    Appreciate your suggestion.
    Thanks in advance.
    Best Regards,
    Manorath 
    Manorath

    Hi Manorath,
    Based on my research, this issue can be occurred in the following scenarios:
    You are running a DBCC command on a large database. For example, you are running the DBCC CHECKDB statement on the database. At the same time, you run many DML statements on the database.
    You create a database snapshot for a large database. At the same time, you are running many DML statements on the database.
    In these scenarios, the SQL Server service stops responding. The DBCC CHECK statement is never completed, and you receive the error message repeatedly.
    This issue occurs because the sparse file for a database snapshot file has exceeded the file size limitation in NTFS file system. When the operating system error 1450 occurs, SQL Server enters an infinite retry loop.
    To fix this issue, please download and install Cumulative update package 1 for SQL Server 2008 Service Pack 1. Besides, because the fixes are cumulative, each new release contains all the hotfixes and all the security fixes that were included with the previous
    SQL Server 2008 fix release. We recommend that you consider applying the most recent fix release that contains this hotfix.
    Reference:
    http://support.microsoft.com/kb/967164
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Order of the sql operation

    hi experts,
    I want to clear my basic concepts here.
    I want to know the order of the sql operation.
    actually the problem with me that i have read from different blog and websites
    about the order of operation of the sqkl queries , hence i am confused here.
    what i think the order of operation iis
    -----------MY assumptuion---------------------
          From
           |
          where
           |
          group
           |
          having
           |
          select
           |
          order by
    is my assupmtion is correct?
    if yes , then if suppose there is rownum clause in my selection criteria,at which timing
    will it apply?
    on some site i have seen below criteria
    1. The FROM/WHERE clause goes first.
    2. ROWNUM is assigned and incremented to each output row from the FROM/WHERE clause.
    3. SELECT is applied.
    4. GROUP BY is applied.
    5. HAVING is applied.
    6. ORDER BY is applied.
    is this correct or my assumption is correct?
    thanks a lot in advance..!!
    regards,
    prashant

    Hi Prashant,
    Instead of memorizing, why not check the query plan -
    -->-- Creating a test table
    CREATE TABLE test_tbl as
      SELECT 'A' name, 100 sal FROM dual UNION ALL
      SELECT 'A' name, 120 sal FROM dual UNION ALL
      SELECT 'B' name, 66 sal FROM dual UNION ALL
      SELECT 'C' name, 20 sal FROM dual UNION ALL
      SELECT 'C' name, 50 sal FROM dual UNION ALL
      SELECT 'C' name, 60 sal FROM dual UNION ALL
      SELECT 'D' name, 90 sal FROM dual UNION ALL
      SELECT 'D' name, 110 sal FROM dual;
    -->-- Query explain plan
    EXPLAIN PLAN for
    SELECT name, SUM(sal) sm
    FROM test_tbl
    GROUP BY name
    HAVING Sum(sal) > 150
    ORDER BY sm;
    -->-- Fetching the plan from cursor pool
    SELECT *
    FROM TABLE(dbms_xplan.display);
    -->-- Query plan
    PLAN_TABLE_OUTPUT                                                               
    Plan hash value: 3401269832                                                     
    | Id  | Operation            | Name     | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT     |          |     8 |   128 |     5  (40)| 00:00:01 |
    |   1 |  SORT ORDER BY       |          |     8 |   128 |     5  (40)| 00:00:01 |
    |*  2 |   FILTER             |          |       |       |            |          |
    |   3 |    HASH GROUP BY     |          |     8 |   128 |     5  (40)| 00:00:01 |
    |   4 |     TABLE ACCESS FULL| TEST_TBL |     8 |   128 |     3   (0)| 00:00:01 |
    Predicate Information (identified by operation id):                             
         2 - filter(SUM("SAL")>150)                                                                                       
    Now, how to read the plan?
    Start reading the plan - with the line "Operation" indented towards extreme right. Line-4 in this case.
    Note: If two lines are indented similarly i.e. on same vertical line... read normally as-in order.
    Like this:
    | Id  | Operation            | Name       | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT     |            |     8 |   128 |     5  (40)| 00:00:01 |
    |   1 |  SORT ORDER BY       |            |     8 |   128 |     5  (40)| 00:00:01 |
    |*  2 |   FILTER             |            |       |       |            |          |
    |   3 |    HASH GROUP BY     |            |     8 |   128 |     5  (40)| 00:00:01 |
    |   4 |     TABLE ACCESS FULL| TEST_TBL_1 |     8 |   128 |     3   (0)| 00:00:01 |
    |   5 |     TABLE ACCESS FULL| TEST_TBL_2 |     8 |   128 |     3   (0)| 00:00:01 |
    Read: line 4 and then line 5, since both are on same vertical level.
    Final sequence:
    1- (Line 4) Table Access : FROM clause
    2- (Line 3) GROUP BY
    3- (Line 2) Filtering : WHERE clause
    4- (Line 1) Sorting : ORDER BY clause
    5- (Line 0) SELECT
    Hope this helps.
    -- Ranit

  • Logical Operations in SQL decode function ?

    Hi,
    Is it possible to do Logical Operations in SQL decode function
    like
    '>'
    '<'
    '>='
    '<='
    '<>'
    not in
    in
    not null
    is null
    eg...
    select col1 ,order_by,decode ( col1 , > 10 , 0 , 1)
    from tab;
    select col1 ,order_by,decode ( col1 , <> 10 , 0 , 1)
    from tab;
    select col1 ,order_by,decode ( col1 , not in (10,11,12) , 0 , 1)
    from tab;
    select col1 ,order_by,decode ( col1 ,is null , 0 , 1)
    from tab;
    Regards,
    infan
    Edited by: user780731 on Apr 30, 2009 12:07 AM
    Edited by: user780731 on Apr 30, 2009 12:07 AM
    Edited by: user780731 on Apr 30, 2009 12:08 AM
    Edited by: user780731 on Apr 30, 2009 12:08 AM
    Edited by: user780731 on Apr 30, 2009 12:09 AM

    example:
    select col1 ,order_by,case when col1 > 10 then 0 else 1 end
    from tab;
    select col1 ,order_by,case when col1 &lt;&gt; 10 then 0 else 1 end
    from tab;
    select col1 ,order_by,case when col1 not in (10,11,12) then 0 else 1 end
    from tab;As for testing for null, decode handles that by default anyway so you can have decode or case easily..
    select col1 ,order_by,decode (col1, null , 0 , 1)
    from tab;
    select col1 ,order_by,case when col1 is null then 0 else 1 end
    from tab;

  • SQL Interface - Error in Loading the data from SQL data source

    Hello,
    We have been using SQl data source for loading the dimensions and the data for so many years. Even using Essbase 11.1.1.0, it's been quite a while (more than one year). For the past few days,we are getting the below error when trying to load the data.
    [Mon Jan 10 11:02:56 2011]Local/{App Name}/{DB Name}/{User Id}/Info(1021013)
    ODBC Layer Error: [S1000] ==> [[DataDirect][ODBC DB2 Wire Protocol driver][UDB DB2 for Windows, UNIX, and Linux]CURSOR IDENTIFIED IN FETCH OR CLOSE STATEMENT
    IS NOT OPEN (DIAG INFO: ).]
    [Mon Jan 10 11:02:56 2011]Local/{App Name}/{DB Name}/{User Id}/Info(1021014)
    ODBC Layer Error: Native Error code [4294966795]
    [Mon Jan 10 11:02:56 2011]Local/{App Name}/{DB Name}/{User Id}/Error(1021001)
    Failed to Establish Connection With SQL Database Server. See log for more information
    [Mon Jan 10 11:02:56 2011]Local/{App Name}/{DB Name}/{User Id}/Error(1003050)
    Data Load Transaction Aborted With Error [7]
    [Mon Jan 10 11:02:56 2011]Local/{App Name}///Info(1013214)
    Clear Active on User [Olapadm] Instance [1]
    Interestingly, after the job fails thru our batch scheduler environment, when I run the same script that's being used in the batch scheduler, the job completes successfully.
    Also, this is first time, I saw this kind of error message.
    Appreciate any help or any suggestions to find a resolution. Thanks,

    Hii Priya,
    The reasons may be the file is open, the format/flatfile structure is not correct, the mapping/transfer structure may not be correct, presence of invalid characters/data inconsistency in the file, etc.
    Check if the flatfile in .CSV format.
    You have to save it in .CSV format for the flatfile loading to work.
    Also check the connection issues between source system and BW or sometimes may be due to inactive update rules.
    Refer
    error 1
    Find out the actual reason and let us know.
    Hope this helps.
    Regards,
    Raghu.

  • Can a SQL Server dump be loaded into oracle?

    Hi All,
    I'm wondering, if we have a sql server DB dump, is there anyway to load the data into Oracle? (other than loading the dump into a sql server and then using OMWB? )
    Thanks in advance,
    Sudheer

    Yes, you can migrate just the table structure if you want. After you have sucessfully created an Oracle Model using the capture wizard. You can invoke the "Generate Migration Scripts..." from the Action menu.
    This will create a SQL script, which you can modify as necessary and then execute from SQL*Plus or SQL Developer.
    Donal

  • SQL operations are not allowed with no global transaction by default for X

    Hi All,
    I am getting the above mentioned error.
    java.sql.SQLException: SQL operations are not allowed with no global transaction by default for XA drivers. If the XA driver supports performing SQL operations with no global transaction, explicitly allow it by setting "SupportsLocalTransaction" JDBC connection pool property to true. In this case, a
    lso remember to complete the local transaction before using the connection again for global transaction, else a XAER_OUTSIDE XAException may result. To complete a local transaction, you can either set auto commit to true or call Connection.commit() or Connection.rollback().
    I am developing a web application. I have jsp, servlets, JDBC classes.
    I am using DataSource and Connection pools.
    I am on WLS 8.1 sp3 and Oracle 10.1.
    Part of My Config file looks as follows:
    <JDBCConnectionPool DriverName="weblogic.jdbcx.oracle.OracleDataSource" KeepLogicalConnOpenOnRelease="true" KeepXAConnTillTxComplete="false" Name="AUMDataSource" NeedTxCtxOnClose="false" NewXAConnForCommit="false" Password="{3DES}AKRkWgdzXN8WrXSRtSvJ6g==" Properties="user=pibsrmgr;portNumber=1521;SID=pibsrdod;serverName=pibsrdod.dtu.mlam.ml.com" RollbackLocalTxUponConnClose="true" SupportsLocalTransaction="false" Targets="myserver" TestTableName="SQL SELECT 1 FROM DUAL" URL="jdbc:bea:oracle://pibsrdod.dtu.mlam.ml.com:1521" XAEndOnlyOnce="false" />
    <JDBCTxDataSource EnableTwoPhaseCommit="true" JNDIName="jdbc/AUMDataSource" Name="AUMDataSource" PoolName="AUMDataSource" Targets="myserver" />
    Any help will be appreciated.
    Thanks
    ---Radhe

    Hi,
    Regarding Transactions , the following link can helpful to you .
    Regards,
    Prasanna Yalam

  • Permissions needed for Applying SQL Tuning Sets/SQL Plans 11g?

    What permission are needed for a user to apply/activate sql tuning sets (sql plans) in 11g? The user can capture and move the the sql tuning sets from a 10g database to an 11g database but is getting "ORA-01031: insufficient privileges" when trying to activate/apply the sqlplans in 11g.
    The user has:
    ADMINISTER SQL MANAGEMENT OBJECT and ADMINISTER SQL TUNING SET and EXECUTE on SYS.DBMS_SPM
    The user is an administrator for our Data Warehouse team but they do not have sysdba priviliges.
    Do you also know of a good white paper that covers the step by step instructions and permissions needed for aquiring and applying/activating sqlplans?
    If more information is needed in order to respond please advise.
    Thank you

    What permission are needed for a user to apply/activate sql tuning sets (sql plans) in 11g? The user can capture and move the the sql tuning sets from a 10g database to an 11g database but is getting "ORA-01031: insufficient privileges" when trying to activate/apply the sqlplans in 11g.
    The user has:
    ADMINISTER SQL MANAGEMENT OBJECT and ADMINISTER SQL TUNING SET and EXECUTE on SYS.DBMS_SPM
    The user is an administrator for our Data Warehouse team but they do not have sysdba priviliges.
    Do you also know of a good white paper that covers the step by step instructions and permissions needed for aquiring and applying/activating sqlplans?
    If more information is needed in order to respond please advise.
    Thank you

  • Importing oracle.sql.BLOB through SQL Loader

    Hello,
    Currently the system we have creates .sql files and executes them. This takes a long time, so we're attempting to change to using SQL Loader. The one problem I'm having that I can't seem to fix is finding out how to imitate the behavior of this SQL statement through SQL Loader:
    INSERT INTO KRSB_QRTZ_BLOB_TRIGGERS (BLOB_DATA,TRIGGER_GROUP,TRIGGER_NAME)
    VALUES (oracle.sql.BLOB@515263,'KCB-Delivery','PeriodicMessageProcessingTrigger')
    I tried creating a lobfile and placing the text oracle.sql.BLOB@515263 within it this way
    INTO TABLE KRSB_QRTZ_BLOB_TRIGGERS
    WHEN tablename = 'KRSB_QRTZ_BLOB_TRIGGERS'
    FIELDS TERMINATED BY ',' ENCLOSED BY '##'
    TRAILING NULLCOLS
    tablename FILLER POSITION(1),
    TRIGGER_NAME CHAR(80),
    TRIGGER_GROUP CHAR(80),
    ext_fname FILLER,
    BLOB_DATA LOBFILE(ext_fname) TERMINATED BY EOF
    However, as expected, it merely loaded the text "oracle.sql.BLOB@515263" into the database. So does anyone have any ideas of how to imitate that insert statement through SQL Loader? The only information I have available is the string "oracle.sql.BLOB@515263", no other files or anything to aid with actually getting the binary data.
    When the .sql file is run with that insert statement in it, a 1.2kb BLOB is inserted into the database versus a 22 byte BLOB that contains nothing useful when done through SQL Loader.
    Alex

    My preference is DBMS_LOB.LOADFROMFILE
    http://www.morganslibrary.org/reference/dbms_lob.html
    did you try it?

  • Filter SharePoint list items using CAML query as same as Like operator in SQL Server.

    Hi ,
    I have filtered SharePoint list items based on Name using CAML query <Contains> . Now I have a new requirement is to filter list items using Like operator in SQL. But Like operator is not in CAML.
    How do I filter list items using CAML as same as Like operator in SQL.
    Please let me know.
    Thanks in Advance.

    Did you try using <Contains>?
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/15766fd5-50d5-4884-82a1-29a1d5e38610/caml-query-like-operator?forum=sharepointdevelopmentlegacy
    --Cheers

  • ALL sql operator

    How to use ALL operator in SQL query. I need something like students who have passed in both maths and science. Please help.
    Thanks.

    SQL> CREATE TABLE STUDENT
    2 (
    3 SNAME VARCHAR2(6),
    4 SNO CHAR(2)
    5 );
    Table created.
    SQL> ALTER TABLE STUDENT ADD (
    2 CONSTRAINT SNO_PK PRIMARY KEY (SNO));
    Table altered.
    SQL> INSERT INTO STUDENT(SNAME,SNO) VALUES('L Tree','S1')
    2 ;
    1 row created.
    SQL> INSERT INTO STUDENT(SNAME,SNO) VALUES('D Pond','S2');
    1 row created.
    SQL> INSERT INTO STUDENT(SNAME,SNO) VALUES('M Lake','S3');
    1 row created.
    SQL> INSERT INTO STUDENT(SNAME,SNO) VALUES('J Bond','S4');
    1 row created.
    SQL> INSERT INTO STUDENT(SNAME,SNO) VALUES('S Bark', 'S5');
    1 row created.
    SQL> INSERT INTO STUDENT(SNAME,SNO) VALUES('L Leaf','S6');
    1 row created.
    SQL> CREATE TABLE COURSE
    2 (
    3 CNAME VARCHAR2(6),
    4 CNO CHAR(2)
    5 );
    Table created.
    SQL> ALTER TABLE COURSE ADD (
    2 CONSTRAINT CNO_PK PRIMARY KEY (CNO));
    Table altered.
    SQL> INSERT INTO COURSE(CNAME,CNO) VALUES('Comp 1','C1')
    2 ;
    1 row created.
    SQL> INSERT INTO COURSE(CNAME,CNO) VALUES('Math 2','C2');
    1 row created.
    SQL> INSERT INTO COURSE(CNAME,CNO) VALUES('Phys 3','C3');
    1 row created.
    SQL> INSERT INTO COURSE(CNAME,CNO) VALUES('Comp 3','C4');
    1 row created.
    SQL> CREATE TABLE RESULT
    2 (
    3 SNO CHAR(2),
    4 CNO CHAR(2),
    5 MARK INTEGER
    6 );
    Table created.
    SQL> ALTER TABLE RESULT ADD (
    2 CONSTRAINT CNO_FK FOREIGN KEY (CNO)
    3 REFERENCES COURSE (CNO));
    Table altered.
    SQL> ALTER TABLE RESULT ADD (
    2 CONSTRAINT SNO_FK FOREIGN KEY (SNO)
    3 REFERENCES STUDENT (SNO));
    Table altered.
    SQL> INSERT INTO RESULT(SNO,CNO,MARK) VALUES('S1','C1',77)
    2 ;
    1 row created.
    SQL> INSERT INTO RESULT(SNO,CNO,MARK) VALUES('S1','C2',80);
    1 row created.
    SQL> INSERT INTO RESULT(SNO,CNO,MARK) VALUES('S2','C2',93);
    1 row created.
    SQL> INSERT INTO RESULT(SNO,CNO,MARK) VALUES('S2','C3',88);
    1 row created.
    SQL> INSERT INTO RESULT(SNO,CNO,MARK) VALUES('S2','C4',91);
    1 row created.
    SQL> INSERT INTO RESULT(SNO,CNO,MARK) VALUES('S3','C2',74);
    1 row created.
    SQL> INSERT INTO RESULT(SNO,CNO,MARK) VALUES('S3','C3',89);
    1 row created.
    SQL> INSERT INTO RESULT(SNO,CNO,MARK) VALUES('S4','C2',75);
    1 row created.
    SQL> INSERT INTO RESULT(SNO,CNO,MARK) VALUES('S4','C3',85);
    1 row created.
    SQL> INSERT INTO RESULT(SNO,CNO,MARK) VALUES('S4','C4',55);
    1 row created.
    SQL> INSERT INTO RESULT(SNO,CNO,MARK) VALUES('S5','C1',50);
    1 row created.
    SQL> INSERT INTO RESULT(SNO,CNO,MARK) VALUES('S5','C4',61);
    1 row created.
    SQL> INSERT INTO RESULT(SNO,CNO,MARK) VALUES('S6','C2',77);
    1 row created.
    SQL> INSERT INTO RESULT(SNO,CNO,MARK) VALUES('S6','C3',88);
    1 row created.
    SQL> INSERT INTO RESULT(SNO,CNO,MARK) VALUES('S6','C4',54);
    1 row created.
    SQL> commit;
    Commit complete.With the above, I need to find
    1. Names of students who have passed ALL courses that J Bond passed (this should give students who have passed both in C2 and C3)
    2. Names of students who have got better mark than J Bond in ALL courses that J Bond recevied marks
    3. Passmark is >= 60
    BTW how do i post sql codes in different text
    Thanks.

  • How to add custom sql operations in Database adapters?

    I have a database adapter in ESB configured with insert, update and select operations.
    I wanted to add another select operation with pure sql. When I added the operation it gave me error "Start of the root element expected" while registering the service.
    Can't we do like this?
    I use SOA suite 10.1.3.4.
    - Sam

    Hi Thanks for reply.
    There is an option while configuring the DB adapter "Execute Custom SQL" where you can specify the query you want to execute. It will generate the schema as per the query you enter in the wizard.
    I have created adapters with this type of custom SQLs and even I have put multiple operations in the same adapters where all use Custom SQL and they are working fine.
    Thease custom SQL operations can be anything insert, update, select and they even work with other operations using procedures in the same adapter. But yes we need to modify the WSDL manuallly.
    My problem was that when I try to add the custom SQL operation in the adapter which is configured with normal select, insert and update operation, I was getting the error mentioned.
    - Sam

  • "SQL Operation failed" When deleting forms EPMA

    V11.1.2.1 - Planning through EPMA.
    I have a form which I made to test something that I cant get rid of. I can edit it, I can hide it and I can change any normal setting you would expect on it. When I open it, everything appears as expected. This is happening for just one form, I can create and delete others in the same folder. I've tried renaming it and deleting and that still doesn't work.
    I just cant select it and click "Delete": I get an error message saying "The SQL Operation failed. Check logs for details.
    Does anyone know which logs in particular might point me to the cause of the problem?
    Has anyone had and resolved this before?
    Regards
    Ed

    Check the user_projects/<instancename>/diagnostics/logs/starter or services depending on linx/windows. Check the Hyperion Planning log to see what errors are generated in the log when you attempt the delete. You should see an sql error message.
    If you don't see any messages you want to set planning property debug_enabled TRUE (the instructions for this are in the troubleshooting documentation for EPM) and restart the server.
    Retry and reexamine the logs.

  • While adding/Changing member in planning it gives the error "The SQL operation failed with an error code: 0"

    Hi,<BR>While adding/Changing member in planning it gives the error "The SQL operation failed with an error code: 0" and not allowing any of the changes. I am not able to open the forms giving the error as "Fiscal Days Input - is invalid". Interestingly one form was opening, when the Page selection is changed it also started giving error as like "Fisacal Days Input(form name) - is invalid check log for details". <BR>Pls advice us that what is this error and how to resolve this.<BR><BR>And Which log is to be referred for the details.<BR><BR>Thanks<BR>Ravi

    If a form is invalid it generally means that one of the dimension references is missing.<BR><BR>Can you get in to edit the form?<BR>If you can, see if you can preview it. I suspect you will not be able to.<BR><BR>If not, check all dimension boxes have at least one member against them.<BR>If you have multiple rows and/or columns check all of them too.<BR><BR>I've had a couple of forms in dev "drop" a dimension reference but only once or twice so not enough to reproduce or find out what is causing it. Each time I got the "form invalid" error message and managed to fix it.<BR><BR>Hope this helps.<BR>

  • Avoid procedure or function calls between a SQL operation and an implicit cursor test

    when i analyse this code with code expert

    atpidgeon wrote:
    when i analyse this code with code expert
                            UPDATE P_PM_CONTROL_COUNT
                            SET AVAIL_SEG = AVAIL_SEG -1,
                                ALLOCATION = ALLOCATION -1
                            WHERE PM_UNIT_TYPE_ID = vrectab(1)
                            AND USAGE_DATE = vrectab(2)
                            AND SEGMENT_CODE = vrectab(5)
                            AND ALLOCATION - UNITS_RESERVED > 0;
                            IF sql%rowcount = 0 then --Added block and exception to prevent invetory going negative when placing multi units in same unit type out of service.
                                vErrMsg := 'Could not process your out of service request because your selection for unit '|| vrectab(3) || ' at ' || pvPropertyId || ' for ' || vrectab(2) || ' would cause segment ' || vrectab(5) || ' to be over allocated.';
                                RAISE SegOverAllocated;
                            END IF;
    i get "Avoid procedure or function calls between a SQL operation and an implicit cursor test.",as far has i know
    iff you're doing a sql%rowcount    after an update.. trying to see how many rows were updated...  you dont want procedure or function calls between the update and the sql% line
    correct me if im wrong and how would i fix it?or maybe i shouldnt
    You correct it by NOT executing function calls as part of the UPDATE statement.
    1. Issue the function calls BEFORE the update statement
    2. save the function results into variables
    3. use those variables in the UPDATE statement.
    v_rectab1 := vrectab(1);
    v_rectab2 := vrectab(21);
    v_rectab5 := vrectab(5);
    UPDATE P_PM_CONTROL_COUNT 
                            SET AVAIL_SEG = AVAIL_SEG -1,
                                ALLOCATION = ALLOCATION -1
                            WHERE PM_UNIT_TYPE_ID = v_rectab1
                            AND USAGE_DATE = v_rectab2
                            AND SEGMENT_CODE = v_rectab5
                            AND ALLOCATION - UNITS_RESERVED > 0;

Maybe you are looking for

  • Change the way month or year page flips in Lion?

    As nits go, this is pretty nitty :-) In Lion, iCal changed the way month (and year) views changed the way they moved. Instead of just a straight transition to the next month or year, some wise guy decided to transition with a lovely (not) animation t

  • Web service returns [object Object] into Label

    I can return webService calls into a data grid fine, but if i try to bind a result to a Label or Text area i always get [object Object] returned. I can't figure out how to format them into their proper text? He is my string for the label <mx:Label x=

  • Need help with session state/item refresh

    I have an application that allows users to record productivity information for our employees. There are different types of work they have to do, so the form is in header/multiple-detail form and uses collections to handle all processing. In the heade

  • Cisco ISE deployment with HP Swithes

    Is there any compatibility matrix of cisco ISE with HP access swithes or there is any features restriction on HP access layer. The HP switches do support 802.1x. Thanks Qasim

  • How to set up an iPhone as PAN for MacBook Air

    I would like to know how to set up a Personal Area Network for my MacBookAir by using my iPhone. I successfully used Bluetooth to pair the two, according to the MacAir, but the iPhone never believed it and insisted that it had found no device to pair