Clearing overrides in Cell and Table Styles causes crash

I can not "Apply [...], Clear Overrides" in a Cell, Table or Paragraph style without InDesign CC crashing. I have removed all Object styles from the tables that I am working with. I tried exporting to .idml and starting a new file and have the same issue.

@Chris – Is InDesign CC patched to the latest version?
Are you interested to test a script by Marc Autret posted at the inDesign Scripting Forum?
See the following thread and posts:
creativejoan0425
How to break link to cell/table style in a selection
Dec 14, 2013 3:51 PM
https://forums.adobe.com/message/5929954#5929954
See Marc Autret's script for cleaning different levels:
https://forums.adobe.com/message/5931169#5931169
Change the last line of his code to your will. Basically you have 4 options. Chose *one* of those:
Option 1 LEVEL 0:
breakLinkToCellStyleSelection(0); // LEVEL 0  => only clear overrides relative to *defined* style attributes
Option 2 LEVEL 1:
breakLinkToCellStyleSelection(1); // LEVEL 1  => clear all overrides (through root style)
Option 3 LEVEL 2:
breakLinkToCellStyleSelection(2); // LEVEL 2  => clear all overrides and apply [None]
Option 4 LEVEL 3:
breakLinkToCellStyleSelection(3); // LEVEL 3  => apply [None] *in depth* (i.e. release all attributes)
Select your cells or your table and run the whole script.
Does it crash InDesign CC as well?
Uwe

