Having Problems Using F_ApiSimpleImportFormats

Hi,
I am (still) using FM 8 in Structured Authoring mode with FDK8 .
I want to automate the processs of importing formats to the components of a book.
I have located the F_ObjHandleT of the files I want to import from
I have tried using:
F_ApiSimpleImportFormats(bookId, titleId, 0);
Where bookId is the F_ObjHandleT of the book using bookId = F_ApiGetId(FV_SessionId, FV_SessionId, FP_ActiveBook);
And titleId is the F_ObjHandleT of the component to import from using titleId = F_ApiGetId(FV_SessionId, bookId, FP_FirstComponentInBook);
Believing this would simply update every file in the book
I have also tried cycling through the book componenets in a while loop with:
compId = F_ApiGetId(FV_SessionId, bookId, FP_FirstComponentInBook);
and
compId = F_ApiGetId(bookId, compId, FP_NextComponentInBook);
using
F_ApiSimpleImportFormats(compId, titleId, 0);
for each component (skipping the first one since that is the source)
In each case I get an FA_errno of -2 (FE_BadDocId - Illegal Document or Book)
I am able to get the name of the component using: componentName = F_ApiGetString(bookId, compId, FP_Name);
and print it to the log window, so I believe the doc ID and the book ID are sound.
Any other clues why I get an error on this API call?
Thanks,
- Michael

