<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">When handling conrefs to objects that no longer exist in our CMS, we would like to handle this the same way as regular dita files with the same issue.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">E.g <o:p></o:p></p>
<p class="MsoNormal" style="background:white;text-autospace:none"><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096;background:white;mso-highlight:white"><note</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C;background:white;mso-highlight:white">
 id</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040;background:white;mso-highlight:white">=</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300;background:white;mso-highlight:white">"GUID-364D534C-E105-4CA7-81B5-FA910387D630"</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#F5844C;background:white;mso-highlight:white">
 conref</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#FF8040;background:white;mso-highlight:white">=</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#993300;background:white;mso-highlight:white">"./Jenkins/nonexistingfile.dita"</span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;color:#000096;background:white;mso-highlight:white">></span><span style="font-size:12.0pt;font-family:"Times New Roman",serif;background:white;mso-highlight:white"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Results in a ‘[Target file not found]’ error with more details when you hover over.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">For the moment we return a new File(tothenonexistingpath) in getCanonicalFileFromFileUrl, which results in the erro:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">xxx\GUID-C2F39B76-FDC6-4E7C-80E1-36E7BC635FBA (The system cannot find the file specified)<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Is there a way we can raise the same error from our custom code?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Kind regards,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Pascal<o:p></o:p></p>
</div>
<div style="mso-line-height-rule:exactly;-webkit-text-size-adjust:100%;white-space:nowrap;"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0;"><tr><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;"><tr><td align="left" style="padding:0 0 15px;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0;line-height:normal;"><tr><td align="left" style="vertical-align:top;"><img src="https://www.sdl.com/static/corporate/SDL25y_emailLogo.png" border="0" alt="" style="font-size:0;" /></td></tr><tr><td align="left" style="vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="color:#000001;font-size:14.67px;font-family:Arial;font-weight:400;font-style:normal;text-align:justify;"><tr><td style="font-family:Calibri;"><a href="http://www.sdl.com/" target="_blank" id="LPlnk689713" style="text-decoration:none;color:#000001;"><strong style="font-weight:400;">www.sdl.com</strong></a></td></tr></table></td></tr></table></td></tr><tr style="white-space:normal;"><td align="left" style="padding:0;vertical-align:top;"><table cellpadding="0" cellspacing="0" border="0" style="color:#A1A1A1;font-size:10.67px;font-family:Arial;font-weight:400;font-style:normal;text-align:justify;width:100%;"><tr><td style="font-family:Calibri;">SDL PLC confidential, all rights reserved. If you are not the intended recipient of this mail SDL requests and requires that you delete it without acting upon or copying any of its contents, and we further request that you advise us.<br />​SDL PLC is a public limited company registered in England and Wales. Registered number: 02675207. <br />Registered address: <span style="background-color:transparent;">SDL PLC, </span>New Globe House, Vanwall Business Park, Vanwall Road, Maidenhead, SL6 4UB, U.K.<br /></td></tr></table></td></tr></table></td></tr></table></div><span style="font-family:remialcxesans;"> </span></body>
</html>