Skip to main content
K.Daube
Community Expert
Community Expert
April 4, 2022
Answered

No master pages applied because one or more master pages do not exist

  • April 4, 2022
  • 1 reply
  • 915 views

Lynne's conclusion in https://tracker.adobe.com/#/view/FRMAKER-7650. to avoid the error does not work for me (FM-15.0.8.979):

  • All files were checked to contain the same set of master pages.which were imported from the templae and hence are all the same.
  • All files got their master pages by individually using Format > Page Layout > Apply Master Pages accordint to the table of the reference page which was also imported to all files from the template.
  • The book was newly set up after all files (including the generated ones) got their master pages assigned.
  • All files are in an own document window by Window > Tile.

Neverthelesse with Edit > Update Book (Apply Master Pages) or with selecting the book with all files and then using  Format > Page Layout > Apply Master Pages I get this error message within the first three of 11 files:
No master pages applied because one or more master pages do not exist.
→ Which ????

Kruzi turks, another stupid report, even though the guy knows exactly which MP he is missing.

Obviously this function is not reliably, as Bob Niland writes since FM-10: I no more use this function...

IMHO the client performing this function ($HOME\fminit\Plugins\masterpages.dll) has never been updated. File version for FM-16.0.4.1062 is still  "1.1.0.1" as it also is in FM-10...

    This topic has been closed for replies.
    Correct answer Klaus Göbel

    Even using the script method yields no result.

    KLD_Z.ApplyMasterPages = function (oDoc) { // ==========================
    /*            Applies master pages to the body pages according to the table
                  on the reference page
    Arguments     oDoc            Document or book object to be handled
    Returns       true for success, else false
    Calling       Message
    Comment       If the table does not exist on the reference page, 
                  then the defaults Right/Left are
                  assigned to all body pages. This may destroy special assignments.
    History       2022-03-03
    */
    var msg01 = "Document object is not valid";
      if (!oDoc.ObjectValid()) {
        KLD_Z.Message ("E", msg01, "ApplyMasterPages");
        return false;
      }
      CallClient ("masterpages", oDoc.id);
      return true;
    } //--- end ApplyMasterPages ----------------------------------------------------------------------

    → Quirk of Windows 10? last update? Re-install FM-15? But also same problem with FM-16...


    Hi Klaus,

    I've just tested with your files:

    In the UnstructMasterPageMaps(RefPage 5), there are two masterpages missing:

    - Book-title

    - Chapter--title (your page is named Chapter-title)

     

    Change / edit the names and try again

    1 reply

    Bob_Niland
    Community Expert
    Community Expert
    April 4, 2022

    I hadn't tried doing a book-level AMP since FM7, but just did, using a copy of an FM2019 book opened in FM2020 (16.0.4.1000).

    The Edit » Update Book:
    ☑ Apply Master Pages
    ran without error, whether just doing an AMP, or making other update elections.

    K.Daube
    Community Expert
    K.DaubeCommunity ExpertAuthor
    Community Expert
    April 6, 2022

    Things are even worse with another book (my system documentation):

    • MIF washed all files
    • Book file set up anew
    • TOC and IX set up anew, then a title line inserted into these as it was before
    • Checked in all files: xref page with MPA table; set of master pagages
    • Initial pages in TOC and IX: MP assigned manually - there are some pages left to receive the MP by book update

    The following done both in FM-15.0.8.979 and FM-16.0.4.1062:

    • Try book update MPA → No master pages applied because one or more master pages do not exist
    • Try MPA for the two generated files with Format > Page Layout > Apply Master Pages → nothing happens.

    For your own tests you find the ZIP with the book files at https://daube.ch/zz_tests/SysDoc.zip (not all graphics are included; some files end with empty pages due to removed private table contents).

    Have now checked again the other book (compendium): same behaviour (per book and per doc failing).

    One more test:

    • new document
    • import all formats from the first file of the book
    • Copy all contents to the new file
    • Format > Page Layout > Apply Master Pages → nothing happens.
    K.Daube
    Community Expert
    K.DaubeCommunity ExpertAuthor
    Community Expert
    April 6, 2022

    Even using the script method yields no result.

    KLD_Z.ApplyMasterPages = function (oDoc) { // ==========================
    /*            Applies master pages to the body pages according to the table
                  on the reference page
    Arguments     oDoc            Document or book object to be handled
    Returns       true for success, else false
    Calling       Message
    Comment       If the table does not exist on the reference page, 
                  then the defaults Right/Left are
                  assigned to all body pages. This may destroy special assignments.
    History       2022-03-03
    */
    var msg01 = "Document object is not valid";
      if (!oDoc.ObjectValid()) {
        KLD_Z.Message ("E", msg01, "ApplyMasterPages");
        return false;
      }
      CallClient ("masterpages", oDoc.id);
      return true;
    } //--- end ApplyMasterPages ----------------------------------------------------------------------

    → Quirk of Windows 10? last update? Re-install FM-15? But also same problem with FM-16...