Error while linking user defined table to user defined field using vb6.0

Hi,
I am creating a userdefined field on a SAPB1 table(PDN1) using vb 6.0
I am trying to link this field to a user defined table.
When i do that i get the following error:
"The field 'Related table' should consist of 8 alphanumeric chracters with no valid or default values"
When i try to do the same thing from SAPB1(not using code) there is no such problem.
My vb code is as follows:
Set oUserFieldsMD = oCmp.GetBusinessObject(oUserFields)
oUserFieldsMD.TableName = "PDN1"
oUserFieldsMD.Name = "OB_Locn"
oUserFieldsMD.Description = "WH Location"
oUserFieldsMD.Type = db_Alpha
oUserFieldsMD.EditSize = 30
lRetCode = oUserFieldsMD.Add
If lRetCode <> 0 Then
    oCmp.GetLastError lErrCode, sErrMsg
    MsgBox sErrMsg
    GoTo Err_
End If
If Not oUserFieldsMD.GetByKey("PDN1", 0) Then
    MsgBox "Error"
    GoTo Err_
End If
oUserFieldsMD.LinkedTable = "OB_TEST"
lRetCode = oUserFieldsMD.Update
Your help will be much appreciated.
Thanks.

Great Sébastien!
Looks like we could not survive here one day without your contribution
Best regards,
Frank
PS: For readers of this thread who don't understand why
EditSize
must be "8":
This is the size of the
Code
field in the user-defined table to which the new field OB_Locn (in the DB it will be U_OB_Locn) is linked to...
So, it should be preferrably of the same size.

