none
InfoPath URL broken in SharePoint RRS feed

  • Question

  • Hi everyone,

    I have an infopath form on my sharepoint site that collects info from the user and stores it in a document library.
    I was having no problem with this but I changed the form and now cannot access it. If I access the form through the library by hitting 'New' it works fine.

    The trouble seems to be the URL. The end characters are cut off when I access the form through a hyper-link on a site page.
    This gives me a form error 'The following location is not accessible, because it is in a different site collection: Partial URL'

    I have no idea why the URL is coming out partially, any ideas?


    Ben

    Ben Taliadoros Software Engineer
    Wednesday, January 12, 2011 10:42 AM

Answers

  • The link is 400+ characters long, content editor didnt work. Can i reduce the link without losing functionality?

    Yes, you can:

    • Remove the whole SaveLocation parameter unless you are actually using the Save option (I never do)
    • Remove all the root URLs so that all URLs on each parameter are relative EXCEPT the beginning URL.  Remove the "https://site/sites" part from each parameter.

    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force
    • Marked as answer by Peng Lei Thursday, January 20, 2011 4:08 AM
    Friday, January 14, 2011 12:59 AM
  • Hi,

    The problem is not due to infopath but from your hypertext link...
    In the second link, we can see that "&Source=https://site/sites/rd-rapid-delivery/esa/nomination%2520forms/Forms/AllItems.aspx&DefaultItemOpen=1" is truncated...
    Infopath will not open if the URL is not valid.
    Moreover we can see that the parameter "DefaultItemOpen" is not in the second link. This parameter means that the form must be open with InfoPath form services and not from InfoPath client.

    Can you try to put the first link into a sharepoint link list for example. You will see that if you URL is not truncated, the form will open.

    Hope this help.


    Visit my blog : http://rmatayron.blogspot.com/
    • Marked as answer by Peng Lei Thursday, January 20, 2011 4:09 AM
    Wednesday, January 12, 2011 7:38 PM

All replies

  • Hi,

    Can you give us the URL of the form you try to open, and the link of a form that you open directly from the form librayr?

    Thanks in advance.


    Visit my blog : http://rmatayron.blogspot.com/
    Wednesday, January 12, 2011 3:14 PM
  • https://site/sites/rd-rapid-delivery/esa/_layouts/FormServer.aspx?XsnLocation=https://site/sites/rd-rapid-delivery/esa/nomination%20forms/Forms/template.xsn&SaveLocation=https://site/sites/rd-rapid-delivery/esa/nomination%20forms&Source=https://site/sites/rd-rapid-delivery/esa/nomination%2520forms/Forms/AllItems.aspx&DefaultItemOpen=1

     

    https://site/sites/rd-rapid-delivery/esa/_layouts/FormServer.aspx?XsnLocation=https://site/sites/rd-rapid-delivery/esa/nomination%20forms/Forms/template.xsn&SaveLocation=https://site/sites/rd-rapid-delivery/esa/nomination%20forms&Source=https://partial site

     

    I had to replace the parent sites url with the word 'site' for security purposes. The URL on top opens the form in the browser. the one below throws an error. Any idea?

     

    Thanks


    Ben Taliadoros Software Engineer
    Wednesday, January 12, 2011 3:43 PM
  • Hi,

    The problem is not due to infopath but from your hypertext link...
    In the second link, we can see that "&Source=https://site/sites/rd-rapid-delivery/esa/nomination%2520forms/Forms/AllItems.aspx&DefaultItemOpen=1" is truncated...
    Infopath will not open if the URL is not valid.
    Moreover we can see that the parameter "DefaultItemOpen" is not in the second link. This parameter means that the form must be open with InfoPath form services and not from InfoPath client.

    Can you try to put the first link into a sharepoint link list for example. You will see that if you URL is not truncated, the form will open.

    Hope this help.


    Visit my blog : http://rmatayron.blogspot.com/
    • Marked as answer by Peng Lei Thursday, January 20, 2011 4:09 AM
    Wednesday, January 12, 2011 7:38 PM
  • I know the second URL is incomplete and I understand why it wont open in the browser, and it has worked before as a hyperlink.  

    Using a link list will be untidy and i would like to know why the hyperlink is breaking. is there a max character limit on hyperlinks in sharepoint?

     

    Thanks,

     

    Ben


    Ben Taliadoros Software Engineer
    Thursday, January 13, 2011 11:42 AM
  • Hi,

    I think the limit size of an hyperlink in a library is 255.
    Can you try to insert this hyperlink in a Content Editor Web Part to see if it works?


    Visit my blog : http://rmatayron.blogspot.com/
    Thursday, January 13, 2011 12:41 PM
  • The link is 400+ characters long, content editor didnt work.

     

    Can i reduce the link without losing functionality?


    Ben Taliadoros Software Engineer
    Thursday, January 13, 2011 4:18 PM
  • The link is 400+ characters long, content editor didnt work. Can i reduce the link without losing functionality?

    Yes, you can:

    • Remove the whole SaveLocation parameter unless you are actually using the Save option (I never do)
    • Remove all the root URLs so that all URLs on each parameter are relative EXCEPT the beginning URL.  Remove the "https://site/sites" part from each parameter.

    SharePoint Architect || Microsoft MVP || My Blog
    Planet Technologies || SharePoint Task Force
    • Marked as answer by Peng Lei Thursday, January 20, 2011 4:08 AM
    Friday, January 14, 2011 12:59 AM
  • You, my friend, are a genius.

     

    The first bullet point alone fixed the issue. Thanks very much!

     

    Ben


    Ben Taliadoros Software Engineer
    Friday, January 14, 2011 10:41 AM