Related Item link is broken in DispForm.aspx for a task in Workflow Tasks list if file name contains " ' " (single quote)

Description:
We have created a custom workflow in Microsoft Visual Studio 2013 and SharePoint 2013. This Workflow is associated with a Document library.
This Workflow starts as soon as any new item is created OR updated in Document library and creates a Task in Workflow Tasks list.
 Related Item link is not working in following scenario -
Upload a file that contains “ ' “
in its name, in a document library
Navigate to Workflow Tasks list
Open View Item form (DispForm.aspx ) of  Task Created by workflow then click on link in Related Item fields
OUPUT:
Related Item link  truncates after “ ' “
Eg.
Original Link: http://<Site URL>/Documents/te'st.txt
Related Item Field: http://<Site URL>/Documents/te
Is this known bug in SharePoint 2013 OR any hotfix available to fix it.

Hi,
As I tested per your description, I can reproduce the issue as well.
From what I have found out, it seems SharePoint resolve single quote into different code in different place. During the test, if I set Task Name to Document Name, single quote will be resolved to &#39; , if I set some field to Document encoded URL, single
quote will be resolved to %27 . For now, I haven't found out any article talking about this issue.
As workaround, we may find out a way to change the Related Item field. However, it is OOB field in workflow task (SharePoint 2013) content type, and this content type cannot be modified in form.
I'd suggest you add new column to get document url and place in the form in Task content type settings.
Regards,
Rebecca Tu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected]

