I created a infopath document that we use to provide project status. The
form is based on an external schema completed forms are submitted to a
SharePoint server. All is well except that we want to add an additional
field to the form that is now required for each project.
I edited the schema, changed the main data source on the form and reset the
form to automatically update the form to the new version.
If the new schema element is defined as a minOcc=1, when a previously
created form is opened with the new form, I get a error that the new field is
missing. If I change the field's atrribute to minOcc=0, the older forms
open, but I can select the new field but can't add anything to it. Any ideas?
Because you only just turned on the automatic upgrading, the XSL file that InfoPath generates to perform the upgrade did not know about the old schema. It therefore cannot add in the missing field to the old forms. You can manually update the upgrade.xsl file to make this happen.
The reason it works when you set minOccurs="0" is because the field is not 'required' to be present for the form to function.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
I created a infopath document that we use to provide project status. The
form is based on an external schema completed forms are submitted to a
SharePoint server. All is well except that we want to add an additional
field to the form that is now required for each project.
I edited the schema, changed the main data source on the form and reset the
form to automatically update the form to the new version.
If the new schema element is defined as a minOcc=1, when a previously
created form is opened with the new form, I get a error that the new field is
missing. If I change the field's atrribute to minOcc=0, the older forms
open, but I can select the new field but can't add anything to it. Any ideas?
Andy - 05 Mar 2005 21:41 GMT
Greg,
Thanks for that. Any suggestions for resources to better understand the
upgrade.xsl file?
> Because you only just turned on the automatic upgrading, the XSL file that InfoPath generates to perform the upgrade did not know about the old schema. It therefore cannot add in the missing field to the old forms. You can manually update the upgrade.xsl file to make this happen.
>
[quoted text clipped - 12 lines]
> missing. If I change the field's atrribute to minOcc=0, the older forms
> open, but I can select the new field but can't add anything to it. Any ideas?
Greg Collins [InfoPath MVP] - 08 Mar 2005 03:26 GMT
It's standard XSLT. So any site or book that tutors in XSLT would be your best bet.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
Greg,
Thanks for that. Any suggestions for resources to better understand the
upgrade.xsl file?
"Greg Collins [InfoPath MVP]" wrote:
> Because you only just turned on the automatic upgrading, the XSL file that InfoPath generates to perform the upgrade did not know about the old schema. It therefore cannot add in the missing field to the old forms. You can manually update the upgrade.xsl file to make this happen.
>
> The reason it works when you set minOccurs="0" is because the field is not 'required' to be present for the form to function.
Bogdan - 29 Mar 2005 19:33 GMT
Greg,
Where do I need to put the updated upgrade.xsl ?
I could not find a configuration for it.
Thanks,
Bogdan
> Because you only just turned on the automatic upgrading, the XSL file that InfoPath generates to perform the upgrade did not know about the old schema. It therefore cannot add in the missing field to the old forms. You can manually update the upgrade.xsl file to make this happen.
>
[quoted text clipped - 12 lines]
> missing. If I change the field's atrribute to minOcc=0, the older forms
> open, but I can select the new field but can't add anything to it. Any ideas?
Greg Collins [InfoPath MVP] - 07 Apr 2005 02:12 GMT
You need to extract your form files into a folder. Then update the upgrade.xsl file right in that same folder.

Signature
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com
Greg,
Where do I need to put the updated upgrade.xsl ?
I could not find a configuration for it.
Thanks,
Bogdan
"Greg Collins [InfoPath MVP]" wrote:
> Because you only just turned on the automatic upgrading, the XSL file that InfoPath generates to perform the upgrade did not know about the old schema. It therefore cannot add in the missing field to the old forms. You can manually update the upgrade.xsl file to make this happen.
>
> The reason it works when you set minOccurs="0" is because the field is not 'required' to be present for the form to function.