These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

submit issue

oksana77
Registered: Apr 24 2009
Posts: 89
Answered

I have a lifecycle form, run it through the reader extensions so that users can use the "submit" button in Adobe Reader. Some users get "The form cache file 'C|\WINDOWS\FORMS\FRMCACHE.DAT' is not valid. Contact your administrator." error when they press submit button. Why?

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
What exactly is the submit button doing?

The form cache is a property of Outlook, not Acrobat. This message is displayed when the form cache is corrupted. And it doesn't really have anything to do with sending email. It seems unlikely that you could have put in anything in the submit button that would cause Reader corrupt the cache. But lots of other people have had problems with this file.

Here's a form thread on it:
http://www.eggheadcafe.com/forumarchives/outlookgeneral/Oct2005/post24980382.asp

Here's an article from Microsoft of fixing the cache file:
http://support.microsoft.com/kb/195754


Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

oksana77
Registered: Apr 24 2009
Posts: 89
This is a Regular button with a click event doing the following...

var answer = xfa.host.messageBox("Pressing OK will print (to your default printer) a copy " +
"for you to obtain signatures then route, submit an advanced copy to ..., and prompt you to save a copy of this record for your files." +
"\n\nWhen e-mail opens, press SEND.", "PRINT, SEND, AND SAVE", 3, 1);

if(answer == 1)
{
var dt = util.printd("-yyyymmdd-HHMMss",new Date()); //gives a unique name to submitted form that matches the e-mail subject line
form1.page1.name.rawValue = "BC" + LocationCode.rawValue + dt;

try{
xfa.host.print(0, "0", "0", 0, 0, 0, 0, 0);}
catch(e){
xfa.host.messageBox("Unable to print the form...");}

/*This is the form return e-mail. Its hardcoded
* so that the form is always returned to the same address
***********************************************************/

var cToAddr = "myName [at] mail [dot] gov";// Set the subject and body text for the e-mail message
var cSubLine = form1.page1.name.rawValue + ".pdf";
var cBody = "Attached is an advanced copy of my request.\n" +
"A printed hard copy with signatures will be routed accordingly.";

// Send the form data as an PDF attachment on an e-mail

this.rawValue = 1; //indicates to send page 2 only

try
{
event.target.mailDoc({
bUI: false,
cTo: cToAddr,
cSubject: cSubLine,
cMsg: cBody});
}
catch(e)
{
xfa.host.messageBox("Unable to open your EMAIL program! Please resubmit the form.");
}this.rawValue = 0; // indicates to save page 1 only for records

app.execMenuItem("SaveAs"); //initial copy of the form, i.e. page 1
}
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Well, you are doing something a bit unusual here. Printing the form at the same time that it's being sent out to the email client and being saved could cause some problems. All 3 of these activities cause a dialog to be displayed from a different application. And also lock of the file data. I think this could be causing Windows to be going a little nuts.

I'd suggest making up test forms that preform only some of these activities and see if they have the same issue.

And how does attaching a "rawValue" property to the button object control how the form is emailed or saved? It there something else going on at the same time in some other scripts?


Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

oksana77
Registered: Apr 24 2009
Posts: 89
Yes. There is an initialize event that hides one page and makes another visible depending on rawValue.

There is more to this issue. When the user presses the submit button, the program opens and asks her to either use default (microsoft outlook) or Novel groupwise. When she picks groupwise it errors out.
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
I'd suggest testing the mailDoc() by itself. Also try performing an email opertation in a different application, for example, using a mailto: URL in a non MS browser. See what happens when the email request is outside of Acrobat. Seems like a system issue that doesn't have anything to do with Acrobat.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script