Cannot submit form

S

Simon

I've created a form which users can fill in from a sharepoint form library,
and it will submit the completed form to this library, but only for the first
form submitted.

If you try and fill in a second form, you get the following error.

InfoPath cannot submit the form.
An error occurred while the form was being submitted.
A value in the form may be used to specify the file name. If you know the
value in the form that specifies the file name, revise it and try again.
Otherwise, contact the author of the form template.

Can someone please tell me how to specify the file name? It seems to call
every form 'Form' which is obviously not what I want.
thanks,
Simon
 
B

Ben walters

hey Simon,
When you are creating the dataconnection to submit the form to the
sharepoint library, you need to specify an autogenerated name.
On the second step of the wizard when you specify the url for the sharepoint
library there is a second text box called filename, you can put an xpath
expression in here that uses some of the fields in the form to create an
unique name. Probably the easiest way to do this is to use the concat
function to concatinate multiple fields together
e.g. concat(<field1>, <field2>, <field3>)
your other option is that you can tick the box that says "Allow overwrite if
file exists" but if you did this and didn't specify a unique name you only
ever get one form in the library and each time a user submitted that form
would be updated.

Hope this helps
Cheers
Ben
 
D

Dj

I am replying to this old messaged I found from 2005 because it describes the
problem that I am experiencing. The only difference is that I DID enter an
xpath expression from the from inside the form that should be unique
(employee code)each time yet I'm still getting the "A value inside the
form..." error. Can anyone tell me why my submit is not working when I have
a valid expression in the file name field. Thanks! Dj
 
C

Cate

Simon said:
I've created a form which users can fill in from a sharepoint form library,
and it will submit the completed form to this library, but only for the first
form submitted.

If you try and fill in a second form, you get the following error.

InfoPath cannot submit the form.
An error occurred while the form was being submitted.
A value in the form may be used to specify the file name. If you know the
value in the form that specifies the file name, revise it and try again.
Otherwise, contact the author of the form template.

Can someone please tell me how to specify the file name? It seems to call
every form 'Form' which is obviously not what I want.
thanks,
Simon
 
C

Cate

Ben,
It may be too little, too late, but I need your help. I am having this same
problem and I don't understand your answer. Could you explain a little
more? What does "put and xpath expression in the wizard mean? And the
"concat function?" I appreciate your help.
Thanks,
Cate
 

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