Form has been closed

S

sadhana

Hi,

I have published an infopath form (.xsn file) to my sharepoint server. I
have a Submit button in the infopath form, I have created the
"dataconnection" from infopath to a sharepoint server and I am writing
submit.Execute() in the button click event. where submit is the
dataconnection.

Now I have created an approval workflow from the sharepoint server.

When I click on the "Start workflow", I am getting a mail from the
sharepoint server to my outlook saying that "Task assigned to me" plz
approve the form.

When I click on the form name from the outlook, it is opening in the
browser, but it is giving me the error

ERROR : There has been an error while loading the form.

The following location is not accessible, because it is in a different site
collection: here I am getting the path to .xsn file.



How to resolve this issue?



Any help in the regard is greately appreciated.
 
I

Infospy

Does your sharepoint server has a SharedServices Configured?

Is Your form Full Trusted?

Is your Sharepoint Server Shared Services Form State enabled?

Best regards.
 
M

Michael

Hi,

The problem that you are having sounds like that you are filling the form
out from one Site Collection and submitting it to another Site Collection.
If you are using InfoPath Forms Services you will most likely have problems
unless the form is active in the second site collectioin and if you are using
data connections from Data Connection Library from the original site
collection. This has been my experience.

Do you know if you are submitting to a different Site Collection?
 
S

sadhana

Hi Infospy,

I have changed my form to FULL TRUSTED.
But how can I enable sharepoint server shared services forms state?How can I
cofigure sharepoint server sharedservices?

Thanks
 
M

Michael

Hi,

The libraries appear to be in the same site collection from what I can see
from the URLs. The problem that you are having coupld be from many different
things and I still don't have a answer for you but just more questions. Does
the forms have any Data Connections that point to a different site? If you
open the form directly from the EMPMAINPAGE form library does the error still
happen?

Does the EMPMAINPAGE form library use the same Content Type form as the
EMPFORMS form library?
 
S

sadhana

Hi,

I do have another dataconnection when I was designing the form, but now I am
using only dataconnection using Execute() method.
If I open the form from EMPMAINPAGE, it is opening fine.It is not giving me
any error.
and for the third question, How can I find out the content types of both
form libraries?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top