Error, Cannot complete this action. Please try again. - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Error, Cannot complete this action. Please try again.

Last post 07-25-2011 11:49 AM by enthdegree_. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • 07-25-2011 11:05 AM

    Error, Cannot complete this action. Please try again.

     Hello all,

    when I try and upload my browser-enabled form template to a sharepoint site though Central Administration, I get a very nondescript error page. 

    "Error

    Cannot complete this action.

    Please try again." 

    I do, though, have a very special form. It has:

    Fields populated by xpath expressions using the `sum` and `count` functions,

    Multiple views,

    multiple data controls populated by the same field,

    Sending data connection to web service,

    Recieving data connection from library,

    Custom submit button through form code,

    Full trust,

    Images,

    lots of repeating tables.

     

    I found someone online who said it happened because of a special character in her code project's filename. All I have is a-z, 0-9 chars, hyphens and parinthesis() though.

     

    Help would be appreciated, thanks!

     

    Klaus Fiedler
  • 07-25-2011 11:43 AM In reply to

    Re: Error, Cannot complete this action. Please try again.

    Hi Klaus,

    Did you try changing the project name to not use the parenthesis? 

    If you dig into the SharePoint event log for IPFS (InfoPath Form services) you should be able to find a more detailed error message, it is likely that the server logged the details there.

    What version of SharePoint are you using?  In SharePoint 2007 there were some issues with template file size and publishing - some large templates would not publish due to some timeouts in IPFS which you could address by changing some of the IPFS defaults in central admin.  How big is your template?

    Ted

  • 07-25-2011 11:44 AM In reply to

    Re: Error, Cannot complete this action. Please try again.

    Mmkay turns out it /was/ the filename, I just had to be a bit more thorough. Here's what I did:

    I took the form template (It's a very large souped up form template, I did not want to have to rebuild it) backed it up and renamed it to templatename().xsn.cab. Then I opened the .cab and extracted all the files to a folder. I used a selection box to drag and drop all the files from a filemanager to a Notepad++ window which opened them all. I used search and replace to replace all the templatefilename() with something that had no parinthesis. I then recompressed the files into a cab (you must use a cab creation program, iexpress.exe will not work as it truncates filenames) and renamed that cab templatefilename.xsn . I opened it up in InfoPath/design mode and removed the form code using Tools> Form Options> Programming. I opened up a file manager and deleted the folder that contained the form code. I went back to  infopath and recreated the form code using Tools> Programming> MSVSTA. I copy and pasted in the code from the broken form and changed the namespace up at the top (look for `using namespace <templatefilename>`), saved and published. Now it works.

    Klaus Fiedler
  • 07-25-2011 11:49 AM In reply to

    Re: Error, Cannot complete this action. Please try again.

    Hello Mr. Fitch,

    I did try but just changing that property in the property window did not solve the issue. I looked in the SharePoint event log and couldn't find anything. It's not a gigantic template but it is rather large and souped up. I doubt it is large enough to cause that sort of timeout, though. (44kb)

    I was on SharePoint 2007 and InfoPath 2007.

    At any rate it is fixed now but thank you for your time!

    Klaus Fiedler
Page 1 of 1 (4 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.