Thanks, Jang! I appreciate the response.
I short-handed my code in my original post, but I am doing as you indicate.
Here is a larger code snippet:
userCancel = F_ApiUserCancel();
            while (compId && !userCancel) {
                componentName = F_ApiGetString(bookId, compId, FP_Name);
                F_Printf(NULL, "Updating File: %s\n", componentName);
                if (compId == titleId) {
                    F_Printf(NULL, "We can skip updating the Title\n");
                } else {
                    F_Printf(NULL, "Importing Formats to %s\n", componentName);
                    It didn't help to open the component first
                    docId = F_ApiSimpleOpen(componentName, FALSE);
                    if (F_ApiClearAllChangebars(compId) != FE_Success) {
                        F_Printf(NULL, "    F_ApiClearAllChangebars: %d\n", FA_errno);                   
                    It didn't help to open the component first
                    F_ApiSimpleSave(docId, componentName, FALSE);
                    F_ApiClose(docId, TRUE);
                    if (F_ApiSimpleImportFormats(bookId, compId, 0) != FE_Success) {
                        F_Printf(NULL, "    F_ApiSimpleImportFormats: %d\n", FA_errno);                   
                F_Free(componentName);
                if (wholeBook)
                    compId = F_ApiGetId(bookId, compId, FP_NextComponentInBook);
                else
                    compId = F_ApiGetId(bookId, compId, FP_NextSelectedComponentInBook);
                userCancel = F_ApiUserCancel();
Note, I changed the API call to something else to make sure the API call was not the problem.
I get the same error code using F_ApiCLearAllChangebars()
(Wow, That formatting is annoying. Must be a better way to place code into the forum message)

Similar Messages

  • Having problems using ion tape express with itunes cannot find the song on hard drive

    Having problems using ION tape express with itunes.  The song is on hard drive as temp1 not the name of the song.  And I have problems playing it in itunes
    because it says it cannot locate the song'

    Then correct the name of the song or point iTunes to the new file.
    Issues with restoring should be directed to the manufacturer of the backup software/device... this is not an Apple or iTunes issue.

  • I am having problems using mov files imported into a project. I get the message "Not rendered" in the Canvas and clip won't play. Can anyone help?

    I am having problems using mov files imported into a project. I get the message "Not rendered" in the Canvas and clip won't play. Can anyone help?

    When clips won't play without rendering in the Timeline, it usually means that the clip's specs don't match the Sequence settings.
    A .mov file could be made from any number of codecs; the QuickTime Movie designation is merely a container for video files of all kinds.  Since FCE only works with the QuickTime DV codec and the Apple Intermediate Codec (AIC) natively, if your mov files aren't one of those two, you need to convert them PRIOR to importing into your FCE project.
    -DH

  • I am having problems using my Apple TV. I get a message saying incorrect user id or password, but I am able to sign in everywhere else. Any suggestions? Thanks.

    I am having problems using my Apple tv with home sharing. I continuously get a message that my user name or password is incorrect, but it works on other devices. Any help would be greatly appreciated.

    Unpower it.  If it still  happens on a restart give it time - Apple's servers sometimes have glitches.

  • I have recently been having problems using Firefox: it continually gives a "Not Responding" message.

    I have been having problems using Firefox for the past few months:
    Whenever I log on, I get a "Not Responding" message, and Firefox "freezes." I then have to "click" my mouse several times to again be able to use Firefox - but only for a few minutes. Firefox then freezes again and shows another "Not Responding" message.
    Because of this repeated "crashing," I have been using I.E. as my browser, because it does NOT have any such problems.
    How can I FIX this problem with Firefox?

    Many site issues can be caused by corrupt cookies or cache.<BR><BR>
    Clear the Cache<BR>
    '''''Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"'''''
    <BR><BR>and<BR><BR>
    Remove Cookies<BR>'''''Firefox/Tools > Options > Privacy.'''''<BR>
    Under '''History''', select Firefox will '''Use Custom Settings'''.<BR>
    There is a button on the right side called '''Show Cookies'''.<BR><BR>
    If there is still a problem,
    '''''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Start Firefox in Safe Mode]'''''
    <BR>While you are in safe mode; '''''Firefox Options > Advanced > General'''''.<BR>
    Look for and turn off '''Use Hardware Acceleration'''.<BR>
    Poke around safe web sites and see if there is still a problem. Then restart.

  • I am having problems using my iphone4 during calls. When any part of my facial skin touches the screen, it would either go mute, hold, speaker or whatever part my skin accidentally touches the screen.The other caller then cant hear me

    I am having problems using my iphone4 during calls. The screen does not automatically lock to prevent any part of my skin or face from touching it. When my skin touches the screen it would either go mute, hold, divert to speaker phone or calls another in my contact list. The person i'm talking to then cannot hear me suddenly when in mute or hold. Is there any application for my iphone4 like a "screen lock" when it is being used on calls?

        Hello APVzW, we absolutely want the best path to resolution. My apologies for multiple attempts of replacing the device. We'd like to verify the order information and see if we can locate the tracking number. Please send a direct message with the order number so we can dive deeper. Here's steps to send a direct message: http://vz.to/1b8XnPy We look forward to hearing from you soon.
    WiltonA_VZW
    VZW Support
    Follow us on twitter @VZWSupport

  • I am having problems using Firefox with Ebay in the last 10 days. The advanced search link is dropping off the page and there is no way to access it now.

    I have been using Firefox and Ebay for at least 12 years with no problems whatsoever. But in the last 10 days I have been having trouble with the Advanced Search link disappearing from the page on Ebay. If I do a search from the Ebay home page it will show the results, but the Advanced Search link (in blue letters) which always used to appear to the right of the Search button is gone. If I click Search again at this point I can see the Advanced Search link appear for a millisecond, but then disappear just as quickly. Also, if I refresh the page the same thing happens. I tried to duplicate this problem with Internment Explorer and it didn't occur, so it appears to be Firefox that is causing this issue. Of course when I contacted Ebay they told me my problem was that I wasn't using Internment Explorer! I love Firefox and do not want to switch!

    You can try to clear the cache and cookies to see if that makes a difference:
    <h3>Clearing Cache</h3>
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    <h3>Clearing Cookies</h3>
    #Go to Firefox > Tools > Privacy > Remove Individual Cookies
    #Find the site (ebay.com) that's having problems and clear all cookies.
    #Restart Firefox
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.

  • Having problem using internet via wifi

    i m facing a problem using wifi... whenever i connect 2 any wifi network and start the browser it always shows" no internet connection".... can anybody help me regarding the issue????

    Hi sunny786pandit
    Welcome to BlackBerry Support Forums
    Please go through those Article :
     How to connect to a Wi-Fi network using a BlackBerry smartphone       and 
    KB13368 : Services that are available over a Wi-Fi connection
    I hope it helps.
    Prince
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.
    Click " Like " if you want to Thank someone.
    If Problem Resolves mark the post(s) as " Solution ", so that other can make use of it.

  • Having problems using facetime for ipods. When i sign in and click next it goes back to the sign in screen ? what do i need to do

    Having problems with facetime on the ipod. When i sign id and click next it goes back to the sign in screen. Any ideas ??

    Have ou tried here:
    iOS: Troubleshooting FaceTime
    Also try resetting the iPod. Nothing will be lost.
    Reset iPod touch:  Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.

  • Having problems using my printers when using the OS Lion

    Hi, can anyone assist me as I am having problems with the Lion OS, somehow I can't print on my Epson nor in my office on the Canon printer. I have updated the system with the latest printer drivers as well.
    Cheers

    Have you tried deleting and re-adding the printers?
    What happens when you try to print? How are the printers connected? Please provide more information about the problems you're having with each driver.

  • Anyone having problems using non-apple mains charger with Classic?

    I have 2g nano which works fine with my generic ipod charger. I'm about to upgrade to an 80gb Classic. Anyone have any problems using these?

    xavierlopez wrote:
    I found this "recipe" in a another forum and it worked!
    a) Disconnect all your devices from icloud (ipod, iphone, mac, etc.)
    b) Reset and CHANGE your Apple ID password
    c) Reconnect all devices
    and Voila!
    Voila what?
    Unless you put the new password in all devices they won't reconnect.

  • Is anyone having problems using AAMEE to create CS5.5 deploy packages?

    I am able to create a deploy package without an issue. SN gets verfied so I know its not that eventhough it's getting the pre-chrome license error in the log files.  I looked at the directions that Adobe gives for the pre-chrome error and the only way I can do a silent install is by enabling the built-in Administrator account, logging to that account and running silent command from there.  Thats really not a fix when you have 10,000 computer to deploy to.  Anyone have the workaround for this?

    Thank you! But I've tried that already and still I'm having problems, Apple support has been looking into it, but so far nothing. Thanks again

  • Having problem using BULK COLLECT - FORALL

    Hi,
    I'm facing a problem while setting a table type value before inserting into a table using FORALL.
    My concern is that i'm unable to generate the values in FOR LOOP, as by using dbms_output.put_line i observed that after 100 rows execution the process exits giving error as
    ORA-22160: element at index [1] does not exist
    ORA-06512: at "XYZ", line 568
    ORA-06512: at line 2
    I need to use the values stored in FOR LOOP in the same order for insertion in table TEMP using FOR ALL;
    I'm guessing that i'm using the wrong technique for storing values in FOR LOOP.
    Below given is my SP structure.
    Any suggestion would be hepful.
    Thanks!!
    create or replace procedure XYZ
    cursor cur is
    select A,B,C,D from ABCD; ---expecting 40,000 row fetch
    type t_A is table of ABCD.A%type index by pls_integer;
    type t_B is table of ABCD.B%type index by pls_integer;
    type t_C is table of ABCD.C%type index by pls_integer;
    type t_D is table of ABCD.D%type index by pls_integer;
    v_A t_A;
    v_B t_B;
    v_C t_C;
    v_D t_D;
    type t_E is table of VARCHAR2(100);
    type t_F is table of VARCHAR2(100);
    v_E t_E := t_E();
    v_F t_F := t_F();
    begin
    open cur;
    loop
    fetch cur BULK COLLECT INTO v_A,v_B,v_C,v_D limit 100;
    for i in 1 .. v_A.count loop
    v_E.extend(i);
    select 1111 into v_E(i) from dual;
    v_F.extend(i);
    v_F(i) := 'Hi !!';
    ----calculating v_E(i) and v_F(i) here----
    end loop;
    forall in i in 1 .. v_A.count
    insert into table TEMP values (v_E(i), v_F(i));
    exit when cur%NOTFOUND;
    end loop;
    close cur;
    end;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    PL/SQL Release 10.2.0.4.0 - Production
    CORE     10.2.0.4.0     Production
    TNS for HPUX: Version 10.2.0.4.0 - Production
    NLSRTL Version 10.2.0.4.0 - Production
    -------

    The problem is that inside the IF ELSIF blocks i need to query various tables..As I thought. But why did you concentrate on BULK COLLECT - FORALL?
    The cursor whereas does take more time to execute.More time then?
    We have join of two tables have 18,00,000(normal table) and >17,92,2067(MView) records, having inidex on one the join column.
    After joining these two and adding the filter conditions i'm having around >40,000 >rows.? You have a cursor row. And then inside the loop you have a query which returns 40'000 rows? What do you do with that data?
    Is the query you show running INSIDE the loop?
    I guess you still talk about the LOOP query and your are unhappy that it is not taking an index?
    1. The loop is NOT the problem. It's the "... i need to query various tables"
    2. ORACLE is ok when it's NOT taking the index. That is faster!!
    3. If you add code and execution plans, please add tags. Otherwise it's unreadable.
    Try to merge your LOOP query with the "various tables" and make ONE query out of 40000*various ;-)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • I am having problems using Numbers package, unable to add specific cells in a column, when I tap "sum" it totals the whole column, rather than the specific cells I want. Would appreciate any help. Thank You Francis

    I am having a problem with adding selected numbers in a column. When I select "sum" the whole column is added, not just the selected cells. I would appreciate any help how to rectify? Many thanks. Francis Anthony

    I don't know if this is the best way but it's pretty easy.
    1.) Select the cell you want the sum in.
    2.) Select the sum function
    3.) In the line where you see =sum(B2:B8) using your finger tap the B2:B8
    4.) Use the backspace key to delete the B2:B8 and it will then show "value"
    5.) You can now tap any cell you want in the sum
    6.) When finished tap the green check mark button at the end of the sum line.
    That pretty much sums it up.
    Good luck.
    Steve

  • Having problems using search function on FM forum; no results ever found

    I've done searches on topics that I know exist, but I never get any results.  I never used to have this problem.  Did something change?

    fwiw, the forum search functionality (within forums as well as over all the forums) seems to be having issues over the last several weeks. I haven't had any search results for several weeks, tried 3x different browsers.
    There's a discussion about it in the Forum Comments section:
    "Is the forum search broken"
    http://forums.adobe.com/thread/823088?tstart=0

Maybe you are looking for

  • Can't Enable File Sharing for Guest Users on Time Capsule

    Hey all, My roommate has a time capsule that is capable of using a guest network, which my other roommate and I use to connect to the Internet. I have a Mac Mini, Mac Pro, iPhone, iPad, all of which cannot currently communicate with each other due to

  • Could not complete the export command because the file could not be found

    When I try to save for web, Photoshop pops up a dialog box that says "could not complete the export command because the file could not be found". What is the solution for this?

  • Different Payement terms & Incoterms

    Hi friends I have 2 orders with respective deliveries. Payment terms and Incoterms are different from 1st order to 2nd order. Now can we get SAME INVOICE NUMBER for both the deliveries?? Urgent pleasee. Regards Ramesh

  • Oracle 10g automatic startup in Solaris 10

    Good afternoon, I've installed Oracle 10g Enterprise Edition Server on a server with Solaris 10. I'm trying to configure the automatic startup/shutdown. I've changed dbstart script. I've prepared dbora script and I've created the necessary link to th

  • Help meeeeeeeeeee!!!!!!!!!1

    Anyone help me plz! I bought the Ipod video 30G yesterday and tranfered song from itunes to my ipod but in my ipod the song didn't play Ipod 30G video   Windows XP Pro