Similar Messages

  • Related Content Links are broken

    We have ~100 FR reports that have 4-5 Related Content links set up each.
    The Directory structure we had in Workspace Explorer looked like this
    ROOT
    - Financial Statements
    -- Report 1
    -- Report 2
    - Balance Sheet
    -- Report 1
    -- Report 2
    - Metric Reports
    -- Report 1
    -- Report 2
    Now we need to change it so that all those Folders are not DIRECTLY under the ROOT but under a Subject Area folder like this
    ROOT
    - FINANCE+
    -- Financial Statements
    --- Report 1
    --- Report 2
    -- Balance Sheet
    --- Report 1
    --- Report 2
    -- Metric Reports
    --- Report 1
    --- Report 2
    The problem is when we make this change, the Related Content links are broken. Is there a easier way to update the Related Content links besides Opening each report and Delete/Re-Add ALL the Related Content links?!
    As anyone been successful at Export them either via LCM or the Workspace Export and modified the links that way?
    Any thoughts on a easier approach would be greatly appreciated!
    -Robert
    Edited by: user627522 on Aug 4, 2010 1:39 PM

    You can do a folder by folder search/replace using the Workspace menu item:
    Tools/Change Related Content links.
    You could also try and export/reimport on a small sample to test first.
    Regards, Iain

  • All items link are broken !! - Help

    Hi All,
    I'm having problems when adding items to a page using Portal 9.0.2.
    Every file, text document (displayed in other page), etc. I upload to a Portal's page generate a URL like this one here : http://machine:7779/pls/portal/url/ITEM/DAE1396C0F7B46E89992FD896CE92E9F .(Small mp3 file)
    When I click the link into the page all I see is a HTTP 404 - Not Found.
    I'm getting this error to every file or text I upload in any page group.
    Help!!!
    Ilan Salviano

    Now I feel dumb.. Links are working fine.. I promise they were really broken though.
    Thanks, if someone happened to see this and fix it (or happened to talk to the lady I spoke with in tech support).

  • Hi guys! I have a question related to the latest version of iMovie. For some reason, when I drag a video file to my project, the audio becomes slightly higher pitched. Any suggestions on how to avoid this? Thanks!

    This is iMovie 10 I believe. Thanks again!! Really appreciate the help!

    To do this in iMovie 11. use the SHARE menu. Share your project using the Share menu and choose Export Using QuickTime.
    In the Dialog box that comes up, choose Sound to AIFF, or one of the other sound options. This will create a file that you can drag into iTubes.

  • Task List - Show Related Item URL in the EditForm.aspx

    Hello guys,
    I have a document library and a task list, I used a script to open the task directly in EditForm.aspx
    (so the approve\reject buttons will be available directly on the form)..
    what is happening is i'm not able to display (Related Item) link in the EditForm.aspx, it is available only in the DispForm.aspx.
    Thanks.
    Imad El-Qasem

    Hi Rajani,
    as simple as this, SP workflow is associated with the library, when the document status is "closed" Task will be assigned to a user.
    in the tasks, the related item will appear only on the Dispform.aspx but not on the Editform.aspx.
    how to display related item in the Editform.aspx task form
    Thanks

  • CS6 Links Window Shows jpeg file name but not tiff or psd file name

    So I have a question, I noticed that in CS5 and CS6 that when i place a jpeg file in Illustrator, the file name does appear in the links window, but when i place a tiff or a psd file there is no file name in the links window, this drives me nuts.  Is there a way to see the files name of placed psd and tiffs in the links window?

    Here's my thoughts...
    1. You are a bit confused and I wonder how you can determine a file is a PSD or a TIF by looking at it?  Not all print drivers can recognize PSD's, but can recognize TIF ( this means almost all output devices can interpret TIF's no problem ).  That said, PSD's can manage layers better than TIF's which add to file size each layer you include in the TIF.
    2. Never say never.  This all depends on the file's use.  Layered TIFs can add complexity in which a print driver can or cannot deal with.  As you work on an image, you may want to merge layers for whatever reason(s) and you always have the option to flatten whenever you feel like it.  However, It is also a good idea to dupe the file as you move along.  That means you always have a layered version to fall back on should you need to edit later on.  I also Place transparent PSDs in Illustrator files with no problems.  But, I save as EPS in Illustrator and when I do that, then the file is automatically flattened.  This is perhaps what the internet was talking about.
    3.  Yes, see number 2 above.  There's no such thing as automatic flattening of TIFFs.  Again, this all depends on the printer and whether or not it can print while retaining original layers.  Some do, some don't.  Most of the time, I edit in PSD with layers intact.  Then, when I prep the file for printing, I will save a copy as a flattened TIFF so the file streamlines through the RIP and Print process.
    4.  Makes no difference.  Use 'em if you've got 'em.
    Try to get some good resource material at a library or college bookstore or barnes & noble.  Also, get Adobe's Print Publishing Guide.  This is a good reference guide.
    Message was edited by: John Danek

  • Document Library Web Part - link to DispForm.aspx

    Hi there. I'm trying to solve a problem that appeared when I tried to create a simple page with the list of documents from my document library. I need Title field displayed as a hyperlink to DispForm.aspx, not to Document itself, and not to a dropdown menu with Edit option.
    The reason of this requirement is that we don't like to allow users to download document w/o reading metadata assosiated with it. On the other hand, ordinary user must not see Edit links in menu, because we don't want to tempt them to try edit document at all.
    Of course, I can customize the data view in Sharepoint Designer - go to Code View and manually change <xsl:value-of select="@FileRef"/> to something like ..../dispform.aspx?ID=<xsl:value-of select="@ID"/>. But this ways seems to mee a bit ugly and I don't like to repeat this for each and other document library.
    Is there any elegant way to solve the problem?
    Thanks.

    If you are working in MOSS 2007 then a more elegant way would be to create your custom document library definition.
    You need to go to the 12 hive --> features --> document library list definition.
    Create a copy of this list definition and modify it so that the document name points to the dispform.aspx.
    Install and activate the new feature and create document libraries using your new template.
    And the other part of not showing the edit item options can be achieved using sharepoint permissions. Why create something custom for that?
    Regards, Huzefa Mala, MCTS

  • Tell A Friend (product page) doesn't work - broken item link

    Hi,
    Does anyone know a fix for the Tell a Friend item link?
    E.g if you "tell a friend" for our item here (use your email as friends)
    It sends a broken link as the item url.
    As this is automatically generated by BC - does anyone know how to fix it?
    Thank you

    issue resolved by SCN content team.

  • How to open "Dispform.aspx" in new window or tab in SharePoint List item click.

    Hi,
    I have a SharePoint list.It has column name "Description" which is "Multiple lines of Text" and "<label for="onetidAppendOnly">Append Changes to Existing Text" is Yes.</label>
    Now the view showing the Description <label for="onetidAppendOnly"></label>column value as a "View Entries...". while click the view entries. It showing the records in same window. But
    instead of that i want to open the record in New tab / New window as Popup.
    Is it possible?
    Thanks & Regards
    Poomani Sankaran

    Hi,
    The view itself is a Web Part called an XSLT List View Web Part (XLV for short). This Web Part is stored on an ASPX page that is by default associated with a list or library on your site.
    I suggest you can check if the view page is valid, also, you can try to create another view, then redirect to the view page to see if there is xslt in the page.
    Here are some detailed articels for your reference:
    Create a custom list view using SharePoint Designer
    Using SharePoint Designer 2010 to Work with Web Parts
    How to: Customize the Rendering of a Field on a List View
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • How to remove Forms/DispForm.aspx from search results

    HI
    I configured enterprise search in our share point public facing portal,
    and when a user search for any content why the search results are displaying from below links and when user clicks it asking authentication.
    /Pages/Forms/DispForm.aspx?ID=477
    /PublishingImages/Forms/DispForm.aspx?ID=3
    /SiteAssets/Forms/DispForm.aspx?ID=1
    /Documents/Forms/DispForm.aspx?ID=1
    and how to remove these from search results .
    adil

    To remove from search results...
    Central Administration > Application Management > Manage service applications > Search Service Application > Crawl Rules
    In the Path enter: *://*/DispForm.aspx* and for the Crawl Configuration check "Exclude all items in this path" and check "Exclude complex URLs (URLs that contain question marks - ?)"
    You will then need to do a crawl of your content to remove any URLs that match this path.

  • Changing the default "New Item" link url in SharePoint

    Is it possible to change the default url of the New Item button on a list.
    When i hover over or click on new item link it show the ......../15/listform.aspx?Page type=blah.....blah......
    I want it to be something like :/newform?source=xxxx
    Please help me !
    Thank you !

    Hi,
    The following code for your reference, please add the code into a Content Editor Web Part in the list view page.
    <script type="text/javascript" src="http://code.jquery.com/jquery-1.11.2.min.js"></script>
    <script type="text/javascript">
    $(function () {
    $("#idHomePageNewItem").attr("href", "http://site/list/newform.aspx?source=http://...........");
    $("#idHomePageNewItem").attr("onclick", "");
    </script>
    Best Regards
    Dennis Guo
    TechNet Community Support

  • "Find Related Items" in Entourage (like Outlook on PC)?

    Hi,
    I use Outlook on a Win XP machine at work and Entourage on my Mac at home. I cannot find anywhere in Entourage where there is a command that behaves the same as the "find related items" command does in Outlook. I use this extensively on my work computer because it automatically finds any messages in my inbox and sent items which belong to the same thread and allows me to quickly select all those
    messages and file them in another folder together.
    There is a "Find Related Items" command in my Edit menu in Entourage but it is always greyed out. From what I can read about it, it will only find "related" items which I have manually created links to. Not very helpful in my opinion. Is there a third party script or something which gives Entourage the same functionality as Outlook?

    If you don't get an answer here, there is a help
    newsgroup devoted to Entourage:
    I tried there first and have gotten no replies. I saw that others were asking Entourage questions in this forum so thought I'd give it a shot. Any solutions I get from either forum I will make sure to post to the other forum.
    http://groups.google.com/group/microsoft.public.mac.office.entourage/browse_thre ad/thread/0e89f4e88b5ac1a6/#
    Thanks,
    Larry

  • Question about including JQuery in a Survey list DispForm.aspx page

    In SharePoint 2010, I was able to hide the links for editing, deleting... an existing survey entry in the DispForm.aspx page using the following technique:
    1 - Save jquery .js file to the Style Library in the top level site
    2 - Save the .js file that has the jquery code to hide the link in the Style Library in the top level site
    3 - Reference the .js files in the DispForm.aspx page like this:
    <asp:content contentplaceholderid="PlaceHolderAdditionalPageHead" runat="server">
     <script type="text/javascript" language="javascript" src='<asp:Literal runat="server" Text="<%$SPUrl:~SiteCollection/Style Library/jquery-1.5.0.min.js%>"'></script>
     <script type="text/javascript" language="javascript" src='<asp:Literal runat="server" Text="<%$SPUrl:~SiteCollection/Style Library/hideedit.js%>"'></script>
    </asp:content>
    The hideedit.js file contains the following:
    $(document).ready(function(){
        $('#ctl00_m_g_d3bec7ca_bd25_448d_8874_da35856854c5_ctl00_ctl01_ctl00_toolBarTbl').hide();
    I am trying to use this same technique in SharePoint 2013 but it is not working.
    It appears that neither of the js files are loading properly.
    As a test, I put the following in the hideedit.js:
    alert('test');
    $(document).ready(function(){
        alert('from jquery');
    Neither of the alerts are displayed when navigating to the DispForm.aspx file.
    How do I get JQuery loaded in a survey DispForm.aspx file in SharePoint 2013?

    Have you tried this within Designer?  Copy the DispForm, edit it and add the JD references below the PlaceHolderMain section and then save.  Set this as the default Displat Form and your changes should load.
    Steven Andrews
    SharePoint Business Analyst: LiveNation Entertainment
    Blog: baron72.wordpress.com
    Twitter: Follow @backpackerd00d
    My Wiki Articles:
    CodePlex Corner Series
    Please remember to mark your question as "answered" if this solves (or helps) your problem.

  • Adobe Photoshop CC 2014 Help TAB Photoshop Online Help - LINK IS BROKEN

    My Adobe Updater installed Photoshop CC 2014, and all seemed well, until I attempted to get online help via:
    Help TAB > Photoshop Online Help
    This LINK is apparently BROKEN!
    Here is the resulting error on Firefox (version 32.0):
    XML Parsing Error: undefined entity Location: jar:jar:file:///C:/Users/Owner/AppData/Roaming/Mozilla/Firefox/Profiles/kaeec5li.default/extensions/[email protected]!/chrome/speedtest.jar!/content/net
    Error.xhtml Line Number 369, Column 38:
    <h1 id="et_protocolNotFound">&protocolNotFound.title;</h1>
             -------------------------------------^
    I also attempted to open same link using Chrome, and IE browsers;  BOTH browsers we unable to navigate to the Adobe Help!
    Here is the supposed LINK URL (via Firefox):
    community.adobe.com/chcservices/services/redirect?u=http://help.adobe.com&p=Photoshop_15.0&l=en_US&id=AH_HOME
    ADDITIONAL NOTE:
    The exact same error is generated when attempting to get online support via:
    Help TAB > Photoshop Support Center
    Hopefully, someone from the Adobe Tech Community may shed some light on this MAJOR issue, as it precludes users from accessing Online Help and Support!

    Pfondaneche wrote:
    Hello
    I am having exactly the same problem with the French version of Photoshop CC 2014. The only menu item working is "What's new?".
    Trying to access online help (F1) takes me to
    http://community.adobe.com/chcservices/services/redirect?u=http://help.adobe.com&p=Photosh op_15.0&l=fr_FR&id=AH_HOME
    Very similar to your page except for the language.
    This page does not load (error 404).
    I was on chat with Adobe support but they did not solve the problem.
    I tried to reinstall and also used 3 different browsers (IE - FF - CH).
    I have Photoshop installed on 2 different platforms (W7 and W8), same issue.
    Were you able to solve your problem?
    Pfondaneche, when you press F1, are you just in the main Photoshop window?
    When I press F1 I see it go through a quick redirection and within a small fraction of a second it ends up here:
    Photoshop Help | Photoshop Help
    The specific link you posted does not work for me either, so I'm assuming there's an Adobe server problem somewhere, or maybe a problem with that particular link.
    I've noticed Adobe has failed to update a number of its pages for the new Photoshop CC 2014.1 release.  For example, where is a new page that describes where Photoshop CC 2014.1 keeps its preference files?
    -Noel

  • Edit Add New Item link in certain view of list in SharePoint Programmtically

    this is my requirements
    i have one list called List 1 and two content types on it
    CT 1 and
    CT 2 and create two views on the list
    View 1 to display items of CT 1 
    View 2 to display items of CT 2 
    the creation of list and views is done via XML 
    now i need to change the URL of add new item link in every view to open its content type, i.e. when i was on view 1 i click on add new item, it will open new item form of CT 1 and hen i was on view 2 and click on add new item, it will open new item form
    of CT 2 
    i do a lot of search on the internet but get the following code but it doesn't work for me, i already wrote it in event receiver
    SPSecurity.RunWithElevatedPrivileges(delegate()
    SPWeb web = properties.Feature.Parent as SPWeb;
    web.AllowUnsafeUpdates = true;
    SPList contractList = web.Lists.TryGetList("Contract");
    SPLimitedWebPartManager webpartManager = web.GetLimitedWebPartManager("Lists/ContractList/SICET%202A%20Contract.aspx", PersonalizationScope.Shared);
    foreach (System.Web.UI.WebControls.WebParts.WebPart item in webpartManager.WebParts)
    if (item.GetType().Name == "XsltListViewWebPart")
    XsltListViewWebPart listViewWebPart = (XsltListViewWebPart)item;
    Guid guid = new Guid(listViewWebPart.ViewGuid); // get the view details which is applied to web part
    SPView sicet2AView = contractList.Views[guid];
    sicet2AView.GetType().InvokeMember("EnsureFullBlownXmlDocument",
    System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.InvokeMethod,
    null,sicet2AView,null);
    PropertyInfo nodeProp = sicet2AView.GetType().GetProperty("Node", BindingFlags.NonPublic | BindingFlags.Instance);
    XmlNode node = nodeProp.GetValue(sicet2AView, null) as XmlNode;
    XmlNode toolbarNode = node.SelectSingleNode("Toolbar");
    //sicet2AView.ViewFields.DeleteAll();
    if (toolbarNode != null)
    string toolbarType = toolbarNode.Attributes["Type"].Value;
    string linkText = "abdeen";
    toolbarNode.Attributes["Type"].Value = "Freeform";
    XmlAttribute positionNode = toolbarNode.OwnerDocument.CreateAttribute("Position");
    positionNode.Value = "After";
    toolbarNode.Attributes.Append(positionNode);
    //toolbarNode.InnerXml = @"<IfHasRights><RightsChoices><RightsGroup PermAddListItems=""required"" /></RightsChoices><Then><HTML><![CDATA[ <table width=100% cellpadding=0 cellspacing=0 border=0 > <tr> <td colspan=""2"" class=""ms-partline""><IMG src=""/_layouts/images/blank.gif"" width=1 height=1 alt=""""></td> </tr> <tr> <td class=""ms-addnew"" style=""padding-bottom: 3px""> <img src=""/_layouts/images/rect.gif"" alt="""">&nbsp;<a class=""ms-addnew"" ID=""idAddNewItem"" href=""www.facebook.com""]]></HTML><URL Cmd=""New"" /><HTML><![CDATA["" ONCLICK=""javascript:NewItem(']]></HTML><URL Cmd=""New"" /><HTML><![CDATA[', true);javascript:return false;"" target=""_self"">]]></HTML><HTML>" + linkText + @"</HTML><HTML><![CDATA[</a> </td> </tr> <tr><td><IMG src=""/_layouts/images/blank.gif"" width=1 height=5 alt=""""></td></tr> </table>]]></HTML></Then></IfHasRights>";
    toolbarNode.InnerXml = @"<IfHasRights><RightsChoices><RightsGroup PermAddListItems=""required"" /></RightsChoices><Then><HTML><a class=""ms-addnew"" ID=""idAddNewItem"" href=""www.facebook.com"">Test</a></HTML></Then></IfHasRights>";
    sicet2AView.Update();
    //listViewWebPart.ViewGuid = sicet2AView.ID.ToString("B").ToUpper();
    //listViewWebPart.Visible = true;
    webpartManager.SaveChanges(listViewWebPart);
    web.Update();
    but it doesn't work, my first trail is changing the text of the link then go to change the link any help plz
    Mohamed Abdeen

    Hi,
    The “Add new item” button will redirect users to add new item with the default Content Type of the current list.
    So a workaround can be like this: We can change the default Content Type of this list every time when users open this list view page, then the “Add new item” button will work
    as you expected.
    Here is a link with code demo about how to programmatically set a content type as default content type in a SharePoint 2013 List:
    http://www.ashokraja.me/tips/How-to-programmatically-set-a-content-type-as-default-content-type-in-a-SharePoint-2013-List
    We can put the code into a Visual Web Part and add it into your two views, then when users open a list view page, the code will be executed to change the default Content Type
    of the current list.
    To develop a custom web part, you can take a look at the links below with steps in detail for a start:
    Creating Web Parts for SharePoint
    http://msdn.microsoft.com/en-us/library/ee231579.aspx
    SharePoint 2013 Create a Visual Web Part
    http://raquelalineblog.wordpress.com/2013/04/25/sharepoint-2013-create-a-visual-web-part/
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

Maybe you are looking for