Similar Messages

  • Break link to Cell and Table Style and keep the style setting

    For cell Selection is work (but can't keep the style setting after break the link), but I also want to break the table style, but error
    For both Break link to cell/table style, I want to keep the style setting after break the link
    BreakLinkToTableStyleSelection();
    BreakLinkToCellStyleSelection();
    function BreakLinkToTableStyleSelection () {
    var
         mNone = app.activeDocument.tableStyles.item(0),
         mSel = app.selection[0];
    if(mSel.constructor.name === "Cell" || mSel.constructor.name === "Table") {
        mSel.tables.everyItem().appliedTableStyle = mNone;
        return;
    if(mSel.hasOwnProperty("baselineShift")){
        mSel.tables.everyItem().appliedTableStyle = mNone;
        return;
    function BreakLinkToCellStyleSelection () {
    var
         mNone = app.activeDocument.cellStyles.item(0),
         mSel = app.selection[0];
    if(mSel.constructor.name === "Cell" || mSel.constructor.name === "Table") {
        mSel.cells.everyItem().appliedCellStyle = mNone;
        return;
    if(mSel.hasOwnProperty("baselineShift")){
        mSel.tables.everyItem().cells.everyItem().appliedCellStyle = mNone;
        return;

    For cell Selection is work (but can't keep the style setting after break the link), but I also want to break the table style, but error
    For both Break link to cell/table style, I want to keep the style setting after break the link
    BreakLinkToTableStyleSelection();
    BreakLinkToCellStyleSelection();
    function BreakLinkToTableStyleSelection () {
    var
         mNone = app.activeDocument.tableStyles.item(0),
         mSel = app.selection[0];
    if(mSel.constructor.name === "Cell" || mSel.constructor.name === "Table") {
        mSel.tables.everyItem().appliedTableStyle = mNone;
        return;
    if(mSel.hasOwnProperty("baselineShift")){
        mSel.tables.everyItem().appliedTableStyle = mNone;
        return;
    function BreakLinkToCellStyleSelection () {
    var
         mNone = app.activeDocument.cellStyles.item(0),
         mSel = app.selection[0];
    if(mSel.constructor.name === "Cell" || mSel.constructor.name === "Table") {
        mSel.cells.everyItem().appliedCellStyle = mNone;
        return;
    if(mSel.hasOwnProperty("baselineShift")){
        mSel.tables.everyItem().cells.everyItem().appliedCellStyle = mNone;
        return;

  • Apply Clear Overrides after creating such character styles...

    Hi everyone,
    After importing the Word document into InDesign CS3 in some of the paragraphs there is some style overrides. The InDesign styles formatting are not intented with the paragraphs properly. Eventhough the word styles are mapped with InDesign styles exactly. If i select all the paragrahs and click the option "Clear Overrides" from the paragraph styles palette, all the InDesign styles formatting are applied properly but the character style formatting get removed. So i have planned to create script to character style for each font style and each formatting of the characters. After doing this i can clear the overrides of paragraph styles without hassle. I have created the script to create character styles for character formatting and its working fine but when i tried to run this script for 2nd time in the same document it showing some error in it. Please find my script below and it is too big,
    //To find Font styles and character formatting and replacing it with character styles
    //Script for CS3
    #target InDesign
    var myDoc = app.activeDocument;
    if (myDoc.characterStyles.item("Itl") == null){
    var Itl = myDoc.characterStyles.add({name: "Itl", fontStyle: "Italic"});}
    if (myDoc.characterStyles.item("bl") == null){
    var bl = myDoc.characterStyles.add({name: "bl", fontStyle: "Bold"});}
    if (myDoc.characterStyles.item("bItl") == null){
    var bItl = myDoc.characterStyles.add({name: "bItl", fontStyle: "BoldItalic"});}
    if (myDoc.characterStyles.item("bItal") == null){
    var bItal = myDoc.characterStyles.add({name: "bItal", fontStyle: "Bold Italic"});}
    if (myDoc.characterStyles.item("sb") == null){
    var sb = myDoc.characterStyles.add({name: "sb", fontStyle: "Semibold"});}
    if (myDoc.characterStyles.item("sbItal") == null){
    var sbItal = myDoc.characterStyles.add({name: "sbItal", fontStyle: "Semibold Italic"});}
    if (myDoc.characterStyles.item("blk") == null){
    var blk = myDoc.characterStyles.add({name: "blk", fontStyle: "Black"});}
    if (myDoc.characterStyles.item("obl") == null){
    var obl = myDoc.characterStyles.add({name: "obl", fontStyle: "Oblique"});}
    if (myDoc.characterStyles.item("li") == null){
    var li = myDoc.characterStyles.add({name: "li", fontStyle: "Light"});}
    if (myDoc.characterStyles.item("liItal") == null){
    var liItal = myDoc.characterStyles.add({name: "liItal", fontStyle: "Light Italic"});}
    if (myDoc.characterStyles.item("sup") == null){
    var sup = myDoc.characterStyles.add({name: "sup", position: Position.superscript});}
    if (myDoc.characterStyles.item("sub") == null){
    var sub = myDoc.characterStyles.add({name: "sub", position: Position.subscript});}
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences = null;
    app.changeTextPreferences = null;
    app.findTextPreferences.fontStyle = "Italic";
    app.changeTextPreferences.appliedCharacterStyle = Itl;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Bold";
    app.changeTextPreferences.appliedCharacterStyle = bl;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "BoldItalic";
    app.changeTextPreferences.appliedCharacterStyle = bItl;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Bold Italic";
    app.changeTextPreferences.appliedCharacterStyle = bItal;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Semibold";
    app.changeTextPreferences.appliedCharacterStyle = sb;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Semibold Italic";
    app.changeTextPreferences.appliedCharacterStyle = sbItal;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Black";
    app.changeTextPreferences.appliedCharacterStyle = blk;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Oblique";
    app.changeTextPreferences.appliedCharacterStyle = obl;
    app.documents.item(0).changeText();
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Light";
    app.changeTextPreferences.appliedCharacterStyle = li;
    app.documents.item(0).changeText();
    app.findTextPreferences.fontStyle = "Light Italic";
    app.changeTextPreferences.appliedCharacterStyle = liItal;
    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;
    app.findTextPreferences.position = Position.superscript;
    app.changeTextPreferences.appliedCharacterStyle = sup;
    app.documents.item(0).changeText();
    app.findTextPreferences.position = Position.subscript;
    app.changeTextPreferences.appliedCharacterStyle = sub;
    app.documents.item(0).changeText();
    function setupFindText(find, change, foots, hidLayers, lockedLayers, lockedStories, masters, caseSensitive) {
      app.findTextPreferences = null;
      app.changeTextPreferences = null;
      try { app.findTextPreferences.findWhat = find } catch(e) {};
      try {app.changeTextPreferences.changeTo = change } catch(e) {};
      app.findChangeTextOptions.properties = {
        includeFootnotes:(foots == null ? false : foots),
        includeHiddenLayers:(hidLayers == null ? false : hidLayers),
        includeLockedLayersForFind:(lockedLayers == null ? false : lockedLayers),
        includeLockedStoriesForFind:(lockedStories == null ? false : lockedStories),
        includeMasterPages:(masters == null ? false : masters),
        includeCaseSensitive:(caseSensitive == null ? false : caseSensitive)
    } // end setupFindText
    alert ("DONE");
    please suggest how to simply this script and make it run faster can anyone suggest me. Also suggest me to how can add this "Clear Override" syntax with this script. I want to make this script very effective. Thanks in advance to all.
    Regards
    Thiyagu

    The reason for that error is easy.
    if (myDoc.characterStyles.item("Itl") == null){
    var Itl = myDoc.characterStyles.add({name: "Itl", fontStyle: "Italic"});}
    means "if the style does not exist, create it and assign it to the variable". What happens when it does exist? (I'll let you think of an answer here.)
    Why don't overrides work? Well, let me ask you, does it work when you do the same directly in the program? No: to clear overrides, replace a style with itself. Does that mean you should run the script twice? Well, no, a brief search through the CS3 JS help reveals this tantalizing function (for any text type element):
    void clearOverrides ([overridesToClear:OverrideType=ALL])
    Clears the specified types of override.
    Parameter
    Type
    Description
    overridesToClear
    OverrideType:
    OverrideType.ALL
    OverrideType.CHARACTER_ONLY
    OverrideType.PARAGRAPH_ONLY
    The types of override to clear. (Optional) (default: ALL)
    -- and I remember someone posting this rather nifty one-liner
    myStory.paragraphs.everyItem().clearOverrides();
    The script appears a bit Frankensteinian to me. That function setupFindText is never used; you use two different ways of clearing the find and change preferences ('null' and 'nothing' -- I believe there were some strong points against using 'null', but, anyway, you only need to set them to nothing once).
    Notice it doesn't take heed of combinations of a type style and superior/inferior -- the latter will overwrite the former.
    The usual way of speeding up a script is by putting repeated elements into an array, but I doubt this will help much here. On the other hand, it's just a handful of replaces, and it should be very fast already. Even if it takes as much as 30 seconds, it's still worth that time.

  • Need Help with giving Colors to Table Cells and Table Borders in Dreamweaver CC - Please!

    Hi,
    I am a teacher and use Dreamweaver CC to make my class web page.
    How do I give colors to the cell borders of a table I inserted?  How do I give colors and line thickness
    to table borders, too?
    I bought the David Powers DVD and it doesn't show that.
    Please help.
    Thank you,
    John

    Assuming that you have placed a table in your document and your CSS Designer panel is open
    1. Click the '+' sign
    2. Choose your option. I will choose 'Define in Page'
    3. Follow the above sequence, 1.click on table, 2.ensure table is selected, 3.click on style, 4.click the '+' sign, 5. see the selector appear.
    4. Click on the selector and choose the required Properties.
    You can do the same for the row (<tr>) or a cell (<td>). In fact, this is how you would go about styling anything in your document.

  • "curved/round borders" for free standing cells and table cells

    Webi 4.1 has border options such as dotted/ plan or double lined etc but is it possible to  "curve"  the edges of the borders in webi ?
    I tired to play around with the CSS styling sheet (Cell related section of it) but couldn't figure out what needs to be changed in order to accomplish this.
    Please provide feedback.
    Sheikh

    Hi Ayub,
    This feature is not there in BO.
    so that we cant curved/round border...........
    why you want curved/round border in cell
    Regards
    Mustafa

  • CS3 Find Font/Delete Paragraph Style/Redefine Paragraph Style Causes Crash

    I am running into a very frustrating issue where I cannot replace a paragraph style. The issue is that we used to use some adobe type fonts and want to move to the true type equivalent so that we don't have problems working on files between mac and pc. The problem occurs on both mac and pc on a variety of hardware (both c86 and ppc macs for example). When we open the document it identifies that the font cannot be found (example Palatino T1). When we click find font and select the regular ttf Palatino replacement and click Change All Indesign just vanishes and leaves a crash message with a ton of garbage and a read only memory error. The same happens if we change the font on some text and right click on aragraph style and click "redefine style" - there is a sudden crash.
    Trying to work around this I went into our templates and tried to change it there. Opening the paragraph style and selecting the new font caused it to crash upon selecting OK. Also trying to Make a new paragraph style works, but then when deleting the old one causes a crash no matter what combination of mapping or not mapping the old paragraph style we chose (we tried every option under the dialogue and selected several different styles to map to or none at all).
    This occurs on several different fonts and on several different templates. I have tried deleting the adobe font cache to no avail. Any help resolving this would be great - all our employees are going nuts over this problem.
    Thanks in advance for any help or suggestions!

    Peter, your latest post led me to an interesting revelation. When I change Palatino (t1) bold to Palatino Bold using Find/Change it is fine. When I change Palatino (t1) to any font using Find/Change there is a curious result! As soon as I click find first the page changes to the default template and all content is hidden. The 4 or 5 places where palatino occurs on the default template change fine, but then on the next click of FIND FIRST it crashes! So the problem is connected to "find first", not the actual change. My guess is this is an issue of with how the find/change jumps from the template to the individual page, but I'm not sure exactly what is happening.

  • Keynote '09 Light table view causes crash on Retina MacBook Pro

    I just discovered a problem with Keynote '09 (V. 5.1.1, build 1034) on my MacBook Pro 15'' Retina (2.7 GHz Intel Core i7; 16 GB RAM, 1600 MHz DDR3, under Lion version 10.7.4).   More often than not, when I go into "Light Table" view, Keynote suddenly crashes with a dialog box quickly flashing on and off, so rapidly that it cannot be read.  The only way out of Keynote when this happens is to Force Quit.   This does not happen on any of my other Macs (MB Air, iMac, older MB Pro).  I suspect it has something to do with the Retina display model.   Any advice?

    More about my post:  Actually, I since discovered the problem occurs on another computer running Snow Leopard and appears to be unique to this one Keynote document.   I solved my own problem by copying the screens from the allegedly-corrupt document to a new document.  There is no problem with Light Table mode in the new document.   Never had this problem with Keynote before, which I've been using more than any almost any other app since 2006 in connection with my work.

  • Safari 5.1 and flash plugin causes crash

    After updating to Safari 5.1 , I could not get Safari to load ... it would load then crash... So I went to the global internet folders and removed everything and then Safari would load... after putting things back I discovered the flash plugin is causing Safari to crash... I have tried reinstalling the latest flash and still nothing helps... Am I missing something ? is there something else I should try ? I just want Safari to work like it did before I updated with Flash working so please refran from the ' just dont use flash ' remarks.... any help would sure be appreciated !
    Thanks

    it even fails on other accounts
    That's an indication that the startup disk may need repairing.
    From your admin account launch Disk Utility.
    /Applications/Utilities
    Select the startup disk in the panel on the left then selec the First Aid tab.
    Click: Verify Disk  (not Verify Disk Permissions)
    Boot from your install disc if Disk Utility reported errors.
    Using Disk Utility to verify or repair disks
    If the startup disk is ok, try reinstalling Safari 5.1

  • Attempts to burn and run diags causes crash

    Hello All,
    Wondering if anyone else has this issue - when either attempting to burn or run diagnostics I receive a generic "Itunes has encountered a problem" message. I can get a bit of info but ultimately clicking on close exits Itunes.
    Before 7.0.2 I had no issues with burning. Since then I've tried Customer Service - who merely suggests reading some articles and removing and reinstalling itunes. I've also upgraded my burners firmware. Still the same issues.
    The burner works properly when using burning software such as Nero.
    Anyone have any ideas? Customer service indicated that I might have to call Apple Support and "might" have to pay to solve this. Um, I don't think so. How about a fix/patch for the multitue of burning issues 7.0.2 has seemingly caused.
    Thanks,
    Dirk C.
      Windows XP Pro  

    Hey, I am having pretty much the same problem, and the so called "support" is of NO help. Pretty ridiculous for a company like Apple to have such poor customer support. They send us all to these message boards where maybe 1 friendly soul has any clue what's going on. How do they expect users who are having the same problem to really help each other? It boggles my mind. I'm sorry I cannot help you, but just wanted to share the misery.

  • Premier CC Audio Render (and/or export) causing crash.

    Hello, I'm pulling my hair out with a rather large project.
    Rendering Audio, exporting audio or exporting audio in Media Encoder ALL crashes my project.
    The sequence has one aiff of voice on top of one aiff of music with no filters other than normalise gain to 0.
    I've unistalled Soundflower, emptied my cache and deleted old render files.
    Please give me some suggestions as I definitely can't rebuild this project in CS6 or FCP.
    Thanks, Ian.

    We can not see your computer, your settings or even know what your source files are because we are not in the same room as you are!
    We cant see what you are doing wrong ...so you will have to tell us a lot more and show us some screen grabs of your settings.

  • Log and transfer AVCHD  causes crash

    Shot some test footage with a Panasonic AG HMC151.
    If I try log and transfer, FCP 6.0.4 sees the clips and I can view them in the L&T window. But as soon as I try to transfer them to the bin the program crashes.
    Any suggestions.
    KC

    Have you copied the SDHC card to your desktop and tried L/T from there?
    And I take it you are using an Intel Mac for ingesting?
    Finally, I believe 6.0.5 added support for the HMC150/1. make certain you've updated.
    http://www.apple.com/support/releasenotes/en/FinalCut_Pro_6.0rn/

  • 4.2 and cisco AP causes crash

    Hey all, I'm new to the forums, and cant find anything on this so maybe someone can help me. I have a problem with any of our devices(ipad and iphones) that have been upgraded to 4.2. We have a Cisco AP and every time the device goes to connect to the device, the device reboots itself. This is also the case when the device comes into range of the AP and attempts to reconnect, it reboots the device. i wonder if anyone else is experiencing this, and if so what can be done.
    Thanks
    D

    Correction all devices on 4.2.1 are having this problem, not 4.2. i also recently confirmed that anyone on 4.1 and earlier have no problems connecting to the wireless AP

  • NEW CELL and NEW LINE

    Hi,
    I am not clear about NEW CELL and NEW LINE in The Main window -> Table -> Footer -> Output options -> Output Table.  Could any one help in explaining exactly what is the purpose of it.
    Thanks
    Ram

    when you are placing a text element, you need to specify whether you want this text element to be displayed in the next cell of the table. If the text element is to be displayed in the next line then you will have to check that as well. So, if you are displaying a list of fields in a row format then for the first field, you check both line and cell and for the rest of the fields you check just the cell.
    Regards,
    Ravi
    Note - Please mark all the helpful answers

  • Barn doors transition causes crash

    Dear Community,
    Applied barn doors transition to a project in CS4. Stored that project in 2010.
    Opened the project in CS6 CC - and barn doors caused crashes - so I cleaned off the old and applied replacement barn door transitions in CS6 CC.
    Once the wipe is applied - its fairly stable - sometime crashes sometimes doesn't.
    If I apply a broder colour to the wipe - all ok.
    If I then apply a border thickness - crash every time.
    System;
    Premiere Pro CS6 - 6.0.3 (001 (MC: 264587)) through cloud membership
    Updated and current
    Win 7 Pro - SP1 - 64 Bit
    Source footage SONY EX3 - .mp4 and still image .png's
    No error messages - just crash and need to restart PP CS6
    Try to apply colour and border to a barn door transition causes the error
    This worked before on the smae project when created in CS4
    Not running other software at the time
    NewBlueFX modules installed but not applied to this area of sequence
    i7 - 3.20GHz, 16GB RAM, SSD OS drive, 4 x drive RAID on LSI RAID card, - No I/O hardware
    I am using Are you using Mercury Playback Engine Acceleration and CUDA
    Problem occurs during normal edit - as soon as I start to adjust the barn doors wipe - I don't get to compression
    Thanks
    Dave

    Doies it help anyone that I just received this from the email address; [email protected];
    Hello,
    You have received this email because the content you posted below has been rejected by our moderators.
    Re: Barn doors transition causes crash
    posted Jun 5, 2013 5:15 PM  
    Since the original report earlier today - I now just have to put the timeline scrubber over the barn doors transition and PP CS6 closes without an error message and without saving. The unfortunate part here is there doesn't seem to be any record or log of the crashes to be able to disseminate whats going wrong.
      Barn doors worked in CS4 - and the only change in this project is the re-opening in CS6 CC."
    Question; Did I put something in there that was defammatory, rude, obnoxious, incorrect or un-helpful?
    If anyone here believes I did, I sincerely apologise for the need of moderators to have intervened... and for causing any offence.

  • How do you have the bottom stroke of a table show up using Table Styles and Cell Styles only?

    I am using InDesign CS6, and I want to create a Table Style that has the bottom stroke show up, but does not have a table border, such as:
    However, whenever I try to change the Table or Cell strokes so that the last stroke shows up, I get the entire table border, or some strange combination of borders:
    Does anyone have any insight on how I can get the bottom stroke to show up while preserving my other stroke properties? Since I work with long documents, it's necessary to be able to control all of my tables through Table Styles and Cell Styles, and not by manually changing each and every table with the Stroke palette.
    For reference, here are the my current Table Style properties and the resulting table:

    Michael Murphy is the InDesign style-meister. He wrote "Adobe InDesign Styles" for Adobe Press, and did a great Lynda.com title on InDesign styling. Here's what he says in the book:
    "As mentioned at the beginning of this chapter, with all the power of table and cell styles, it is important to understand not only how they work and what they can do for you, but also to understand their limitations.
    "Two formatting features missing in table and cell styles have already been discussed: You will always have to set the column width and row height of cells when applying a table style for the first time, and you will always have to convert body rows to header and/or footer rows every time you apply a table style for first time or update the table's data....
    "But there's another kind of limitation that's important to keep in mind as you are designing tables: It is very easy to design a table that cannot be completely defined by a table style. In many cases, you'll need to define an extra cell style or two that lets you complete for formatting. [my emphasis]."
    So I think that's what you have to do: Apply another cell style on top of the cells at the bottom of the table after applying the table style.

Maybe you are looking for