Deleting a distributor results in E_ADEPT_DATABASE

Hello,
Our test ACS4 setup is pretty much plain Jane and, after trying to delete a distributor, I got an error. That distributor's inventory is empty. Here's the relevant log information:
TRACE AdeptServlet: request POST http://***************:8080/admin/ManageDistributor
TRACE DefaultSQLDatabaseConnection: Open jdbc:mysql://127.0.0.1:3306/adept with user=********
TRACE DefaultSQLDatabaseConnection: SELECT distid, name, description, disturl, notifyurl, publickey, sharedsecret, maxloancount, linkexpiration FROM distributor WHERE distid = ?
TRACE DefaultSQLDatabaseConnection:   obj 1 = 00000000-0000-0000-0000-000000000001
TRACE DefaultSQLDatabaseConnection: SELECT distid, name, description, disturl, notifyurl, publickey, sharedsecret, maxloancount, linkexpiration FROM distributor WHERE distid = ?
TRACE DefaultSQLDatabaseConnection:   obj 1 = 00000000-0000-0000-0000-000000000001
TRACE DefaultSQLDatabaseConnection: SELECT distid, nonce, expiration FROM distusednonce WHERE distid = ? AND nonce = ?
TRACE DefaultSQLDatabaseConnection:   obj 1 = 00000000-0000-0000-0000-000000000001
TRACE DefaultSQLDatabaseConnection:   obj 2 = [B@372a96
TRACE DefaultSQLDatabaseConnection: INSERT INTO distusednonce(distid, nonce, expiration) VALUES(?, ?, ?)
TRACE DefaultSQLDatabaseConnection:   obj 1 = 00000000-0000-0000-0000-000000000001
TRACE DefaultSQLDatabaseConnection:   obj 2 = [B@372a96
TRACE DefaultSQLDatabaseConnection:   obj 3 = Wed Jul 29 18:44:34 PDT 2009
TRACE DefaultSQLDatabaseConnection: DELETE FROM distusednonce WHERE expiration < ? AND distid = ? AND nonce = ?
TRACE DefaultSQLDatabaseConnection:   obj 1 = Wed Jul 29 18:14:34 PDT 2009
TRACE DefaultSQLDatabaseConnection:   obj 2 = 00000000-0000-0000-0000-000000000001
TRACE DefaultSQLDatabaseConnection:   obj 3 = [B@372a96
TRACE DefaultSQLDatabaseConnection: DELETE FROM distributor WHERE distid = ?
TRACE DefaultSQLDatabaseConnection:   obj 1 = 5b0c03ac-4e73-4032-8c3a-a29b8a97c934
ERROR DefaultSQLDatabaseConnection: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`adept`.`distributionrights`, CONSTRAINT `distributionrights_ibfk_1` FOREIGN KEY (`distid`) REFERENCES `distributor` (`distid`))
ERROR AdeptServlet: database error [***************]
com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot delete or update a parent row: a foreign key constraint fails (`adept`.`distributionrights`, CONSTRAINT `distributionrights_ibfk_1` FOREIGN KEY (`distid`) REFERENCES `distributor` (`distid`))
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2870)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1573)
    at com.mysql.jdbc.ServerPreparedStatement.serverExecute(ServerPreparedStatement.java:1169)
    at com.mysql.jdbc.ServerPreparedStatement.executeInternal(ServerPreparedStatement.java:693)
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1404)
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1318)
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1303)
    at com.adobe.adept.persist.DefaultSQLDatabaseConnection.delete(DefaultSQLDatabaseConnection. java:392)
    at com.adobe.adept.admin.servlet.ManagePersistent.handleDelete(ManagePersistent.java:152)
    at com.adobe.adept.admin.servlet.ManagePersistent.doPost(ManagePersistent.java:325)
    at com.adobe.adept.admin.servlet.ManagePersistent.doPost(ManagePersistent.java:40)
    at com.adobe.adept.servlet.AdeptServlet.doPost(AdeptServlet.java:184)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.ja va:583)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
    at java.lang.Thread.run(Unknown Source)
