xsf error

D

Dj

I spent much of yesterday creating my first real infopath form. Half way
through the day, something happened and I started getting an error about my
xsf file. So, I started from scratch and recreated the file. By the end of
the day, I was finishing up with trying to figure out a way to put one of my
fields on the print header. And then I got the xsf error again. From
searching these threads I learned a little about the xsf files, and I was
able to locate on my c: drive.

My questions are...
1. How do I know which manifest.xsf belongs to my current file I hope to be
able to fix? There are like 20 of them out there.
2. Is it actually fixable and if so, how? Is it fixable if I deleted the
..xsf (which I did)
3. Since it happened twice in one day, I'm rather scared it's going to keep
happening until I find out what I'm doing to make it happen. Is there
something I can do to prevent this?

I deleted the .xsf with the current date hoping that it would just be
recreated. It wasn't. Here are the details of the error I'm getting now...

Form template: S:\orientation\Team Leaders\DJ\Projects\Sexual Harassment
Training\Quiz Infopath.xsn
The form definition (.xsf) file cannot be opened because of an error.
The file cannot be validated by the XML Schema.

Element
'{http://schemas.microsoft.com/office/infopath/2003/solutionDefinition}header'
is unexpected according to content model of parent element
'{http://schemas.microsoft.com/office/infopath/2003/solutionDefinition}printSettings'.

Line 74, Position 17
<xsf:header>
----------------^

Thanks in advance. Dj
 
K

Kalyan G Reddy MVP (GGK Tech)

Hello

When you say that there are 20 manifest.xsf files, I am confused like how
you have so many manifests for a single Infopath Form. You will have only
one Manifest.xsf for one Form. The error says that you are trying to add the
Print settings node in the manifest file. If you are adding this node yu
should add this under the View node in Manifest.xsf.

Your Printsettings node with header should look like this in your Manifes.xsf
<xsf:views default="View 1">
<xsf:view name="View 1" caption="View 1">
<xsf:mainpane transform="view1.xsl"></xsf:mainpane>
<xsf:editing></xsf:editing>
<xsf:printSettings>
<xsf:header>
<font style="font: 10pt Verdana;"><div style="direction:ltr;
text-align:left">Header By Kalyan</div></font>
</xsf:header>
<xsf:footer>
<font style="font: 10pt Verdana;"><div style="direction:ltr;
text-align:left">Footer by Kalyan</div></font>
</xsf:footer>
</xsf:printSettings>
</xsf:view>
</xsf:views>

Hope this helps you.
 
D

Dj

There are 20 from months ago when I first started learning Infopath. There
were only 4 files with yesterday's date and that would be from...
1. The small file I started the day with that I was going to change into my
new file
2. The 2nd file which I got an xsf error on half way through the day
3. The 3rd file which was my 'final' product which I got my xsf error on at
the end of the day.
4. I create a short file at the end of the day trying to figure out what
happend and what and where these xsf files are.

Each manifest.xsf created in it's own folder burried deep in my C: drive.
examples of the folder names that are unique to each file are...
1. 1b13365e570e6625$52dc9e3a71bd614f
2. 78fb78c718951c37$10cd4d8adb7ba02a
3. b43bdfba4ef9b75$13e12365e0ae9ee2

Something else unique about the files is that I can find them using Windows
Explorer only when I do a search. When I try to follow the path down to the
folders, I can only go so far and I have my show hidden files turned on.

I was able to restore ones I deleted and I tried copying your views tag into
a couple of the manifests, but that didn't fix the problem.

If you have any other suggestions that I can try, I'd be much appreciative.
If not, thanks for your help.
 
D

Dj

File > Page Setup > Print Settings

First I put the normal "page x of x" in and that was no problem. Then I
tried putting in "field1", and "&field1". I tried several different ways and
I'm not sure which was the last the crashed my manifest.

Since yesterday, from reading these threads, I have discovered the fields
cannot be inserted in headers using 2003. But I think I read they can be now
in 2007.
 

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