Error while updating lookup table through PSI

Hi,
I am trying to update a lookuptable through PSI using following code : 
$lookupTableGuid = $svcPSProxy.ReadLookupTables($EPMTYString, 0 , 1033).LookupTables | where {$_.LT_NAME -eq $Lookuptablename}
$lookuptable = $svcPSProxy.ReadLookupTablesbyUids($lookupTableGuid.LT_UID, 1 , 1033)
$lookuptablerowValues = $svcPSProxy.ReadLookupTablesbyUids($lookupTableGuid.LT_UID, 0 , 1033).LookupTableTrees
#get lookup table count
$lookuptableValues = $svcPSProxy.ReadLookupTablesbyUids($lookupTableGuid.LT_UID, 0 , 1033).LookupTableTrees
$count = $lookuptableValues.Count +1
#Insert the rows of table in Lookup Table
foreach ($rows in $table)
$value_Code = $rows.Item("Project_code")
$value_Name = $rows.Item("project_desc")
$GUID = [System.Guid]::NewGuid()
$LookupRow = $lookuptable.LookupTableTrees.NewLookupTableTreesRow()
$LookupRow.LT_STRUCT_UID = $GUID
$LookupRow.LT_UID = $lookupTableGuid.LT_UID
$LookupRow.LT_VALUE_TEXT = $value_Code
$LookupRow.LT_VALUE_DESC = $value_Name
$LookupRow.LT_VALUE_SORT_INDEX = ($count ++)
$lookuptable.LookupTableTrees.AddLookupTableTreesRow($LookupRow)
$error.clear()
#Exceptions Handling :
Try
$svcPSProxy.UpdateLookupTables($lookuptable , 0 , 1 , 1033)
Catch
write-host "Error updating the Lookup table, see the error below:" -ForeGroundColor Red -BackGroundColor White
write-host "$error" -ForeGroundColor Red
Initially, I tried to run with value of $value_code as "AACL", the code worked.
But when I tried to insert value of code as "AACL - ALKYL AMINES CHEMICALS LIMITED"
I got following error:
Exception calling "UpdateLookupTables" with "4" argument(s): "Response is not well-formed XML."
I could not understand why this error is appearing as I just added ' - ' to my code value. I checked for validity of ' -  'in the targeted column. No issue with that.
Please help.
Thanks and regards,
Jayesh

Hi All,
The entries are maintained from DB level.
Thanks for the help.
DVRK

