How to Replace/Update existing book in ACS4?

I want to know how to replace/upadate book in ACS4. ? I trite with replace request but it give error that duplicate item in inventory?

Edit: For things below to work, you do need to edit packaging.conf as xnormand stated above.
This seems to be what you said your tried, but since you were not very detailed:
If you use the tool UploadTest bundled with ACS4.1 distribution (it has to be 4.1 or above; 4.0's will not replace already existing resources), create the associated XML:
<?xml version="1.0" encoding="UTF-8"?>
<package xmlns="http://ns.adobe.com/adept">
   <action>replace</action>
   <resource>urn:uuid:00000000-0000-0000-0000-000000000000</resource>
   <metadata xmlns:dc="http://purl.org/dc/elements/1.1/">
      <dc:title>XXXXXXX</dc:title>
      <dc:creator>XXXXXXX</dc:creator>
      <dc:publisher>XXXXXXX</dc:publisher>
      <dc:format>application/epub+zip</dc:format>
   </metadata>
   <dataPath>/home/myuser/epubs/filename.epub</dataPath>
</package>
Note that, in the XML:
<resource> has to be exactly the same as the UUID of the book already in ACS that you intend to replace.
There is a directive <action>replace</action>.
You use <dataPath> if you'd prefer to package an epub residing not on your local machine, but on the server. Inside it you specify the path where it resides on the server.
Then run the tool from the Terminal like this:
java -Xmx512M -jar /pathTo/UploadTest-1_2.jar http://domain.com/Package ~/epubs/ -datapath -xml -jpg -pass yourpassword
Where:
/pathTo/UploadTest-1_2.jar points to ACS 4.1 or above's UploadTest sample tool.
http://domain.com/Package is the URL to your server's ACS's install of the Packaging service (depending on your server's install, port may have to be specified like http://domain.com:8080/Package)
~/epubs/ is your local path where the XML resides. Note that UploadTest will try to process all XML in that folder, not just the one you just created.
Again, you use -datapath if you are packaging an epub residing not on your local machine, but on the server. Obviously requires the dataPath in the XML.
yourpassword is your password to ACS' Packaging service. Since you are running this on the shell, watch out for plaintext password leftovers in your command history. Some UNIX installs do not add lines to the command history if the command is preceded with a space (but YMMV).

Similar Messages

  • How to replace all existed objects when impdp a schame ???

    I wrote 2 functions which do expdp and impdp
    the impdp funciton is :
    create or replace function impdp_schema(fromusr in varchar2,
                                            tousr   in varchar2,
                                            dir     in varchar2,
                                            dmpfile in varchar2,
                                            logfile in varchar2 default null)
      return number as
      h1        NUMBER;
      job_name  varchar2(128);
      job_state varchar2(32767);
      ret       number;
    BEGIN
      if dir is null or dmpfile is null then
        return 1;
      end if;
      ret := 0;
      job_name := 'IMP' || to_char(sysdate, 'yyyymmddhh24miss');
      h1 := DBMS_DATAPUMP.OPEN('IMPORT',
                               'SCHEMA',
                               NULL,
                               job_name,
                               'COMPATIBLE',
                               DBMS_DATAPUMP.KU$_COMPRESS_METADATA);
      DBMS_DATAPUMP.ADD_FILE(h1,
                             dmpfile,
                             dir,
                             null,
                             DBMS_DATAPUMP.KU$_FILE_TYPE_DUMP_FILE);
      if logfile is not null then
        DBMS_DATAPUMP.ADD_FILE(h1,
                               logfile,
                               dir,
                               null,
                               DBMS_DATAPUMP.KU$_FILE_TYPE_LOG_FILE);
      end if;
      DBMS_DATAPUMP.METADATA_REMAP(h1,
                                   'REMAP_SCHEMA',
                                   UPPER(fromusr),
                                   UPPER(tousr));
      DBMS_DATAPUMP.set_parameter(h1, 'TABLE_EXISTS_ACTION', 'REPLACE');
      DBMS_DATAPUMP.START_JOB(h1);
      dbms_datapump.wait_for_job(h1, job_state);
      dbms_datapump.detach(h1);
      dbms_output.put_line(job_state);
      return ret;
    exception
      when others then
        dbms_output.put_line(SQLERRM);
        dbms_datapump.detach(h1);
        return 1;
    END;------------------------------------
    when I test this function, I found some errors :
    Master table "SYS"."IMP20100823152536" successfully loaded/unloaded
    Starting "SYS"."IMP20100823152536": 
    Processing object type SCHEMA_EXPORT/USER
    ORA-31684: Object type USER:"WIS00001" already exists
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
    ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_ID_WIS_LOG" already exists
    ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_TID_TABLENAME" already exists
    ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_WIS_MASS" already exists
    ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_WITSDELAY_1" already exists
    ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_WITSDELAY_2" already exists
    ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_WITSDELAY_3" already exists
    ORA-31684: Object type SEQUENCE:"WIS00001"."SEQ_WITSEDIT" already exists
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    . . imported "WIS00001"."WITS_98_PIC"                    28.28 KB      97 rows
    . . imported "WIS00001"."DRAWING_CONTROL"                26.94 KB     218 rows
    Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE
    ORA-31684: Object type PROCEDURE:"WIS00001"."PROC_GETITEM" already exists
    Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE
    Processing object type SCHEMA_EXPORT/TABLE/TRIGGER
    **Job "SYS"."IMP20100823152536" completed with 9 error(s) at 15:30:12**---------------
    how to replace all objects when exist ??? include sequence, table, procedure/function???
    </pre>
    Edited by: UNISTD on 2010-8-23 上午12:50

    I love posts without a 4 digit version number. This may well be because of a bug, and as this post is lacking a 4 digit version number, nobody will be able to answer it.
    You posted in vain.
    I recommend you search on Metalink whether there are issues with this parameter.
    Sybrand Bakker
    Senior Oracle DBA

  • How to only update existing records when loading master data ?

    Hello experts, I need your lights one more time.
    Here is my need :
    I have created an infoobject (IO) which is a very simple version of 0material, let's call it Znewmat --> Znewmat has material type and trademark as attributes, those two fields are available in 2 different datasources :
    - 0MATERIAL_ATTR for material type (field MTART)
    - 0MAT_SALES_ATTR for trademark (field MVGR2)
    When loading my new IO from 0MATERIAL_ATTR I use a filter (at DTP level) to get only a few material types (I get something like 1000 records),
    here is my issue : when I load from 0MAT_SALES_ATTR the field "material type" is not available to keep the same filter as for 0MATERIAL_ATTR and existing records are updated with the trademark, but I also get 5000 records I don't need, and my master data is "polluated" with useless lines.
    *and my question : is there a way while performing the second loading to ONLY UPDATE EXISTING RECORDS AND NOT ADD ANY
    NEW RECORDS ? (i didn't find anything in main options of my DTP)*
    (I'd like to avoid the solution to update the 0MAT_SALES_ATTR datasource to add the missing field)
    Thanks in advance for any help, points will be distributed.
    Guillaume P.
    Still no idea ?

    in the start routine of transformation from 0MAT_SALES_ATTR to znewmat do the following:
    select materials from /BIC/PZNEWMAT into i_mat
    for all entries in source_package where material eq source_package-material.
    loop at source_package.
    p_ind = sy-tabix.
    read table i_mat with key material = source_package-material.
    if sy-subrc ne 0.
    delete i_mat index p_ind.
    endif.
    this way you'll only update records that have previously been loaded by 0MATERIAL_ATTR DS
    loading sequence:
    first load ZNEWMAT from 0MATERIAL_ATTR. then activate ZNEWMAT. then load 0MAT_SALES_ATTR to ZNEWMAT.
    M.

  • How to replace the existing selection screen with new selection screen

    Hi,
    I have first selection screen with parametre as a table name, then I have created dynamic selection screen as 2nd selection screen with different fields of that table as select options. This is done using genaration of dynamic report. Now If I click on button on this 2nd selction screen , then I want to replace this 2nd dynamic selection screen , with the other selection screen fields.
    Can anybody guide me, How to do replace one slection screen with different selection screen.
    and one imp thing is this selction screen is populating with dynamic fields on it.
    Regards,
    Mrunal

    As I can understand you want to make some of the screen field to disable or visible on screen  depending upon the interaction of user with screen 1.
    You may use this example code in PBO of screen 2.
    LOOP AT SCREEN.
        " action has been taken to modify the area office screen as per the option chosen at screen 99.
        CASE ACTION.
            " if the user has taken up the option of UPLOAD
          WHEN 'UP'.     " screen processing while we upload the plan
            " during upload we will make dates as output fields only
            IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
              SCREEN-INPUT = 0.
              MODIFY SCREEN.
            ENDIF.
            " also make 2 buttons disabled
            IF SCREEN-NAME = 'AO_DO' OR SCREEN-NAME = 'AO_VE'.
              SCREEN-ACTIVE = 0.
              MODIFY SCREEN.
            ENDIF.
          WHEN 'DN'.      " screen processing while we upload the approved plan
            " during upload we will make dates as output fields only
            IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
              SCREEN-INPUT = 0.
              MODIFY SCREEN.
            ENDIF.
            " also make 2 buttons disabled
            IF SCREEN-NAME = 'AO_UP' OR SCREEN-NAME = 'AO_VE'.
              SCREEN-ACTIVE = 0.
              MODIFY SCREEN.
            ENDIF.
          WHEN 'VW'.      " screen processing while we view the plan
            " during upload we will make dates as output fields only
            IF SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_TO' OR SCREEN-NAME = 'ZSDTPLANVRSIO-DAT_FRM'.
              SCREEN-INPUT = 0.
              MODIFY SCREEN.
            ENDIF.
            " also make 2 buttons disabled
            IF SCREEN-NAME = 'RLGRAP-FILENAME' OR SCREEN-NAME = 'FNAME'.
              SCREEN-ACTIVE = 0.
              MODIFY SCREEN.
            ENDIF.
            " and hide the file input field
            IF SCREEN-NAME = 'AO_DO' OR SCREEN-NAME = 'AO_UP'.
              SCREEN-ACTIVE = 0.
              MODIFY SCREEN.
            ENDIF.
        ENDCASE.
      ENDLOOP.

  • How do I update address book on my iMac?

    I checked and I have version 6.1.3. Another person in my household is running version 7.1. If I run Updates, the address book is not updating. What's going on? (BTW, I have my address book synched in icloud, if that makes any difference).

    What versions of OS X are you and that person running?

  • How can I update existing website with Iweb after hard disc crash?

    I created my website on iweb and published it (but not at mobile me). Unfortunately my hard disc crashed, before I saved my webpage. Now I bought a new web and want to update my published website. How do I open it in my new Iweb 9 to update it?
    Thanks for your help,
    orisu

    Your iWeb data is stored, not in your actual published html files, but in a file called Domain.sites which is stored in your Home/Library/Application Support/iWeb folder. If you want to work on your site on another computer, copy this file to a thumb drive to move it around.

  • Aol password not accepted how do I update existing apps?

    After downloading iOS5 my phone asked me to input apple id and I saw this as an opportunity to update from my aol account which I don't use anymore to a newer id. Since then everytime an app shows an update is available the phone still asks for the password for the aol screenname but will not accept the password and I cannot reset.

    i have this problem to. can anyone help?

  • How can I update the music on my classic without replacing existing music?

    So I've been at this for a while now and I'm very afraid to sync my classic worrying that I will replace some existing music. I haven't synced my ipod with my new computer yet and am worried it will replace music that's been on my ipod since I got it. I know, I know I should have a back up of my music but alas I don't have everything. There are some really great albums that I don't have backup of and I can't seem to retrieve it off my ipod as it is. Any suggestions? I just want to add new music that I have to my ipod without deleting old music.
    Please Help!
    Thanks a bunch

    1: Make sure itunes on your new computer is set to prevent ipods from  syncing automatically when ipod is connected. Do this by going to edit/preferences/devices.
    2: Connect ipod. Under summary set it to manually manage music.
    3: Now to add music without erasing what's already on your ipod, highlight whatever songs or albums you want to add from the itunes library and drag them to the ipod showing in the left pane under devices.
    Hold the control key down while selecting music to highlight as much music as you want, them drag the the whole kaboodle to the left. Only the highlighted music will then sync all at once and nothing else will be deleted.
    I think this should be the default setup when installing itunes. It would save a lot of people the headache of losing all their music when first connecting their ipod to itunes.
    Let us know if this is what you were looking for.

  • How do I update a pending book project on iTunes Connect?

    I successfully uploaded my book and all assets to iTunes Producer. I received a ticket about my use of the term iBook (not allowed) and corrected the book file.
    I am having trouble updating the files. When I tried to update the files I received an error code. "ERROR ITMS-9000: "Files of type audio/x-m4a are not allowed outside of widgets:"
    Apparently that is caused by using iBooks Author's Export functionality and then delivering to the iBookstore. (my m4a files are inside widgets).
    I have seen this suggested process:
    1. Open your book in iBooks Author
    2. Choose Publish from the Toolbar
    3. Choose a name for your book package
    4. iTunes Producer should open automatically once iBooks Author completes the book publishing process.
    5. Carefully enter your book's metadata
    6. When complete, click on the Delivery tab and click Deliver
    But I have not been able to use this process above (1-6) to update my pending project. It seems to be designed for new book projects rather than updating files on existing projects.
    Is there a way to update my current book at iTunes Connect without getting the ERROR ITMS-9000?
    Or should I cancel my existing book on iTunes Connect and start over? (and if so how do I do that?)
    Thanks for your help

    Just  done this after info from iBook support, simply make whatever changes you  need/want to your book and  using the original package ID and redeliver, all the informatoin wil be in iTunes Producer, but you will need to re input the book, cover and screenshot images.
    After deleting  the iTunes Package in a clean up, iBook support advised to export the book and get the package ID from iTunes Connect if you  did not  record it anywhere. If you do, open iTunes Producer and in Look up Metadata.. type or paste your original package Apple ID number.
    This has worked out OK for me, those who have had a book issued a "Ticket"  will likely be using the same methods.
    A search for error codes advises its about zipped files or unzipping something you added.  Check your content and save making sure you either replace the original or delete it and save a new version and  re-deliver.
    The good news is... if you have corrected your book to comply with teh Ticket... its should be in the store with 24 - 48 hours.
    This is for Free Books.... so I dont know if its the same with paid books

  • Family sharing. i have set my wife up on family sharing and each time we try to download a book or an app, we are requested that i update the payment details. I have done this and we still cannot share.. what do i do or how do i update the payment

    family sharing. i have set my wife up on family sharing and each time we try to download a book or an app, we are requested that i update the payment details. I have done this and we still cannot share.. what do i do or how do i update the payment details to enable my wife to download

    Drrhythm2 wrote:
    What's the best solution for this? I
    Copy the entire /Music/iTunes/ folder from her old compouter to /Music/ in her account on this new computer.

  • My old Apple ID is on my iPhone, but this has been transferred to a new Apple ID.  The iCloud on my phone is requesting the password for the old Apple ID, but this no longer exists.  How do I update the iCloud Apple ID on my iPhone?

    My old Apple ID is on my iPhone, but this has been transferred to a new Apple ID.  The iCloud on my phone is requesting the password for the old Apple ID, but this no longer exists.  How do I update the iCloud Apple ID on my iPhone?  When I try to get the old passwork through forgot my password, the reply is that there is no account that exists. 

    Try the following....
    Go to Settings>icloud, scroll to bottom of screen and tap Delete Account.  Then log in using a different ID.

  • How do I update my existing Itunes to 11.1 on my phone and mac?  Thanks

    How do I update my existing Itunes to 11.1 on my phone and mac?  Thanks

    The 11.1 update I believe is only for OS X and not IOS. Look for the update in the Mac App Store/Updates or System Preferences/Software Update. To be safe, make sure you backup your system first.

  • How do i update my existing itunes account

    How do I update my existing itunes account to sync my new iPhone?

    go to store>account make changes.

  • HT204152 I am unable to update my App  store Updations. the reason being billing problem asking to update payment method.many times i updated my credit card details but refusing from the system .how can i update my app store updations like  Face book etc.

    I am unable to update my App  store Updations. the reason being billing problem asking to update payment method.Many a  times i updated my credit card details but refusing from the system .how can i update my app store updations like  Face book etc....Using ! phone 6plus  .IOS8.3

    What do you mean by 'refusing from the system', if you are getting an error message then what does it say ?
    For a credit card to have a chance of being accepted it needs to be registered to the same name and address (including format and spacing etc) that you have on your iTunes account, and have been issued by a bank in the country where you and your iTunes account are. If it is and if you are getting a 'declined' message then you could check with the card issuer to see if it's them that are declining it, and if not then try contacting iTunes Support (these are user-to-user forums) and see if they know why it's being declined : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption
    If when trying to download you are getting a message about a 'problem with a previous purchase' then that implies that iTunes wasn't able to collect the money for your last purchase. If that is the case then you won't be able to download anything else (including app updates) until you've paid off what you owe : Pay an unpaid balance in the iTunes Store - Apple Support
    If you aren't getting the 'problem with a previous purchase' message then try logging into your account (not when trying to download something) and see if you get the 'none' option so that you can remove the card's details and be able to download updates to your apps : Change or remove your payment information from your iTunes Store account (Apple ID) - Apple Support

  • How to add new row and update existing rows at a time form the upload file

    hi
    How to add new row and update existing rows at a time form the upload file
    example:ztable(existing table)
    bcent                      smh            nsmh         valid date
    0001112465      7.4                       26.06.2007
    0001112466      7.5                       26.06.2007
    000111801                      7.6                       26.06.2007
    1982                      7.8                       26.06.2007
    Flat file structure
    bcent                       nsmh         valid date
    0001112465     7.8     26.06.2007  ( update into above table in nsmh)
    0001112466     7.9     26.06.2007  ( update into above table in nsmh) 
    000111801                     7.6      26.06.2007 ( update into above table in nsmh
    1985                      11              26.06.2007   new row it should insert in table
    thanks,
    Sivagopal R

    Hi,
    First upload the file into an internal table. If you are using a file that is on application server. Use open dataset and close dataset.
    Then :
    Loop at it.
    *insert or modify as per your requirement.
    Endloop.
    Regards,
    Srilatha.

Maybe you are looking for

  • Display the report server error in the application

    i have got an error while running the report from the application , the status of the report was "TERMINATED_WITH_ERROR" which come from the "REPORT_OBJECT_STATUS" built in function , when i go to the application server to the failed jobs i got : Ter

  • Vista doesn't recognize d drive, I tunes reformats

    My Vista loaded laptop was not recognizing the d drive, Microsoft had me enter the register and delete the upper and lower filters, which fixed that problem, however it caused Itunes to be unable to burn a disc, Itunes suggested re downloading Itunes

  • Help, I can no longer send/receive images in messenger on my iphone 4

    I have noticed that I can no longer send or receive images in messenger on my phone since the first IOS 7 update.  Now i'm noticing that I can not send/receive anything other than text.  Also, I can not receive the messages that are sent to a group,

  • IBAN Update Issue in Customer Master IDOC

    Hi Experts, We need to pass the IBAN No and Swift COde via Customer MAster Interface (DEBMAS) . So IBAN No and Swift Code is being correctly updated in E1KNBKM segment . But when IDOC is processed these IBAN details are not passed to Customer Master.

  • How to avoid duplicates in CROSS JOIN Query

    Hi, I am using CROSS JOIN to get all the subset of a table col values as shown below: PRODUCT (Col Header) Bag Plate Biscuit While doing cross join we will get as Bag Bag Bag Plate Bag Biscuit Plate Bag Plate Plate Plate Biscuit ..... like this By pl