Similar Messages

  • ORA-12560: TNS: protocol adapter error while linking tables in Access

    One of my app dev is encountering an interesting error message while linking Oracle tables from Access. I am not able to able to reproduce this in my desktop or anywhere else. Details enclosed. Can you guys point me to a solution? Thanks in advance!
    ODBC: Oracle Client version 10.2.0.1
    Desktop : Win XP ; Access 2003
    =>Able to login to the Oracle database sucessfully using sqlplus.
    =>Able to create an ODBC datasource to Oracle database.("Test Connection" works fine)
    =>But encountering the TNS protocol adpater error while linking the table(Access->File->Get External Data-> Link tables).
    =>Not able to link any table in any schema in any Oracle database. Hence this is not a data centric issue.
    What did I do?
    => Uninstalled Oracle 8 client and installed Oracle 10 client. No luck. Encountering the same error.
    => Turned on the ODBC trace and reproduced the error. The log is enclosed:
    MSACCESS 79c-ed4     ENTER SQLAllocEnv
              HENV * 0013C620
    MSACCESS 79c-ed4     EXIT SQLAllocEnv with return code 0 (SQL_SUCCESS)
              HENV * 0x0013C620 ( 0x09d31788)
    MSACCESS 79c-ed4     ENTER SQLAllocConnect
              HENV 09D31788
              HDBC * 0013C730
    MSACCESS 79c-ed4     EXIT SQLAllocConnect with return code 0 (SQL_SUCCESS)
              HENV 09D31788
              HDBC * 0x0013C730 ( 0x09d31830)
    MSACCESS 79c-ed4     ENTER SQLSetConnectOption
              HDBC 09D31830
              SQLINTEGER 103 <SQL_LOGIN_TIMEOUT>
              SQLPOINTER 0x00000014
    MSACCESS 79c-ed4     EXIT SQLSetConnectOption with return code 0 (SQL_SUCCESS)
              HDBC 09D31830
              SQLINTEGER 103 <SQL_LOGIN_TIMEOUT>
              SQLPOINTER 0x00000014 (BADMEM)
    MSACCESS 79c-ed4     ENTER SQLSetConnectAttrW
              SQLHDBC 09D31830
              SQLINTEGER 30002 <unknown>
              SQLPOINTER [Unknown attribute 30002]
              SQLINTEGER -3
    MSACCESS 79c-ed4     EXIT SQLSetConnectAttrW with return code 0 (SQL_SUCCESS)
              SQLHDBC 09D31830
              SQLINTEGER 30002 <unknown>
              SQLPOINTER [Unknown attribute 30002]
              SQLINTEGER -3
    MSACCESS 79c-ed4     ENTER SQLDriverConnectW
              HDBC 09D31830
              HWND 001D04E4
              WCHAR * 0x74329A38 [      -3] "******\ 0"
              SWORD -3
              WCHAR * 0x74329A38
              SWORD 2
              SWORD * 0x00000000
              UWORD 1 <SQL_DRIVER_COMPLETE>
    MSACCESS 79c-ed4     EXIT SQLDriverConnectW with return code -1 (SQL_ERROR)
              HDBC 09D31830
              HWND 001D04E4
              WCHAR * 0x74329A38 [      -3] "******\ 0"
              SWORD -3
              WCHAR * 0x74329A38
              SWORD 2
              SWORD * 0x00000000
              UWORD 1 <SQL_DRIVER_COMPLETE>
              DIAG [S1000] [Oracle][ODBC][Ora]ORA-12560: TNS: protocol adapter error (12560)
              DIAG [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed (0)
              DIAG [IM006] [Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed (0)
    MSACCESS 79c-ed4     ENTER SQLErrorW
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EE8B8
              SWORD 4095
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638 (12560)
              WCHAR * 0x047EE8B8 [     126] "[Oracle][ODBC][Ora]ORA-12560: TNS: protocol adapter error\ a\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0\ 0"
              SWORD 4095
              SWORD * 0x0013C624 (126)
    MSACCESS 79c-ed4     ENTER SQLErrorW
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EE950
              SWORD 4019
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638 (0)
              WCHAR * 0x047EE950 [      66] "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed"
              SWORD 4019
              SWORD * 0x0013C624 (66)
    MSACCESS 79c-ed4     ENTER SQLErrorW
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EE9E6
              SWORD 3944
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     EXIT SQLErrorW with return code 0 (SQL_SUCCESS)
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638 (0)
              WCHAR * 0x047EE9E6 [      66] "[Microsoft][ODBC Driver Manager] Driver's SQLSetConnectAttr failed"
              SWORD 3944
              SWORD * 0x0013C624 (66)
    MSACCESS 79c-ed4     ENTER SQLErrorW
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EEA7C
              SWORD 3869
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     EXIT SQLErrorW with return code 100 (SQL_NO_DATA_FOUND)
              HENV 09D31788
              HDBC 09D31830
              HSTMT 00000000
              WCHAR * 0x0013C5EC (NYI)
              SDWORD * 0x0013C638
              WCHAR * 0x047EEA7C
              SWORD 3869
              SWORD * 0x0013C624
    MSACCESS 79c-ed4     ENTER SQLFreeConnect
              HDBC 09D31830
    MSACCESS 79c-ed4     EXIT SQLFreeConnect with return code 0 (SQL_SUCCESS)
              HDBC 09D31830
    Edited by: user5598619 on Feb 10, 2009 5:37 PM

    Thanks a lot for your quick reply.
    I've read all the posts mentioned (quite a few more) but I couldn't find any suggested solution to the "non-oracle10g"-problem other than using the global db name instead of the sid - which didn't help in our case:
    However, in a last desperate attempt to solve the problem on my own before launching another cry-for-help-post I did try running the configuration assistant using the correct password for the SYS user 8-} and - strange but true - it did work :-)
    Needless to say: I used the global db name of course, so I can't say what would have happened without it, but I trust your hint was a legitimate one.
    Anyway - I gues that error Message concerning a "non-oracle10g database" was slightly misleading in this case.... grrrr.
    Andreas

  • FindGroups - Error while getting group list for login user

    Hi All,
    I am using below code snippet to search a group in OIM but it gives me "Error while getting group list for login user" error message.
    tcResultSet rsetAss = null;
    tcGroupOperationsIntf groupIntf = (tcGroupOperationsIntf)utilFactory.getUtility("Thor.API.Operations.tcGroupOperationsIntf");
    HashMap mapGrp = new HashMap();
    mapGrp.put("Groups.Group Name","DEF_GROUP");
    rsetAss = groupIntf.findGroups(mapGrp);     
    And i am ruuning this code using xelsysadm logon.
    com.thortech.xl.util.config.ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
    Hashtable env = config.getAllSettings();
    com.thortech.xl.crypto.tcSignatureMessage moSignature = tcCryptoUtil.sign("xelsysadm", "PrivateKey");
    utilFactory = new tcUtilityFactory(env, moSignature);     
    Any guess?
    Thanks & Regards
    Inbaa.

    Here it is Rajiv,
    public class GetUserApprover {
    private String defGroup = "DEF_GROUP";
    public tcUtilityFactory getUtilFactory()
    tcUtilityFactory utilFactory = null;
    try
         logger.debug("Initializing the utilFactory");
         com.thortech.xl.util.config.ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
    Hashtable env = config.getAllSettings();
    com.thortech.xl.crypto.tcSignatureMessage moSignature = tcCryptoUtil.sign("xelsysadm", "PrivateKey");
    utilFactory = new tcUtilityFactory(env, moSignature);
    catch(Exception ex)
         logger.info("Error while getting the utilFactory" + ex.getMessage());
         System.out.println(ex.getMessage());
    return utilFactory;
    public String getGroupKey(String defGroup){
              String groupKey = null;
              tcUtilityFactory utilFactory = getUtilFactory();
              if(utilFactory != null)
         System.out.println("utilFactory not null. Searching for group:" +defGroup );
                   try
              tcResultSet rsetAss = null;
              tcGroupOperationsIntf groupIntf = (tcGroupOperationsIntf)utilFactory.getUtility("Thor.API.Operations.tcGroupOperationsIntf");
              HashMap mapGrp = new HashMap();
              mapGrp.put("Groups.Group Name","DEF_OWNER_GROUP");
              System.out.println("Finding Group....");
              rsetAss = groupIntf.findGroups(mapGrp);          
              System.out.println("RowCount-->" +rsetAss.getRowCount() );
              rsetAss.goToRow(0);
              groupKey = rsetAss.getStringValue("Groups.Key");
         System.out.println("GroupKey-->" + groupKey);
         catch(Exception e){
              System.out.println("Error" + e.getMessage());
              return (java.lang.Object)groupKey;
    }

  • Error while creating the DWH tables using DAC

    Hi,
    I am getting error while creating the DWH tables using DAC. I have created a ODBC DSN using merant driver with DAC repository DB credentials and the test connection is successful. And while creating the tables i gave the olap dw credentials and the DSN name which i created earlier. But it throws the error as below:
    Please find the below mentioned error message
    =====================================
    STD OUTPUT
    =====================================
    CREATING SIEBEL DATABASE OBJECTS
    F:\DAC\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u infdomain /p ******* /c DB_DAC /G "SSE_ROLE" /f F:\DAC\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b "" /K "" /X "" /W N
    Error while importing Siebel database schema.
    =====================================
    ERROR OUTPUT
    =====================================
    Siebel Enterprise Applications ODBC DDL Import Utility, Version 7.7 [18030] ENU
    Copyright (c) 2001 Siebel Systems, Inc. All rights reserved.
    This software is the property of Siebel Systems, Inc., 2207 Bridgepointe Parkway,
    San Mateo, CA 94404.
    User agrees that any use of this software is governed by: (1) the applicable
    user limitations and other terms and conditions of the license agreement which
    has been entered into with Siebel Systems or its authorized distributors; and
    (2) the proprietary and restricted rights notices included in this software.
    WARNING: THIS COMPUTER PROGRAM IS PROTECTED BY U.S. AND INTERNATIONAL LAW.
    UNAUTHORIZED REPRODUCTION, DISTRIBUTION OR USE OF THIS PROGRAM, OR ANY PORTION
    OF IT, MAY RESULT IN SEVERE CIVIL AND CRIMINAL PENALTIES, AND WILL BE
    PROSECUTED TO THE MAXIMUM EXTENT POSSIBLE UNDER THE LAW.
    If you have received this software in error, please notify Siebel Systems
    immediately at (650) 295-5000.
    F:\DAC\bifoundation\dac\UTILITIES\BIN\DDLIMP /I N /s N /u infdomain /p ***** /c DB_DAC /G SSE_ROLE /f F:\DAC\bifoundation\dac/conf/sqlgen/ctl-file/oracle_bi_dw.ctl /b /K /X /W N
    Connecting to the database...
    28000: [DataDirect][ODBC Oracle driver][Oracle]ORA-01017: invalid username/password; logon denied
    Unable to connect to the database...
    any help is appreciated.
    Thanks,
    RM

    The fact that you are getting an "ORA-01017: invalid username/password; logon denied" message indicates that you are at least talking to the database.
    The log shows that username "infdomain" is being used. Can you double check the username and password you have in DAC in a SQL*Plus/SQL Developer session?
    Please mark if useful/helpful,
    Andy.

  • Error while creating data warehouse tables.

    Hi,
    I am getting an error while creating data warehouse tables.
    I am using OBIA 7.9.5.
    The contents of the generate_clt log are as below.
    >>>>>>>>>>>>>>>>>>>>>>>>>>
    Schema will be created from the following containers:
    Oracle 11.5.10
    Universal
    Conflict(s) between containers:
    Table Name : W_BOM_ITEM_FS
    Column Name: INTEGRATION_ID.
    The column properties that are different :[keyTypeCode]
    Success!
    <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
    There are two rows in the DAC repository schema for the column and the table.
    The w_etl_table_col.KEY_TYPE_CD value for DW application is UNKNOWN and for the ORA_11i application it is NULL.
    Could this be the cause of the issue? If yes, why could the values be different and how to resolve this?
    If not, then what could be the problem?
    Any responses will be appreciated.
    Thanks and regards,
    Manoj.

    Strange. The OBIA 7.9.5 Installation and Configuration Guide says the following:
    4.3.4.3 Create ODBC Database Connections
    Note: You must use the Oracle Merant ODBC driver to create the ODBC connections. The Oracle Merant ODBC driver is installed by the Oracle Business Intelligence Applications installer. Therefore, you will need to create the ODBC connections after you have run the Oracle Business Intelligence Applications installer and have installed the DAC Client.
    Several other users are getting the same message creating DW tables.

  • Time Machine fails with "error while linking files on the backup volume"

    One of my drives was nearly full. I moved some folders from that drive to one that had more space.
    The next TM backup failed with "error while linking files on the backup volume". A full backup is about 620 GB, although this backup shouldn't have been a complete one. There was 570+ GB free on the drive.
    A Disk Verify reported "Drive appears to be okay." Earlier TM backups appeared to be fine (at least accessible). I swapped the TM drive for another, initialized it, and TM used that drive with no complaints.
    What does the message mean?
    Thanks,
    harv47

    Pondini wrote:
    harv47 wrote:
    The Time Machine Buddy widget shows no messages. None of the buttons do anything.
    What am I doing wrong?
    See #A1 in the Time Machine - Troubleshooting *User Tip,* also at the top of this forum.
    Your user account may not have permission to see the logs.
    The sentence beginning "If the message area is blank ..." shows how to figure out if that's the problem, and how to fix it.
    Post back if it's not clear, or doesn't work.
    The Tip had the answer. It was permissions.
    What follow are the messages for the last unsuccessful TM backup (on v.3), followed by
    the successful TM backup on the replacement drive (v.1). The line
    "Copied 11 files (0 bytes) from volume Bay 3 HPFS+." was odd.
    Starting standard backup
    Backing up to: /Volumes/Time Machine v.3/Backups.backupdb
    Event store UUIDs don't match for volume: Bay 3 HPFS+
    Event store UUIDs don't match for volume: Macintosh HD
    Node requires deep traversal:/Volumes/Bay 3 HPFS+ reason:kFSEDBEventFlagMustScanSubDirs|
    Node requires deep traversal:/ reason:kFSEDBEventFlagMustSc
    (Finished May 4, 2010 9:31:21 AM-- Status unknown)
    Starting standard backup
    Backing up to: /Volumes/TimeMachine v.1/Backups.backupdb
    Event store UUIDs don't match for volume: Bay 3 HPFS+
    Event store UUIDs don't match for volume: Bay 2 HPFS+
    Event store UUIDs don't match for volume: Macintosh HD
    Backup content size: 169.1 GB excluded items size: 0 bytes for volume Bay 3 HPFS+
    Backup content size: 305.5 GB excluded items size: 0 bytes for volume Bay 2 HPFS+
    Backup content size: 145.7 GB excluded items size: 7.5 MB for volume Macintosh HD
    No pre-backup thinning needed: 744.36 GB requested (including padding), 931.15 GB available
    Waiting for index to be ready (909 > 0)
    Copied 1951 files (169.0 GB) from volume Bay 3 HPFS+.
    Copied 4999 files (474.3 GB) from volume Bay 2 HPFS+.
    Copied 410304 files (612.4 GB) from volume Macintosh HD.
    No pre-backup thinning needed: 712.2 MB requested (including padding), 315.09 GB available
    Copied 11 files (0 bytes) from volume Bay 3 HPFS+.
    Copied 20 files (1.1 GB) from volume Bay 2 HPFS+.
    Copied 1103 files (1.1 GB) from volume Macintosh HD.
    Starting post-backup thinning
    No post-back up thinning needed: no expired backups exist
    Backup completed successfully.
    (Finished May 4, 2010 2:38:17 PM)
    I hope this is useful. Thanks for your help.
    harv47

  • Error while deriving currency from table T001P

    Hi All,
    Error while deriving currency from table T001P
    I am getting this error while payroll run by using country GRP=99 in SU2 for Non-SAP supported country.
    I assigned country grouping as 99 in V_T500P table while assigning comp code to personnel area.
    The company code is assigned with BD as country key in configuration and currency as BDT.
    Referring previous links for the same error I checked all concerned tables and maintained correctly.
    What will be the probable reason of this error?

    Hi,
    I had the exact same problem a while back. The problem was that in V_T001 I had a different comp code which was either assigned to the same country  that had a blank currency  or assigned to the same currency but was missing the country. It was a different comp code than the one I was running payroll for so it took a long time to find the cause - I'll bet this is what's causing your error. 
    Rgds,
    Kristopher

  • Error while creating publisher change tables in CDC

    Hi,
    I am implementing Change Data Capture. I got getting following error while creating publisher change tables in Staging database. My database version is 10.2.0.2.0 .
    I appreciate your help.
    ERROR at line 1:
    ORA-29540: class oracle/CDC/PublishApi does not exist
    ORA-06512: at "SYS.DBMS_CDC_PUBLISH", line 611
    ORA-06512: at line 2
    Thanks,
    Venkat.

    This problem got fixed when I ran below script!!
    @$ORACLE_HOME/rdbms/admin/initcdc.sql;

  • Error: SQL*Loader-926: OCI error while OCIStmtExecute(trigger_hp) for table

    HEllo, i've a problem when i try to load a file, the message is:
    SQL*Loader-926: OCI error while OCIStmtExecute(trigger_hp) for table <table>
    ORA-00904: invalid column name
    what is the solution for this?
    thanks

    The root cause is in the error ora-1426, which you can look up in the online error documentation at http://tahiti.oracle.com . No one knows every error message by heart. This means it is expected you look up the error prior to posting, and you don't expect any volunteer in this forum to look up the error on your behalf.
    Also this is a typical candidate for being a known problem, and known problems can be found on My Oracle Support.
    Sybrand Bakker
    Senior Oracle DBA

  • Schema error while linking users in ISW

    Hi
    When i am linking user (idsync -k) i get following error in isw log
    "LDAP modify operation of entry uid=jhenry,ou=people,ou=Faculty4,ou=Employee,o=aus.edu,o=ausedu failed at null. Error code: 65, reason: null" (Action ID=CNN101-1143923ED11-70281, SN=9
    and in DS6.1 error log i see this
    07/Aug/2007:14:05:10 +0400] - ERROR<5897> - Schema - conn=-1 op=-1 msgId=-1 - User error: Entry "uid=jhenry,ou=people,ou=Faculty4,ou=Employee,o=aus.edu,o=ausedu", attribute "mailUserStatus" is not allowed
    same error also occurring for paburi and nsnswmExtendedUserPrefs. These users are acticve mail users and objectclass. inetMailuser and ipUser is assign to them
    What could be the reason . Please help
    Thanks

    Hi,
    the error 'attribute "mailUserStatus" is not allowed' means that none of the objectclasses assigned to that User allow to have the attribute "mailUserStatus".
    Please check whether any of the objectclasses assigned to your Users allow this attribute. You can check this by looking at your schema. Im not quite sure how to examine the schema with dscc. There might be something under configuration.. Otherwise you could check the schema files in /var/opt/SUNWdsee/dsins1/config/schema/ to find out which objectclass provides the attribute mailUserStatus.
    Have you executed /opt/SUNWcomds/sbin/comm_dssetup.pl to adapt your directory for the JES stuff? But be careful with that, because it might make significant changes to your directory entries and schema..
    regards
    Message was edited by:
    DavidSchulz

  • Error while linked server is used to verify the existence of a table

    Hi All,
    Pls help me solve an issue related to linked Server..
    Following is my query:
    IF EXISTS (select 1 from [LinkedServerName].Sales.sys.tables where name = 'SalesTable') 
    BEGIN
     DECLARE @LastSales varchar(25) 
     SET @LastSales = (select CONVERT(VARCHAR(25),max(LastSalesTime)) from [LinkedServerName].SalesDB.dbo.SalesTable)
    END
    What should happen is, it should check the existence of SalesTable on Linked Server (select 1 from [LinkedServer].Sales.sys.tables where name = 'SalesTable'), and only after the it returns 1, the variable @LastSales should be alloted a value.
    But in my case, as soon as I run the code, it gives the error:
    The OLE DB provider "SQLNCLI10" for linked server "LinkedServerName" does not contain the table ""Sales"."dbo"."SalesTable"". 
    The table either does not exist or the current user does not have permissions on that table.
    My question is that if the condition fails at the very outset returning null (as the table does not exist), then why it is entering BEGIN and throwing the error.
    All your valuable inputs are appreciated !!

    Inconsistency is the hailmark of SQL Server.
    If you say:
    IF EXISTS (select 1 from Sales.sys.tables where name = 'SalesTable') 
    BEGIN
     DECLARE @LastSales varchar(25) 
     SET @LastSales = (select CONVERT(VARCHAR(25),max(LastSalesTime)) from        SalesDB.dbo.SalesTable)
    END
    This will work as you expect. That is, if the table does not exist, the batch will parse and produce no result. This is because SQL Server has deferred name resolution for tables. If a table is missing at compile time, SQL Server suppresses the error in
    hope that the table will be there at run-time.
    But there is an exception to this. For table sources on remote data sources, there is no deferred name resolution, but the table has to be there at compile time. This is quite ironic. Personally, I think deferred name resolution (which was introduced in
    SQL 7) is a big misfeature, but I could buy if there was deferred name resolution for objects on linked server, since the server may be down, and you have coded for this like you have above. Well, if the server is down, the IF EXISTS will fail to compile to.
    You will need to introduce a new scope somewhere to avoid the problem. For instance:
    IF EXISTS (select 1 from [LinkedServerName].Sales.sys.tables where name = 'SalesTable') 
    BEGIN
       DECLARE @LastSales varchar(25) 
       EXEC [Linkedservername].SalesDB.sys.sp_executesql
            N'SET @LastSales = (select CONVERT(VARCHAR(25),max(LastSalesTime)) from SalesTable)',
            N'@LastSales varchar(25) OUTPUT', @LastSales
    END
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Error while updating budget plan for a user in peoplesoft

    Hi All,
    We are using peopletools 845 and app 8.8 some users are getting this wl error while updating some transactions in PS find the error below,
    Message from the ISAPI plugin:
    Cannot open TEMP file 'C:\WINDOWS\TEMP\_wl_proxy\_post_8500_4' for POST of 7328 bytes: GetLastError() 5
    Build date/time: Oct 25 2004
    Change Number: 452998
    HTTP/1.1 500 Internal Server Error Connection: close Date: Wed, 10 Jun 2009 16:42:27 GMT Server: Microsoft-IIS/6.0 MicrosoftOfficeWebServer: 5.0_Pub X-Powered-By: ASP.NET Content-Type: text/html
    Message from the ISAPI plugin:
    Cannot read -1 bytes of postData from tmp file 'C:\WINDOWS\TEMP\_wl_proxy\_post_8500_4': GetLastError() 0
    Build date/time: Oct 25 2004
    Change Number: 452998
    HTTP/1.1 500 Internal Server Error Connection: close Date: Wed, 10 Jun 2009 16:42:27 GMT Server: Microsoft-IIS/6.0 MicrosoftOfficeWebServer: 5.0_Pub X-Powered-By: ASP.NET Content-Type: text/html
    Thanks in advance!

    Hi,
    Try having a look at this document
    E-WL: Message From the ISAPI Plugin: "Cannot read 8192 bytes of postData from tmp file" [ID 664043.1]
    https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&doctype=PROBLEM&id=664043.1

  • Error while provisioning resource object to any user

    I get below error while trying to provision or reconcile any user to AD resource object. This was working fine till yesterday and suddenly started behaving otherwise.
    This error occurs while provisioning to the user i.e., as we de-selected auto save option on the process definition, it does not show up the process form while manually provisioning the resource instead show DOBJ.UPDATE_FAILED error on the web console.
    I tried provisioning the resource by removing all the pre-populate adapters from the process form with no luck
    This is on OIM 9.1.0.2 BP12
    Has anyone faced similar issue before or any pointers to resolve this ??
    ERROR,15 Aug 2013 16:11:38,482,[XELLERATE.DATABASE],Class/Method: tcDataBase/writeStatement encounter some problems: ORA-01407: cannot update ("IDM"."OIU"."OST_KEY") to NULL
    java.sql.SQLException: ORA-01407: cannot update ("IDM"."OIU"."OST_KEY") to NULL
            at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
            at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
            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:1030)
            at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
            at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:947)
            at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
            at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
            at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3462)
            at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1349)
            at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:159)
            at com.thortech.xl.dataaccess.tcDataBase.writePreparedStatement(Unknown Source)
            at com.thortech.xl.dataobj.PreparedStatementUtil.executeUpdate(Unknown Source)
            at com.thortech.xl.dataobj.tcTableDataObj.updateImplementation(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcOIU.provision(Unknown Source)
            at com.thortech.xl.dataobj.tcOIU.eventPostInsert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcUserProvisionObject.insertImplementation(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
            at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beans.tcUserOperationsSession.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beans.tcUserOperationsSession.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl.provisionObject(tcUserOperations_voj9p2_EOImpl.java:2651)
            at Thor.API.Operations.tcUserOperationsClient.provisionObject(Unknown Source)
            at sun.reflect.GeneratedMethodAccessor499.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(Unknown Source)
            at weblogic.security.Security.runAs(Security.java:41)
            at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
            at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
            at $Proxy68.provisionObject(Unknown Source)
            at com.thortech.xl.webclient.actions.DirectProvisionUserAction.handleVerifyResource(Unknown Source)
            at com.thortech.xl.webclient.actions.DirectProvisionUserAction.goNext(Unknown Source)
            at sun.reflect.GeneratedMethodAccessor492.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
            at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
            at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
            at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
            at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
            at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
            at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
            at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at com.thortech.xl.webclient.security.CSRFFilter.doFilter(Unknown Source)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(Unknown Source)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(Unknown Source)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(Unknown Source)
            at weblogic.servlet.internal.WebAppServletContext.execute(Unknown Source)
            at weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    ERROR,15 Aug 2013 16:11:38,485,[XELLERATE.SERVER],Class/Method: tcTableDataObj/updateImplementation encounter some problems: {1}
    com.thortech.xl.orb.dataaccess.tcDataAccessException
            at com.thortech.xl.dataaccess.tcDataAccessExceptionUtil.createException(Unknown Source)
            at com.thortech.xl.dataaccess.tcDataBase.createException(Unknown Source)
            at com.thortech.xl.dataaccess.tcDataBase.writePreparedStatement(Unknown Source)
            at com.thortech.xl.dataobj.PreparedStatementUtil.executeUpdate(Unknown Source)
            at com.thortech.xl.dataobj.tcTableDataObj.updateImplementation(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcOIU.provision(Unknown Source)
            at com.thortech.xl.dataobj.tcOIU.eventPostInsert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcUserProvisionObject.insertImplementation(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
            at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beans.tcUserOperationsSession.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beans.tcUserOperationsSession.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl.provisionObject(tcUserOperations_voj9p2_EOImpl.java:2651)
            at Thor.API.Operations.tcUserOperationsClient.provisionObject(Unknown Source)
            at sun.reflect.GeneratedMethodAccessor499.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(Unknown Source)
            at weblogic.security.Security.runAs(Security.java:41)
            at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
            at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
            at $Proxy68.provisionObject(Unknown Source)
            at com.thortech.xl.webclient.actions.DirectProvisionUserAction.handleVerifyResource(Unknown Source)
            at com.thortech.xl.webclient.actions.DirectProvisionUserAction.goNext(Unknown Source)
            at sun.reflect.GeneratedMethodAccessor492.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
            at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
            at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
            at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
            at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
            at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
            at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
            at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at com.thortech.xl.webclient.security.CSRFFilter.doFilter(Unknown Source)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(Unknown Source)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(Unknown Source)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(Unknown Source)
            at weblogic.servlet.internal.WebAppServletContext.execute(Unknown Source)
            at weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by [Nested Exception]:
    java.sql.SQLException: ORA-01407: cannot update ("IDM"."OIU"."OST_KEY") to NULL
            at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
            at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
            at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
            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:1030)
            at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
            at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:947)
            at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
            at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
            at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3462)
            at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1349)
            at weblogic.jdbc.wrapper.PreparedStatement.executeUpdate(PreparedStatement.java:159)
            at com.thortech.xl.dataaccess.tcDataBase.writePreparedStatement(Unknown Source)
            at com.thortech.xl.dataobj.PreparedStatementUtil.executeUpdate(Unknown Source)
            at com.thortech.xl.dataobj.tcTableDataObj.updateImplementation(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcOIU.provision(Unknown Source)
            at com.thortech.xl.dataobj.tcOIU.eventPostInsert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcUserProvisionObject.insertImplementation(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
            at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beans.tcUserOperationsSession.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beans.tcUserOperationsSession.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl.provisionObject(tcUserOperations_voj9p2_EOImpl.java:2651)
            at Thor.API.Operations.tcUserOperationsClient.provisionObject(Unknown Source)
            at sun.reflect.GeneratedMethodAccessor499.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(Unknown Source)
            at weblogic.security.Security.runAs(Security.java:41)
            at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
            at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
            at $Proxy68.provisionObject(Unknown Source)
            at com.thortech.xl.webclient.actions.DirectProvisionUserAction.handleVerifyResource(Unknown Source)
            at com.thortech.xl.webclient.actions.DirectProvisionUserAction.goNext(Unknown Source)
            at sun.reflect.GeneratedMethodAccessor492.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
            at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
            at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
            at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
            at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
            at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
            at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
            at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at com.thortech.xl.webclient.security.CSRFFilter.doFilter(Unknown Source)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(Unknown Source)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(Unknown Source)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(Unknown Source)
            at weblogic.servlet.internal.WebAppServletContext.execute(Unknown Source)
            at weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    ERROR,15 Aug 2013 16:11:38,490,[XELLERATE.SERVER],Class/Method: tcDataObj/update Error :Data Update Failed
    ERROR,15 Aug 2013 16:11:38,492,[XELLERATE.SERVER],Class/Method: tcDataObj/save Error :Data Update Failed
    ERROR,15 Aug 2013 16:11:38,493,[XELLERATE.DATABASE],Class/Method: tcDataBase/rollbackTransaction encounter some problems: Rollback Executed From
    java.lang.Exception: Rollback Executed From
            at com.thortech.xl.dataaccess.tcDataBase.rollbackTransaction(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.rollback(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.doRollback(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcOIU.provision(Unknown Source)
            at com.thortech.xl.dataobj.tcOIU.eventPostInsert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcUserProvisionObject.insertImplementation(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
            at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beans.tcUserOperationsSession.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beans.tcUserOperationsSession.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl.provisionObject(tcUserOperations_voj9p2_EOImpl.java:2651)
            at Thor.API.Operations.tcUserOperationsClient.provisionObject(Unknown Source)
            at sun.reflect.GeneratedMethodAccessor499.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(Unknown Source)
            at weblogic.security.Security.runAs(Security.java:41)
            at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
            at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
            at $Proxy68.provisionObject(Unknown Source)
            at com.thortech.xl.webclient.actions.DirectProvisionUserAction.handleVerifyResource(Unknown Source)
            at com.thortech.xl.webclient.actions.DirectProvisionUserAction.goNext(Unknown Source)
            at sun.reflect.GeneratedMethodAccessor492.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:597)
            at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
            at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
            at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
            at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
            at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
            at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
            at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
            at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at com.thortech.xl.webclient.security.CSRFFilter.doFilter(Unknown Source)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(Unknown Source)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(Unknown Source)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(Unknown Source)
            at weblogic.servlet.internal.WebAppServletContext.execute(Unknown Source)
            at weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    ERROR,15 Aug 2013 16:11:38,499,[XELLERATE.SERVER],Class/Method: tcDataObj/save Error :Insertion of dataobject into database failed
    ERROR,15 Aug 2013 16:11:38,501,[XELLERATE.DATABASE],Class/Method: tcDataBase/rollbackTransaction encounter some problems: Rollback Executed From
    java.lang.Exception: Rollback Executed From
            at com.thortech.xl.dataaccess.tcDataBase.rollbackTransaction(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.rollback(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.doRollback(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
            at com.thortech.xl.dataobj.tcUserProvisionObject.insertImplementation(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
            at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beans.tcUserOperationsSession.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beans.tcUserOperationsSession.provisionObject(Unknown Source)
            at com.thortech.xl.ejb.beans.tcUserOperations_voj9p2_EOImpl.provisionObject(tcUserOperations_voj9p2_EOImpl.java:2651)

    Duplicate Post

  • Error while trying to access table using DB Link

    Hi All,
    I had to access a table in another instance using a DB link. As there was no DB link, I was asked to create one and then access the table.
    The below query was used to create DB link on my current instance FDEV:
    CREATE PUBLIC DATABASE LINK to_link CONNECT TO apps IDENTIFIED BY appsdev USING 'ABCD';
    The DB link gets created successfully and when I query select * from all_db_links on my current instance FDEV, I see the DB link name.
    However, when I try to access the table, select * from x_stg@to_link on my current instance FDEV, this is resulting in an error as shown below:
    ORA-01017: invalid username/password; logon denied
    ORA-02063: preceding line from TO_LINK
    The TNS entry looks something like this:
    ABCD =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = abc.xx.com)(PORT = 1234))
    (ADDRESS = (PROTOCOL = TCP)(HOST = abc.xyz.com)(PORT = 1234))
    (CONNECT_DATA =
    (SID = ABCD)
    Can someone help me in this regard?
    Thanks in Advance!!
    Regards,
    AB

    You are trying to get 2 databases connected... so, you need to insure that FDEV can find and connect to ABCD.
    So, from your FDEV database server, you can do 2 things (from command prompt):
    1* tnsping ABCD (this will validate that the entry exists in your tnsnames.ora on your FDEV server, and that a valid listener can be found on remote server)
    when above command succeeds:
    2* sqlplus apps/appsdev@ABCD;
    when you have established the connection, then you are SURE that your can connect ABCD database from FDEV database server. It will also validate the username / password combination, create session privilige, account not locked, etc.....
    Please check the above, and post here the results.
    HTH,
    Thierry

  • Error while releasing the custom table

    Hi Everyone,
    Modified the User defined include files of a particular table for one of our requirements ( In the function group of the table maintenance generator ) and encountered an error while releasing the request to Quality server, the error disappeared after regenerating the table, this seem to be happening only when the user includes of a table maintenance is introduced/modified, why the release doesnt work when there is any change in the maintenance generator?,
    Rgds,

    Hi Sailatha,
    After modifying, you need to re-generate everything so that, the changes come in effect.
    Trying to release without re-generating will surely result in error.
    Regards,
    Raj

Maybe you are looking for

  • My mac book randomly shut off

    I bought my mac book pro last december and everything goes well until last Tuesday. My mbp suddenly shut off by itslef when I was playing legaue of legend. This never happened before, and that was my first time. After that, my mbp keep shutting down

  • Render Attachments in PDF files

    Hi, We have a user action in our process for which we want to allow users to add attachments to the form. We are then rendering the form as a PDF and e-mailing the form to a client. however we also want to e-mail any attachments that the user has add

  • ORA-01031: insufficient privileges despite oracle belonging to DBA group

    DB Version : 10.2.0.4.0 OS Version : Solaris 5.10 Os user oracle already belongs to DBA group. $ id -a uid=1001(oracle) gid=1100(oinstall) groups=1100(oinstall),1800(dba)But, i get the following error $ sqlplus / as sysdba SQL*Plus: Release 10.2.0.4.

  • I cannot use the password of my AppleID in iMessages or FaceTime???

    I have apple ID in email form, just got my Ipad 4 & iphone5 however the password is not working for facetime & imessage, however works for downloading apps and everything else. Please help as nobody reach me

  • HR implementation assitance

    There is a new group formed OraHRMS 7 Oracle HRMS Group Send a mail to [email protected] to Subscribe.