Similar Messages

  • Error while updating bank details through ESS

    Hi All,
    While updating banks details through ESS, " change in the payroll past not possible".
    I have checked IT0003 and noticed that accounted to  31.08.2014.
    I assume this might be causing the error. Could you please advice with your expertise.

    Let me explain how it happens and why we don't allow change of bank records in past 1959820 - ESS: Wrong delimit of TC3 records For other scenarios where ESS behavior is similar to PA30 :
    An example i share
    For other scenarios where ESS behavior is similar to PA30 :
    Current date < End date of current payroll period
    Current date > Accounted to date in IT0003
    Payroll status: released for payroll Got error when reviewing the editin
    -g.
    Error: Online maintenance is locked in payroll area QM
    Current date < End date of current payroll period
    Current date < Accounted to date in IT0003
    Payroll status: released for correction Got error when reviewing the edi
    -ting.
    Error: Change in the payroll past not possible
    Current date < End date of current payroll period
    Current date < Accounted to date in IT0003
    Payroll status: released for payroll Got error when reviewing the editin
    -g.
    Error: Online maintenance is locked in payroll area QM
    When the infotype 0009 is modified, the system is regrouping data for the infotypes which are checked releavnt according to the table T582G. Retroactivity is checked via V_T582A In view V_T582A for infotype 0009 you will see, I guess, that the field 'Past entry all.' is maintained with an 'E'. This means that it is not allowed to maintain any infotype 0009 record for the payroll past. The important day for this check is the last day of the last accounted period. Retroactive change of infotype 0009 is not permitted as the bank transfer is already done. This is the reason why this infotype can not be changed retroactively. For bank records end user must not be allowed to maintain past date records and should not be allowed to change any other detail of record when payroll for that period is already run. for e.g. if current date is 26/11/2013. Then end user must not be allowed to edit other bank record effective from 25/11/2013. We should not allow end user to edit record effective from 27/11/2013 because payroll is already run for that period. If user is allowed to change then data maintained in infotype 9 and information send to payroll may be different. You can use BAdi HRXSS_PER_BEGDA,to default the next payroll period

  • Error while updating the records through a DB link

    Hi ,
    I am getting the below error while updating around 15 thousands records, i suspect it to be timeout but not sure.Please can you let me know what solutions needs to be taken.
    Not Found
    The requested URL /pls/htmldb/wwv_flow.show was not found on this server.
    Not Found
    The requested URL /pls/htmldb/wwv_flow.show was not found on this server.
    Oracle-Application-Server-10g/10.1.2.0.0 Oracle-HTTP-Server Server at htmldb.oraclecorp.com Port 80
    Object Type TABLE Object GWB_GRN_GRP_COUNTRIES_LU
    Table Column Data Type Length Precision Scale Primary Key Nullable Default Comment
    GWB_GRN_GRP_COUNTRIES_LU NAME Varchar2 720 - - - - - -
    ALIAS Varchar2 720 - - - - - -
    ACTIVE Varchar2 3 - - - - - -
    REGION Varchar2 300 - - - - -
    1 - 4
    Thanks & Regards,
    Ramu

    Hi Sangu,
    See if the following notes help you:
    Error when calling API from SQL*Developer, eg. ORA-01403 in API OE_ORDER_PUB.PROCESS_ORDER (Doc ID 1054295.1)
    Cancellation Of Transfer Orders Is Not Possible - ORA-01403: no data found in Package OE_Order_PVT Procedure Process_Order (Doc ID 391307.1)
    Thanks &
    Best Regards,

  • Error while updating JDBD table

    Hi all,
    Am getting the error at the receiver JDBC CC. I have checked the conceren mapping also . i t is working under test tab.
    Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'SAP_STG_AP_SAP_REF' (structure 'Statement'): com.sybase.jdbc3.jdbc.SybSQLException: Attempt to insert duplicate key row in object 'SAP_STG_AP_SAP_REF' with unique index 'SAP_STG_AP_SAP_REF_IX1'
    Any sugestion?
    Thanks,
    kanan

    ya issue is while updating the jdbc table ..duplicate entries are coming...I have check the maping xml also with the same data..I think I need to change the mapping -to remove the duplicate (entry in that field) using some function. Any idea which will be the function?? + please let me know how to find out which field is the error refering to in the jdbc table-- with unique index 'SAP_STG_AP_SAP_REF_IX1'
    In my scenario Action is INSERT. At the mapping output, there are some entries (5-6 ACCESS) where all the fields under the ACCESS are similar
    kanan

  • Error while updating DBDIFFVIEW table

    Hi,
    When we are doing new entries into the table: DBDIFFVIEW, the error:
    " Fill table key for table DBDIFFINFO only up to position 040 only  " is coming.
    Since updating the table at DB level directly is not advisable, please advise to correct the above error.
    Thanks & Regards,
    DVRK

    Hi All,
    The entries are maintained from DB level.
    Thanks for the help.
    DVRK

  • Getting "JTA transaction is not present" error while updating db table.

    Hi All,
    In one of my BPEL process, In a loop, I am updating value of database column Flag from 0 to 1. It was working fine in dev environment, but failed in Prod with below errors, Can Any one suggest on this.
    There is a system exception while performing the BPEL instance, the reason is "JTA transaction is not present or the transaction is not in active state. The current JTA transaction is not present or it is not in active state when processing activity or instance "1020112-BpInv7-BpSeq14.87-2". The reason is The execution of this instance "1020112-BpInv7-BpSeq14.87-2" for process "UpdateOrderReqABCS" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information.. Please consult your administrator regarding this error. ". Please check the error log file for more infromation. Please try to use bpel fault handlers to catch the faults in your bpel process. If this is a system exception, please report this to your system administrator. Administrator could perform manual recovery of the instance from last non-idempotent activity or dehydration point.
    OPMN logs:
    <2010-05-05 01:56:49,395> <ERROR> <gemptp.collaxa.cube.engine> The execution of this instance "1020112-BpInv7-BpSeq14.87-2" for process "UpdateOrderReqABCS" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information.
    The current JTA transaction is not present or it is not in active state when processing activity or instance "1020112-BpInv7-BpSeq14.87-2". The reason is The execution of this instance "1020112-BpInv7-BpSeq14.87-2" for process "UpdateOrderReqABCS" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information..
    The current JTA transaction is not present or it is not in active state when processing activity or instance "1020112-BpInv7-BpSeq14.87-2". The reason is The execution of this instance "1020112-BpInv7-BpSeq14.87-2" for process "UpdateOrderReqABCS" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information..
    The current JTA transaction is not present or it is not in active state when processing activity or instance "1020112-BpInv7-BpSeq14.87-2". The reason is The execution of this instance "1020112-BpInv7-BpSeq14.87-2" for process "UpdateOrderReqABCS" is supposed to be in a jta transaction, but the transaction is not present or in active state, please turn on the application server transaction debug logs to get more information..
    Thanks in advance.

    I can envisage this happening only in a case where the update is taking a longer time than the value of JTA transaction timeout.
    Is this happening for all BPEL instances or some of them get thru succesfully ?
    Are you EVER updating that particular row of your table ( before/after) ?
    -Shishir

  • Error while updating crmd_orgman table

    i am facing shot dump due to FM CRM_ORGMAN_UPDATE_DU
      records to insert
    IF NOT it_records_to_insert IS INITIAL.
    >>>>    INSERT crmd_orgman FROM TABLE it_records_to_insert.
        IF sy-subrc NE 0.
          MESSAGE a002(crm_order_misc) WITH gc_object_name-orgman.
        ENDIF.
      ENDIF.
      records to update
      IF NOT it_records_to_update IS INITIAL.
        UPDATE crmd_orgman FROM TABLE it_records_to_update.
        IF sy-subrc NE 0.
          MESSAGE a002(crm_order_misc) WITH gc_object_name-orgman.
        ENDIF.
      ENDIF.
    instad of going to UPDATE program is continuing with INSERT command
    due to table is already having record corresponding GUID it is showing error message(sy-subrc = 4)
    Runtime Errors         SAPSQL_ARRAY_INSERT_DUPREC
    Exception              CX_SY_OPEN_SQL_DB
    as i disguss in OSS note they gave me solution to update kernal
    if anyone have idea about this pl help me out.

    Please post ABAP-questions in one of the <a href="https://forums.sdn.sap.com/index.jspa#42">ABAP forums</a>.
    My small addition to the existing hints: define the work area using LIKE LINE OF, the LIKE keyword is a very nice way of ensuring that data types match. You can reference input parameters, other locally defined variables and more.
    DATA: t_ydata TYPE STANDARD TABLE OF ydata,
          l_ydata LIKE LINE OF t_ydata[].

  • Error while updating spatial table

    Hi,
    When i try to update a spatial table with the following syntax i get the below error,
    UPDATE tab1 SET MP = 1, AT = 3,
    RDATE = TO_DATE('30:04:2001:16:04:08', 'DD:MM:YYYY:HH24:MI:SS'),
    ODATE = TO_DATE('30:12:1899:00:00:00', 'DD:MM:YYYY:HH24:MI:SS'),
    REP = 1
    WHERE ID = 7
    ERROR at line 1:
    ORA-29877: failed in the execution of the ODCIINDEXUPDATE routine
    ORA-00600: internal error code, arguments: [kcbgtcr_1], [], [], [], [], [],
    Any idea why is this happening??
    Thanks
    Shiva
    null

    Hi Dan,
    we are using oracle 8.1.6.3 on Solaris 8.
    Table description is as follows.
    ID NOT NULL NUMBER(10)
    ROUTE_NUMBER NOT NULL VARCHAR2(255)
    MP NUMBER(8,3)
    GEOM MDSYS.SDO_GEOMETRY
    AT NUMBER(10)
    RDATE DATE
    CDATE DATE
    ODATE DATE
    REPORT NUMBER(10)
    CLEAR NUMBER(10)
    OFFER NUMBER(10)
    X NUMBER(8,6)
    Y NUMBER(8,6)
    This table has a valid entry in the user_sdo_geom_metadata table. And the spatial index is valid.
    Thanks
    Shiva

  • Error while updating customer data through IDOC.

    hi all,
    I am using the function module "IDOC_INPUT_DEBITOR" to update the customer master data but i was getting an error "editing was terminated".Please help to solve this problem.
    regards,
    Suresh.

    <Font Color='Red'>Valid Values for PlanningSystem
    </Font>
    bop_MRP
    bop_None
    <Font Color='Red'>Valid Values for ProcurementMethod
    </Font>
    bom_Buy
    Bom_Make
    <Font Color='Red'>Valid Values for GLMethod
    </Font>
    glm_WH
    glm_ItemClass
    glm_ItemLevel
    <Font Color='Red'>Valid Values for ItemType
    </Font>
    it_Items
    it_Labor
    it_Travel
    Valuation Method would be defined in the System Init > Company Details ....Basic Initialization TAB
    Default Valuation Method drop down
    Suda

  • Get Error while update the User defined row table through DSK Code

    Hi experts,
    I have got an error while updating the user row defined table.
    Error is - "Invalid row"
    I have created one master table "@CBF_FARM " and Child table "@CBF_FAR1"
    First i inserted 5 record in the child table so in my my child table there are 5 Line id (1,2,3,4,5 one for each row).
    after that i delete 2 rows (3rd & 4th row) from child table now in my child table there are 3 rows( Line id 1, 2, 5). Please See attachment.
    Now i am updating  the last record of child table through Code  (Line id is 5)  from other form, then i got error  invalid row.
    Following Code used for updating the user defined child table.
      SAPbobsCOM.GeneralService oGeneralService1 = null;
                                    SAPbobsCOM.GeneralData oGeneralData1 = null;
                                    SAPbobsCOM.GeneralDataParams oGeneralParams1 = null;
                                    SAPbobsCOM.CompanyService sCmp1 = null;
                                    SAPbobsCOM.GeneralData oChild1 = null;
                                    SAPbobsCOM.GeneralDataCollection oChildren1 = null;
                                    sCmp1 = clsAddOn.LDNA_Company.GetCompanyService();
                                    oGeneralService1 = sCmp1.GetGeneralService("CBF_FARM");
                                    // Get UDO record
                                    oGeneralParams1 = ((SAPbobsCOM.GeneralDataParams)(oGeneralService1.GetDataInterface(SAPbobsCOM.GeneralServiceDataInterfaces.gsGeneralDataParams)));
                                    oGeneralParams1.SetProperty("Code", oForm.Items.Item("edtFarmCd").Specific.Value);
                                    oGeneralData1 = oGeneralService1.GetByParams(oGeneralParams1);
                                    // Add lines on UDO Child Table
                                    oChildren1 = oGeneralData1.Child("CBF_FAR1");
                                    // Create data for rows in the child table
                                    SAPbouiCOM.Item oItem = oForm.Items.Item("cmbShed");
                                    oCombo = oItem.Specific;
                                    string ShedCode = oCombo.Selected.Value;
                                    ldna_Rec = clsAddOn.LDNA_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.BoRecordset);
                                    string strQuery1 = "select LineId from [@CBF_FAR1] where U_ShedCd = " + ShedCode;
                                    ldna_Rec.DoQuery(strQuery1);
                                    oChild1 = oChildren1.Item(ldna_Rec.Fields.Item("LineId").Value - 1);
                                    oChild1.SetProperty("U_Status", "Ready For Schedule");
                                    //Update the UDO Record
                                    oGeneralService1.Update(oGeneralData1);
    Please Help me it is an urgent requirement,
    -Regards
    Vikas

    hi.
    Error is - "Invalid row"
    Now i am updating  the last record of child table through Code  (Line id is 5)  from other form, then i got error  invalid row.
    As per my knowledge
    What i understood is you have 5 lines and you are going to be update 5th line
    am i correct..
    while u are updating the line in child table
    you have to consider like this..
    line number         u have to update like
    1                                        0
    2                                        1
    3                                        2
    4                                        3
    5                                        4
    which means in child table treat
    line 1  as 0
    line 2 as  1
    line 5 as 4
    If you want to update the line 5 u have to mention 4 th line

  • ERROR WHILE UPDATING TABLE 'COBK'

    DEAR ALL!
    I am facing the following error while posting goods issue through VL01N and stock posting through MB1C ( m.type 521 without production order ).
    Table COBK is not updated wile doing those trasactions, this cause the runtime error.how to solve this issue?
    I searched SAP notes but problem not yet solved.Kindly go through the following error and give your suggestions.
    Thanks in advance.
    Error analysis
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_OPEN_SQL_DB', was
    neither
    caught nor passed along using a RAISING clause, in the procedure
    "INSERT_TABLES" "(FORM)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    If you use an ABAP/4 Open SQL array insert to insert a record in
    the database and that record already exists with the same key,
    this results in a termination.
    (With an ABAP/4 Open SQL single record insert in the same error
    situation, processing does not terminate, but SY-SUBRC is set to 4.)
    Sivasubramaniam,
    SD consultant.

    I am pretty sure table COBK is a the Cost Center Accounting table.
    You need to get your Finance consultant to check the periods and years are open in CCA. In fact check that they want to post to CCA.
    Also check the number ranges have been set up correctly for the type of postings.
    Please award points if this is useful.

  • Error while updating table in database.

    Hi,
    While updating a table I came across following error-
    ORA-01552: cannot use system rollback segment for non-system tablespace 'USERS'
    I have following undo parameters set in my parameter file-
    undo_management=auto
    undo_tablespace=UNDOTBS1
    If I have seperate undo tablespace then why Oracle is trying to use System undo segments?
    Thanks,

    Let's assume your settings are correct. However the error means you don't have an UNDO tablespace available. It could be because your tablespace doesn't exist, or you think you have started up your instance with this initialization parameter file.
    You should make sure you have your undo tablespace attached to your database, and you are using your correct initialization file.
    Have you edited this parameter in your pfile? Or have you configured this parameter in you spfile?
    Issue a query against v$rollname, you should see something simmilar to this:
    SQL> SELECT * FROM V$ROLLNAME;
    USN NAME
    0 SYSTEM
    1 _SYSSMU1$
    2 _SYSSMU2$
    3 _SYSSMU3$
    4 _SYSSMU4$
    5 _SYSSMU5$
    6 _SYSSMU6$
    7 _SYSSMU7$
    8 _SYSSMU8$
    9 _SYSSMU9$
    10 _SYSSMU10$
    If you can't then definitely you are not starting up your database with undo segments.

  • While updating a table i am getting ORA-00600 error.

    Hi all,
    While updating a table i am getting the following:
    **SQL Error: ORA-00600: internal error code, arguments: [qkebCreateConstantOpn1], [], [], [], [], [], [], [], [], [], [], []**
    **00600. 00000 - "internal error code, arguments: [%s], [%s], [%s], [%s], [%s], [%s], [%s], [%s]"**
    I am not getting how to proceed on this. Please guide me.
    Thanks,
    Ritesh

    While performing some unspecified action (no DML) on an unknown table (no DDL) in an unknown version and edition of the Oracle database you had an untrapped Oracle exceptions.
    There are too many unknowns to help you beyond recommending you open an SR at MyOracleSupport.

  • Error in Updating the Prices through DTW

    Hello Expert,
                         I am getting an error while updating the item prices through DTW.
    I upload all the items in SAP and prices in Price List 01
    Now I create One more Price List with Other name and want to update the Price in this Pricelist for all items through DTW
    but system giving an error "this entry is already present in Table(ODBC-2035) Application Defined or Object Defined ErrorItems"
    SAP 8.8
    PL 5
    Regards
    Atif

    What Neetu suggests is great.  However, you will run into problems if your users have deleted a price list.  Perform the following query as suggested:
    SELECT T0.[ListNum], T0.[ListName] FROM OPLN T0
    Copy this to excel and create a further column called 'RealNumber' or something
    Start numbering cells in this new column from 0 to whatever you need to cover all the lists from the database.
    The number in the 'Real Number' column is the one you should insert into the LineNum field in the prices spreadsheet.
    Hope this helps.  Reply if you need more guidance.
    Regards
    Bob

  • Error while updating decimal places in general settings

    Hii All
             I have got an error while updating Decimal places in General Settings
    Cannot update while another user is connected to the company i have checked, there is no other user logged in, i could add other settings but the problem is only with Decimal Places
    Note : there are no postings yet, a fresh database for a new client
             what could be the possible reason
                                                                 thanks
                                                                         RIYAZ

    Hiii All
          As a forum rule, i have initially gone through with the existing threads and then i was force to post a thread,
              would be helpfull if there is any other way..
                                                Thanks
                                                         RIYAZ

Maybe you are looking for