Issue in creating a add link to a document content type on a doc lib name with , / special characters

hi,
i am having a  requirement to create/use "add link to a document" content type for a item in the document library.
so i got  the code from below site :
http://howtosharepoint.blogspot.in/2010/05/programmatically-add-link-to-document.html
my issue is, if teh document  library names are single words - like MOM, model, procedures etc this  functionality is working fine and i am able to view the link to a document as an item. 
but when the doc lib name contains special characters like , or  /  , this link to a  document  content type functionality is NOT working.
can anyone pls point me whether this is the  actual  issue ? ie, if  the doc lib name contains special chars  like , or /  my
add link to a document wont work? is there any restrictions/limitations for doc lib names in SharePoint ?
for eg: my doc lib names are :
1) Report and analysis, Data
2) form / template
3) map/ plot
help is highly appreciated!

hi,
 its talking abt the subsite names and  folders and NOT the document librraies.
 is there any link which gives the naming convention / restricted names for  document libs or  splists , from msdn / blogs.technet.
thnx

Similar Messages

  • Problem "Link to a document" content type within document set - Bug?

    Hello,
    I'm having an issue with the "Link to a document" content type in one of my document libraries. The issue is when you create a link to a document inside a document set:
    The result is that the users get redirected to the wrong URL (../docsethomepage.aspx instead of ../docsethomepage.aspx?ID=.......), and instead of seeing the actual document set they started from, with the new link (or any document that is already in the
    document set) the users see a default view of a generic document set - not the one they started from:
    Any suggestions on how to fix this? One library has this faults and one does not. Our SharePoint server is up-to-date.

    Hi,
    I reproduced the issue in different versions of SharePoint, it works in SharePoint Server 2013, and the issue occured to Office 365. I then tried enabling “Launch forms in a dialog”, it worked.
    I will forward the issue to our internal feedback channel. And since the issue occurs to Office 365, please create service request with online engineer for root cause.
    Regards,
    Rebecca Tu
    TechNet Community Support

  • Get original URL for Link to a Document content type

    Hello,
    I'm having a SharePoint doc library with ItemAdded event receiver attached to it and "Link to a Document" content type enabled. My general question is:
    How to get URL that the link points to?
    I'll show you how I'm trying to achieve that:
    SPWeb parentWeb = properties.Web;
    if (properties.ListItem.ContentType.Name == LinkContentTypeName)
    object urlFieldValue = properties.AfterProperties["URL"];
    if (urlFieldValue != null && urlFieldValue.ToString() != String.Empty)
    // continue
    But I always get null so I can't even get inside IF statement. I've tried to install ItemAdded event receiver as synchronous, but it didn't make a difference. I'd appreciate any ideas.
    Regards
    Tomasz

    This is not very convenient solution, because ItemUpdated can be executed more than once. However this certainly will work, so I'll accept this as a workaround. Actually I've found another one. I'm parsing link aspx file and I'm getting the URL
    from mso:URL tag:
    <%@ Assembly Name='Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c' %><%@ Register TagPrefix='SharePoint' Namespace='Microsoft.SharePoint.WebControls' Assembly='Microsoft.SharePoint' %><%@ Import Namespace='System.IO' %><%@ Import Namespace='Microsoft.SharePoint' %><%@ Import Namespace='Microsoft.SharePoint.Utilities' %><%@ Import Namespace='Microsoft.SharePoint.WebControls' %><html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"><Head> <META Name='progid' Content='SharePoint.Link'><!--[if gte mso 9]><SharePoint:CTFieldRefs runat=server Prefix="mso:" FieldList="FileLeafRef,URL,_x0043_C1,KitId,ItemKey,Suffix_x0020_Code"><xml><mso:CustomDocumentProperties><mso:URL msdt:dt="string">http://serverUrl/sites/arrangement1/Shared Drawings/test, test</mso:URL><mso:ContentType msdt:dt="string">Link to a Document</mso:ContentType><mso:File_x0020_Title msdt:dt="string">Winding A Assembled</mso:File_x0020_Title>
    <mso:Revision_x0020_Number msdt:dt="string">-</mso:Revision_x0020_Number>
    <mso:Page_x0020_Size msdt:dt="string">A2</mso:Page_x0020_Size>
    <mso:ContentTypeId msdt:dt="string">0x01010A0082704B66E8B222478AF2E379D8A2FFB9</mso:ContentTypeId>
    <mso:ItemKey msdt:dt="string">1</mso:ItemKey>
    </mso:CustomDocumentProperties></xml></SharePoint:CTFieldRefs><![endif]--></head><body><form id='Form1' runat='server'><SharePoint:UrlRedirector id='Redirector1' runat='server' /></form></body></html>
    Regards
    Tomasz

  • Creating a new "Link to a Document" opens Word document or upload document dialog - plus more!

    The Link to Document content type seems to be corrupted at root. When I attempt to create a new Link, either Word opens with a blank document or the "Upload" document dialog opens. It's been changing as I investigate.
    One things I've noticed is that the "Link to a Document" Content Type on the parent site collection now shows it's parent as Document. this explains why the Word document opens, but not why the Upload dialog does.
    While writing this question, I decided to check further and it seems that the other document types, Audio, Video etc.  all now have Document as the parent and are opening a blank Word document.
    Has anyone seen this behavior? How do I fix this?
    This is on SharePoint 2010.
    Thanks in advance.
    Barry Cohen
    Barry Cohen

    Well, I spoke too soon. The process worked for all the custom content types, but the default Document type was still messed up. I probably should have fixed that one first, but...
    Anyhow, the Document type had no template going to the Upload File dialog rather than the blank Word document it's supposed to go to. I followed the same procedure I'd followed for the other content types, checking what worked on another site and using that
    template which in this case was a blank field:
    So, I went opened Document, Document Content Type and went to advanced settings. The template field was empty, which matched the working site, so thinking that if I saved, it would match up with the working site. I saved the Document content type and when
    after several minutes the save failed with an incredibly long list of locations where that were being perceived as "read only" plus several hidden content types that were listed as sealed. This snapshot shows a few of they many pages of content types. (I poorly
    struck through confidential info):
    Besides this gigantic error, which would require going to hundreds of locations on the site to change read access settings, which are, as far as I can tell actually not "read only" or are inaccessible, such as the hidden "System Page Layout' and so forth
    which shouldn't be based upon the default document type anyway and therefor not fixable, I need to understand why this is happening and what to do about it. I don't want to spend the next two days going over all of these libaries and content types and ending
    up back where I started with all the content types still screwed up. Afterall, I've spent about a day creating all these custom Content Types only to have the default Document content type loose its settings and corrupting everything and another day fixing
    it and having it happen again.
    This is a highly unacceptable behavior on the part of SharePoint and I would really like to fix this.
    Help is sorely needed.
    Thanks in advance
    Barry Cohen

  • Link to Document Content Type issue - links not relative

    I'm using the Link to Document content type in a library in order to link to documents in other libraries.  We just migrated to 2010 from WSS 3.0 (2007) and are having an issue.  We view our site internally thorough the internal machine address/name
    and also have users connecting remotely from an external url.  In 2007, it didn't matter whether we were internal or external, all links were apparently stored as relative because the "link to document" items worked fine either way.  This
    was despite entering the url fully and not relative.  When viewing/editing the properties of that item, it shows you the full url applicable to where you are viewing it...internal if internal, external if external.  
    However, after the migration to 2010, all links that existed previously are fine, but any new items created using link to document apparently no longer store them as relative so either the internal or external users get the wrong link.  For example,
    if I put in the link as http://servername/library/doc the external users get that same link and it doesn't work, since it should be like https://myurl/library/doc.  Viewing/editing the properties of the item shows an absolute url of whatever location
    the item was added.  For instance if I'm connected externally and add an item, even if i only enter it as relative, it creates the link as https://myurl/library/doc and then the internal users end up having to connect via that url and that is just a pain
    due to AD and certificate issues.  The internally created links are obviously not accessible at all from the outside. 
    I've also tried storing the link as relative when creating the item but it seems to overwrite it with the absolute link.
    This is causing quite an issue with us.  Does anyone have any insight as to what is going on and how to fix it?
    thanks!

    Hmm...I thought I had the thread set to email me if there were replies and I never received an email so I thought there were no replies.  I came back to this since another issue cropped up that is related and there were replies!
    I cannot recall how things were set up exactly in 2007 and there's no way to look back now.  I'm a novice when it comes to AAM/DNS/IIS really.  Maybe you can suggest what it should look like?
    We have our site which is accessed internally by http://machinename .  Externally, we use https://sharepoint.mydomain.com .   
    In AAM we have http://machinename listed in the default zone with the same url for internal and public.  We also have https://sharepoint.mydomain.com listed, in the internet zone and it also has the same url for both internal and public.  
    In IIS, the sharepoint site has bindings for port 80 and 443, but nothing specific to https://sharepoint.mydomain.com
    DNS....I'm not sure what should be here, if anything.  
    We can access the site just fine externally, there are just a few instances where some links do not work correctly and point to the internal url instead of external when you are external.  The original post is one time and the other, found the other
    day, is a search box webpart that points to a relative url for the results page but externally it ends up going to the internal url.
    I'd appreciate any guidance.  Thanks!

  • Can not create short cut link in Cross-Site Content at WPC

    hi experts,
    im new in web page composer.please guide me...i had configured my entry point at wpcDragExplorerEntryPoints property. its working but its working ( the folder which i want was appeared) when i want drag and drop into my page. but when i want to create short cut link in Cross-Site Content folder, the folder which i want to use is not appeared. just appeared Favorites folder, Public Documents folder, Personal Documents folder, Recently Used folder, Common folder, Web content...so, i cant create new short cut link to my folder. i create my folder in /pcd/portal_content/myfolder..can someone guide me how to solve this?
    thank in advance,
    faeza

    I got it, should deploy Template Region Bindings.

  • How to add the library document version to the parent Document content type?

    Hi All,
    I have a PWA instance with a project site for each project.
    Each project site has its own document library.
    Now I want to create several Templates to be available within each document library.
    I have created the new content Site Content Types (Site Settings > Site Content Types) to fit my needs; each content type has the "document" content type as parent type.
    Now I want include the "version" property (the dynamic value from the versioning) to each new document type, so I have tried to enable the "Information management policy settings" to the parent "document" type or the new ones,
    including the label "{Version}", but I receive this error:The label reference, Version, could not be found.
    So the only way to do this, is to open each site document library and make this change within it.
    Why I can't enable the Lable at the Site level?
    Thanks

    Hi,
    I can reproduce the issue by adding {version} or {_UIVersionString} in site content types > Document > Information Management policy settings > enable label.
    As workaround, please create a document library, then add label in document library settings > Information Management Policy settings. Now save this document library as template and create new document library based on this template, the policy settings
    will be saved for new document libraries.
    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]

  • File created with Document Content Type will not be saved back to Sharepoint library

    Recently some of our users, after upgrading to Windows 8.1 with Office 2013, intermittantly are not able to save files created using  document content types template back to sharepoint library. Instead the location is set
    to their local storage. The same templates used by Windows 7 users with Office 2010 are working fine. Setting the SP sites as Trusted location in IE and Clearing IE Cache did not help. Adding the SP site in Word Trusted Location did
    not help. Any suggestions how this can be resolved is appreciated. Thanks.     

    Hi,
    According to your post, my understanding is that you could not save office file back to the SharePoint Document library.
    It may have to something with your Word Settings. When you click new and it opens in MS Word, word treats it as unsafe because perhaps it is not saved. To make it work:
    Go to Word (2013) -> File Menu -> Options -> Trust Center -> Trust Center Settings
    -> Protected View Tab -> Uncheck "Enable Protected View for files located in potentially unsafe locations" (2nd option)
    Here is the similar post, you can take a look at:
    http://blogs.interfacett.com/word-2010-not-saving-back-to-sharepoint-2010-by-default
    If the issue persist, you can also check the event log and ULS log to see if anything unexpected occurred.
    To check event log, click the Start button and type “Event Viewer” in the Search box.
    For SharePoint 2010, by default, ULS log is at:
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
    Best Regards,
    Lisa Chen
    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]

  • How can I add linked text boxes to Contents?

    I have a lot of sections in my chapters, and I think they are all coming in to the TOC, but the automatic text box doesn't have a blue tab, so I cannot add a new text box to continue showing the sections.  How can I make this show up? There's no layout I can manipulate for the TOC, so I cannot make the text editable, which is the suggestion that I have seen for regular linked text boxes.

    Hello,
    If you want to add image to it's background then you can select the SubMenu and use the fill option to fill an image to it.
    Make sure you uncheck "Edit together" option in Menu properties so that you can add different images to different submenus.
    And if you want to edit the text and add images to it, I would suggest you to use Manual menu. Where you can customize your own Menu and add links to the Menus and Submenus.
    Please have a look at the screenshot showing how to create Manual menu :
    Hope this helps.
    Regards,
    Sachin

  • Creating anonymous guest link to images/documents programmatically Sharepoint Online O365

    I need to be able to create an anonymous guest link to images or documents programmatically using c# SharePoint web services or something similar. Does anyone know if this can be done if so how? essentially this means creating the guest access token
    programmatically ..
    If somebody know how to do his it would be much appreciated ?
    Thanks in advance 

    Hi,
    The method you posted seems to the trick it creates to anynonymus links like I was expecting. However interesting scenario has come up when I copy and paste the link in to a normal web browser (desktop or laptop) everything works as expected, but
    I when I try the link on a mobile web browser I get the prompt asking me to log in to office 365 not sure why that would be any suggestions ??

  • Links with special characters work on the web, but are broken in RSS feed

    Hi everyone,
    I've been searching the forum, but haven't found anything relevant.
    Here is my problem. Most embedded links on my blog posts work fine. However, sometimes I use links with embedded special characters. Here's an example link to a YouTube video:
    http://www.youtube.com/watch?v=ugiY9t6fzo4
    When I go to my blog on the web and click on the link, the link works fine. BUT, when I look at my RSS feed from the blog, the link gets transformed into:
    http://www.youtube.com/watch%253Fv%253DugiY9t6fzo4
    ... which doesn't work.
    Something (I presume iWeb?) replaces the "?v=" with "%253Fv%253D"
    Obviously, I get a lot of e-mail from my RSS subscribers telling me about broken links.
    What can I do? Does anyone else have this issue?

    I followed the topic concerning the Firefox photoalbum problem but I´m using Safari and the albums will not show up on the web !!!! I also exchanged the detailview and headercontrol *js which worked fine for opening the photoalbum on my harddisk with firefox. But when its uploaded to the server it won´t display and that in Safari!!!! On the published folder on my harddisk everything works fine
    www.voyage64.com
    just cklick on "photoalben" no album apears. Does anyone have the same problem with safari ???
    regards,
    David

  • Create Credit Memo referenced to Billing Document - Condition Types

    Hello,
    I need help on this particular situation, your help would be greatly appriciated.
    I try to create a Credit Memo(VA01) with reference to the Billing Document, but I don't want to see on my Credit Memo a particular Condition Type from the Billing Document. Configuration solution or ABAP solution? and how?
    What the system does now is, it copies all the Condition Types from the Billing Document to the newly created Credit Memo.
    Thank you all

    Hi,
    Create a new pricing procedure without the condition type you donot wish to appear in the credit note. create/ use a different document pricing procedure for the credit note, do the required assignments.. this will meet the requirements
    Regards,
    Ajit

  • Bpel parsing issue with special characters...

    Hi All,
    We are integrating Oracle Sales Order information with OTM as Order Releases.
    For this we are sending the Sales Order in the form of clob from the procedure to the Bpel process.
    1. A PL/SQL procedure would send the Sales order XML as a CLOB.
    2.In the BPEL process , we are performing ora:parseXML() function on the clob obtained.
    3.A patch was installed on the BPEL SOA server:
    10.1.3.3.1 MLR#8, Patch#6906880 which was supposed to handle all the parsing activities at run time.
    4. But when ever any special character viz..; #,UNIT¿S etc the BPEL process is failing with a fault string due to Parsing error.
    5. Could you please provide us a workaround for solving this issue ASAP with all the special characters.
    I have provided a sample xml tag due to which the parsing is failing in the bpel process. here it is failing because it is not able to parse : UNIT¿S successfully...
    <SHIPPING_INSTRUCTIONS>
    **San Dieg UNIT¿S contact name is Jenny Haden 858-609-1170** 12/12/08
    **Updated Contact is ASHTON REYES 72-696-1525, hours are 830-5 only, N/S. Millyz DELIVERY
    CONTACT: ELLEN HILGER @ 248-932-9000: LINE 4.1 -TRIAL CONVERSION FROM ORDER # 25766204
    </SHIPPING_INSTRUCTIONS>
    is there some other bpel patch or some other workaround using which whatever input value comes in , the bpel is able
    to successully parse that through..
    we are stuck with this special character parsing issue as of now and go live is very near ...your help/inputs would be highly appreciated
    thanks

    Guys,
    I am new to OTM and SOA/BPEL architecture.
    Could you please suggest me in detail as how to integrate OTM with outside world using BPEL.
    Thanks,
    Kamleshwar

  • Issue with special characters in SAP CRM ICSS application.

    Hi ,
    I have issue with the special character in CRM web application.
    1. In CRM IC Webclient application(5.0) . i am copying and pasting some special characters in the description of the service request document. then this is saving the character as it is.
    But when i am opening the same service request in SAP CRM  ICSS(Internet Customer Self-Service) application, then the special characters are converting to different characters.
    I am not sure whether this is the right forum for this or not.
    Can anyone please suggest how can i correct this. Or is there any standard solution to handle the special characters in ICSS.
    Thanks
    Sudhansu

    misunderstood =/
    Original (Coming - output):  "<PAY_TXT>PAYκ Contact your bank or financial institution to make this payment from your cheque, savings, debit or transaction account.</PAY_TXT>"
    it's in output but what is data in database ?
    sorry but without knowing about source data for forming the xml i haven't ideas about your problem
    in db it's "TM " or "™" or ... ?
    Original (Coming - output):  "<PAY_TXT>PAYκ Contact your bank or financial institution to make this payment from your cheque, savings, debit or transaction account.</PAY_TXT>"
    Something like XAE or "K" after PAY Value in the xml tag and continued the text value.  (Tag value is not getting copied exactly here - i am sorry for that )
    that's ok. i need to see the problem not the data as is
    Expected (output):  "Here it needs to produce the "PAY TM" (Here "TM" should be super scripted to "PAY" Value in tag).
    as super scripted in xml?
    as idea - you can have <PAY_TXT>PAY TM</PAY_TXT> and in publisher set TM as super
    Designing XSL Subtemplates - 11g Release 1 (11.1.1)

  • How  create data type for coulmn name having special characters in IR

    hi ,
    any idea how to create how to do create data type for coulmn name having special characters

    Hi Amit,
    Can you ellaborate ?
    Actually if you are reading a file(or anything else) which contains special characters, the data type can be created as done for other interfaces. But it is in the adapters that we actually take care of handling these special characters.
    ShabZ

Maybe you are looking for

  • TS1717 Apple mobile device failed to start

    During installation of iTunes, error message: Apple mobile device failed to start and something about not having "privileges" Some ideas?

  • Changing swap file location on tray-loader iMacs

    This is not a question, but something I discovered that makes my old tray-loader iMac (the oldest iMac models) run Mac OS X much better. As you may know, these oldest iMacs have an 8GB size limit on the boot volume. The largest stock drive on these i

  • JDBC Scenario

    Hi Experts,                   I am working on Sender JDBC Scenario........in sender JDBC Communication channel, there some important parameter <b>Query SQL Statement </b>(for select data records with specified condition) and <b>Update SQL Statement</

  • How to delete all objects for one user from SE80

    Hi all, If i want to delete the customer objects defined in the customer space Y or Z from SE80. Object of one user is defined in one package, if i want to delete the pakcage it says, it contain the subobject. So can anybody help me how to delete the

  • LabVIEW PDA customize boolean control with picture

    For a PDA application, I'm looking for a way to customize a boolean indicator. To do this I went in the customize option of the boolean and then import picture for the false and true state. in programming mode I see the correct picture for the differ