TRACE AdeptServlet: request end http://***************:8080/admin/ManageDistributor
We're using:
Java:jre6_14
MySQL:5.1
Thanks for any help. (Not that deleting distributors is *that* crucial but I'd rather not be left with cluttering crud if I can help it.)
TS

Probably a login error and then using it after a login error:
Once you are in the admin console try to login in again
A failure should look like
Content Server Request:
http://.../admin/ManageDistributor
<request action="get" auth="builtin" xmlns="http://ns.adobe.com/adept">
  <nonce>v0f8tAAAAAU=</nonce>
  <expiration>2011-08-12T19:06:31-00:00</expiration>
  <distributorData>
    <distributor>urn:uuid:00000000-0000-0000-0000-000000000001</distributor>
    <sharedSecret>...</sharedSecret>
  </distributorData>
  <hmac>JNJcIdZrABSxfvvthCRDunMFgJI=</hmac>
</request>
Warning:
<response xmlns="http://ns.adobe.com/adept"/>
A success should look like:
Content Server Request:
http://.../admin/ManageDistributor
<request action="get" auth="builtin" xmlns="http://ns.adobe.com/adept">
  <nonce>v0mcOQAAAAY=</nonce>
  <expiration>2011-08-12T19:08:17-00:00</expiration>
  <distributorData>
    <distributor>urn:uuid:00000000-0000-0000-0000-000000000001</distributor>
    <sharedSecret>...</sharedSecret>
  </distributorData>
  <hmac>Z3AlWcnk5sBth46o4hyFspzdF5c=</hmac>
</request>
Content Server Response:
<response xmlns="http://ns.adobe.com/adept">
  <distributorData>
    <distributor>urn:uuid:00000000-0000-0000-0000-000000000001</distributor>
    <sharedSecret>...</sharedSecret>
    <distributorURL>built-in</distributorURL>
    <name>builtin</name>
    <description>Built-in distributor for administrative purposes</description>
    <maxLoanCount>0</maxLoanCount>
    <linkExpiration>604800</linkExpiration>
  </distributorData>
</response>

Similar Messages

  • Delete every payroll results in the system

    Hi experts,
    There is a special Test system where External useres can login to the system, so we'd like to delete every paroll results in the system.
    My question is how can I do that * correctly & efficiently*?
    I know that there is a report for that:  "RPUDEL20"  but imagine a company with 14.000 employees. So using the logical databse, and deleteing the paroll results ony-by-one, will took more than a day
    My idea is to delete every record in the tables:
    HRPY_RGDIR
    HRPY_WPBP
    HRPY_GROUPING
    P01O_ZVB_RR
    This is definetelly the fastest way, but is a good solution?
    I mean what about the 0003 infotype (payroll status)  and other relations to the payroll results? What will happen if I delete the tables?
    There is no payroll testing in this system, we're using this system for  ESS testing, so the payroll results are not relevant, but all other masterdata (PA and PD infotypes) are relevant.
    I'm happy to hear any idea
    Bye
    N.

    Hi everyone,
    Thank you for the answers,  but I don't understand how can the LSMW help me. As I know the LSMW is a data migration tool. I don't want to import anything to the sap system, I just want to delete the existing payroll results. How does the LSMW help me in this?
    Thanks
    N.

  • Off cycle posting reversal and deletion of payroll results

    Hi Experts, We have an scenario employee was locked for payroll for past 4 periods in IT0003. Their was an off-cycle payment to employee and posted to accounting  ( when employee regular payroll was locked). Now  their is a requirement to reverse the posting of off-cycle payment as off cycle payment is not required. After the reversal of posting of off-cycle payment. Do we have to delete the payroll results of off-cycle through PU01 before running the current month payroll for the employee.Now the employee is regular payroll it will trigger retro for past 4 periods. Please advise. Regards, IFF

    Hi I FF,
    if you don't want that off-cycle amounts to be added in the employee gross must and should delete the payroll run after reversing the FI posting.

  • Bulk deleting of payroll results in production

    Dear all,
    I have run payroll for all employees into production as per client request, but now they want to delete all payroll results and again by maintaining few more details of employees they want to run payroll for all.
    Kindly tell me what tcode or program i can use to do this, as I already tried few tcodes like RPUDEL20, RH_DELETE_STORED_PAYROLL_RSLTS & HR_DELETE_LEGACY_DATA_PAYROLL to delete records, but all these are not existing into the DEV, QUA, PRD.
    Please suggest me some valuable solutions.
    Thanks & regards,
    N Verma

    Hi Verma,
    PU01 is always better to Delete the payresults in the Production system.
    If employees are huge in number,you have to go with BDC for PU01 tcode.
    If employees  are small  in number we can use PU01 for each employee to delete the payroll results.
    There would not be any negative effects by using PU01.
    Regards,
    Vsai.

  • ECC 6.0 with PU01 (Delete Current payroll result)

    Hi,
    We are going to SAP 4.7 to ECC 6.0. We are facing in problem PU01 (delete current payroll result).
    we have made a BDC for deleting payroll in mass. In ECC 6.0 output screen is changed, so my BDC is not
    working. In ECC 6.0,  PU01 when I directly run, it is correct. But I am going with SHDB TCode (for recording) Delete button
    is not working (Give SAP 4.7 version screen with SHDB). I can't delete payroll result. how can I record it?
    Plese help.
    Thanks & Regards
    Neelesh Sonkar

    HI
    While searching the forum I cam accross the following thead.
    Re: Unable to record transaction PU01 in ECC6 HR
    Hope this helps
    Param

  • How to delete the payroll result by batch? have any program to do this?

    Hi,
    how to delete the payroll result by batch? have any program to do this?

    With standard payroll deletion (PU01), SAP  will not allow payroll results to be deleted if it already reaches certain steps of payroll process (e.g. Pre-DME, DME); instead, you would have to do payroll a void or payroll reversal. This utility doens't check for that, and only delete payroll results based on the criteria given. This therefore could cause inconsistency in production if your payroll process already surpasses certain steps.
    Rgds.

  • Delete the Payroll Result

    Hi,
    When i want to delete the Payroll Through PU01 transaction, it is showing below given message -
    Deletion forbidden! Result was posted with posting run 0000004008 (run type PP)
    Message no. 3G801
    Diagnosis
    The payroll result cannot be deleted because it has already been posted with posting run 0000004008 for run type PP.
    How can i delete the same
    Regards..

    Goto PCP0 -> Edit -> Filter -> Delete Filter.
    After this you will be able to see run 0000003973.
    Thanks dear..
    After find this number..i reverse this.
    After that i run the payroll again and see in form 16. Some changes are there like Notice pay not showing there. Basic salary has been modified. etc..
    My Main problem was: - Notice Pay is not deducting it's amount from Gross Emoluments.
    But after that Notice pay row is not appearing.. and also some modifications have been made in other values..

  • Exceptions for deleting a payroll result

    Hello Experts,
    Is there any situation when system does not allow us to delete a payroll result????
    If yes.... in what all situations will the system not allow us to delete payroll result???
    All inputs are appreciated.........
    Thanks,
    Janga K.

    Hi,
    You can only delete a payroll result in the following cases:
    1. The employeeu2019s master data are no longer processed.
    2. Payment was not yet arranged for the employee.
    3. If you are working in a live system, the payroll control record for the payroll area to which the employee belongs should not yet have the status End of payroll.
    Source: help.sap.com
    Donnie

  • Deleting existing payroll results.

    can we delete the existing fields in standard Infotypes.
    and how can we delete existing payroll results from RT and CRT. please give the procedure.
    how can we identify an employee termination date? using infotype(41) i 'mean which field.
    and tell the procedure.
    if possible please provide  the fields of infotypes to my id [email protected]
    Thanks in advance.

    Hi Vamsi,
    If you want to Code the syntax then this might help you
    DATA:  loeschkey LIKE pcl2-srtfd.
    * loeschkey  contains Pernr and the sequence number of the Payroll Result.
    * This statement can be used with a loop to delete the result if multipal records
    * have to be deleted.
    DELETE FROM pcl2 CLIENT SPECIFIED
                        WHERE relid  = " ID of the Cluster .... it is country specific
                        AND      client = sy-mandt " Client Number
                        AND      srtfd   = loeschkey. "
    There are also standard reports available for deleting single or multiple payroll results.
    Have a look at this <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/profile?userid=1894412">tread</a>
    ~Bhawanidutt.
    PS: Close the thread and reward points if solved.

  • Dear All, thanks in advance i have one doubt please clarify this  what it is can we delete the payroll result in production client .yes we can delete the payroll result by PU01 Tcode .But my question is

    what are the scenarios we delete the payroll results ,can we suggest the client to delete the payroll result.

    Hi,
    I would not recommend that you delete the payroll results. What is your issue? Can you provide more background, there may be other options...
    Will

  • Delete old saved results of BI reports

    Hi All,
    I have a query on BI reports
    In the BI reports, any user can save the result of the report.
    Is there any option to delete old saved results.
    If so How can we delete the results?
    Thanks in advance,
    Regards,
    Sujana

    Hi,
    Look at note 963393.
    Hope it helps (points are welcome),
    Gili

  • T code to delete bulk payroll results

    Hi,
    Can anyone tell me the T Code for deleting Bulk Payroll Results.
    Thanks,
    Nikhat

    Try running report RPUDEL20, it will delete the cluster results
    - Ashish

  • Deleting transferred payroll result

    Hi Gurus,
    I run the bank transfers through DME. But now management want some changes from back date.
    so I am trying to delete payroll result. but error message displays, that result alredy transferred.
    I not posted result to FI, but done the DME-document generated for the same.
    So, anybody can tell me how to delete the payroll result which has been transferred by DME.
    Thanks in advance
    Sandeep

    Hi Sandeep,
    When you say back dated changes, do you mean you will be changing the master data which will affect employees pay? If this is the case, then I think you can make the changes and run the payroll again without having to delete the payroll results. The system will consider the payments that have already been transferred and will transfer the remaining amount.
    I am not sure why you decided to delete the results but if it is because of the scenario above, then I don't think you need to delete the results.
    Akshay.

  • Deleting I Tunes results in CD and DVD readers error (corrupted driver)

    recently I deleted I Tunes from my computer; as a result, my CD and DVD readers were no more available(no more recognized by the operating system and have disappeared from the computer window); the error message was "corrupted driver, error code 39). I had to reinstall I Tunes to fix this bug.
    Does someone know anything about this bug and how to fix it without being obliged to reinstall I Tunes ?
    *I find absolutely abnormal that an official garanteed virus free sofware can corrupt my computer operating system.*

    The issue may relate to the operating system pointing to the associated drivers, rather than reinstalling, try to locate the appropriate drivers and reinstall.
    Todd Nadrich
    Software Engineer

  • Recursive delete cause error: result set already closed

    hi, will appreciate if someone can help me out on this. i need to delete the thread in a forum such that everytime administrator clicks to delete a thread, i need to recursively delete all the children too. however, when i have a thread with, say 2 children, only the 1st child can be deleted. i got this error msg: result set already closed. below is my codes. anyone can help? thks!
    public boolean deleteChat (long lngChatID) {
    strSQL = "delete from Chat_Tbl where Chat_Id = ? ";
    pst1 = con.prepareStatement(strSQL);
    pst1.setLong(1,lngChatID);
    intRowsUpdated = pst1.executeUpdate();
    strSQL = "select Chat_Id " +
    "from Chat_Tbl " +
    "where Parent_Id = ? ";
    pst1 = con.prepareStatement(strSQL);
    pst1.setLong(1,lngChatID);
    rs1 = pst1.executeQuery();
    while (rs1.next()) {
    lngNewChatID = rs1.getLong(1);
    deleteChat(lngNewChatID);
    }

    Hello
    strSQL = "delete from Chat_Tbl where Chat_Id = ? ";Can this statement be modified like this
    strSQL = "delete from Chat_Tbl where Parent_Id = ? ";
    HTH
    VJ

Maybe you are looking for

  • Why doesn't my entire playlist Sync?

    I have many playlists that this is happening with. I have a iPhone 6Plus. For example, one playlist on my iMac has 98 songs in it. I have that playlist set to sync with my iPhone. After the sync is done out of the 98 songs only 26 show up on the iPho

  • Trial Version of Acrobat 10 Pro

    I am looking at 508 compliance and wanting to test Acrobat Pro. I don't have the Mac OS requirements to run Acrobat XI Pro. Is it possible to get a trial Version of Acrobat 10 Pro?

  • Printing problems in Mavericks

    In Mavericks, my HP laser printers (P2015dn and 3600n) won't print properly from PDF files accessed online -- they print, on one page, 19 miniatures of the lower righthand corner of the page.  If I download the PDFs from the net and print from the do

  • 9i Thread management

    I am involved in building an application using using Oracle9i App server, IBM MQSeries message queueing and Enterprise Java beans (to name a few things). The question I need to ask is: Does the Oracle 9i AS manage threading of things like JavaBeans?

  • About CAST function in oracle

    Hi , Now iam migrating my system from SQL to ORACLE 9i. Here USERID is of NUMBER(38) type   and DATA is of LONG type in SQL. I  have table named :      PEOPLE  and DBATABLE and i run the following code in oracle but found the following error... ORA-0