"Missing Linked Stylesheet File" Message in Build Log

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
Telecaster52
Propeller Head
Posts: 32
Joined: Tue Dec 01, 2020 2:22 pm

"Missing Linked Stylesheet File" Message in Build Log

Post by Telecaster52 »

Hello and Greetings

Apologies, again, for the neophyte nature of this question.

Upon the completion of a build, the Open Build Log gremlins behind Flare all blurted out a warning "Missing Linked Stylesheet File" with a link following said warning. It appears that, mysteriously, the/a linked table style has disappeared (meaning that the link that the style "points to" [for the lack of a better term] has been broken). And this is true: despite (ignored) exhortations from various colleagues, we moved the file from one folder location to another which has, ineluctably, broken the style links.

I am certain that this topic has been addressed multiple times. However, in my haste, I was unable to apply any of the recommendations listed herein. How does one overcome this dreaded "missing link" issue that is plaguing our files? How do I apply the proper style ancestry to our tables so the link warning disappears? The missing link paradox is driving some of our members into a permanent state of madness.

Ah...and to clarify, the file exists in my Content explorer. Ultimately, I'm trying to redirect the style link to that style (if that makes any sense).

Thank you in advance, Flare Pros, Doyens and Wizzes.
robdocsmith
Sr. Propeller Head
Posts: 247
Joined: Thu May 24, 2018 3:11 pm
Location: Queensland, Australia

Re: "Missing Linked Stylesheet File" Message in Build Log

Post by robdocsmith »

Hi,

There are several ways to do this...

You could put the tablestyle back in the location linked to from the affected topic (usually somewhere inside Content/Resources/TableStyles), then use the Content Explorer inside Flare to move the file to your preferred location. This should update all links used in the topics and stop the warning being issued. Usually best to move files using Flare as it is pretty good at updating all links throughout the project. If you don't know the topic(s) affected, do a Find in Flare (Find in source code option selected) for the stylesheet name.

Or you could use Flare Find/Replace in source code (or a text editor, a command line tool or python script or something else) to search and replace in all project files and change:
<link href="old/path/yourstylesheetname.css" rel="stylesheet" MadCap:stylesheetType="table" />
to point to the destination of the file.

A quick find all "old/path/yourstylesheetname.css" in all files in the project can be used to check that all locations have been updated correctly. I'm a firm believer in using a good text editor alongside Flare for find/replace issues or to check syntax of files when issues arise, but that's the way my mind works.

Rob
Post Reply