20 August 2010

Upload form in infopath errors

 ישנו פתגם עממי שאומר "צרות באות בצרורות", זה בדיוק מה שקרה לי.


כאשר ניסיתי לעלות קובץ infopath הוא נכשל. לא יחסתי לזה חשיבות וניסיתי שוב. הפעם נסיתי לבצע Verify לפני וגם ה Verify נכשל. קובץ הלוג הראה את הצרה הבאה:

Microsoft.Office.InfoPath.Server.Converter.AspxDepthFirstWalkingVisitor.VisitChildControls(AspxControl control) at Microsoft.Office.InfoPath.Server.Converter.AspxDepthFirstWalkingVisitor.VisitDocument(AspxDocument document) at Microsoft.Office.InfoPath.Server.Converter.CssControlStateStylesVisitor.VisitDocument(AspxDocument document) at Microsoft.Office.InfoPath.Server.Converter.AspxDepthFirstWalkingVisitor.VisitControl(AspxControl control) at Microsoft.Office.InfoPath.Server.Converter.SolutionConverter.ConvertBrowserSpecificView(Solution solution, ConverterDocument converterDocument, AspxDocument aspxDocument) at Microsoft.Office.InfoPath.Server.Converter.SolutionConverter.ConvertView(Solution solution, ConverterDocument converterDocument) at Microsoft.Office.InfoPath.Server.Converter.SolutionConverter.ConvertSolution(Solution solution) at Microsoft.Office.InfoPath.Server.SolutionLifetime.Solution.<>c__DisplayClass2.b__0() at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock)

מה קשור CSS לזה שאי אפשר לעלות את הקובץ?
דבר ראשון שביצעתי זה לנקות כמה שאפשר את הקובץ מreference'ים. מסתבר זה קצת עזר.
עכשיו כאשר אני עשיתי Verify אני מקבל את ההודעות הבאות.


איזה יופי, אני מצליח לעשות Verify. עכשיו אני אעלה את הקובץ והכל יהיה בסדר...
אמרתי שצרות מגיעות בצרורות. עכשיו שאני העליתי את הקובץ קיבלתי את ההודעה הבאה:

The form template cannot be upgraded because the file name has changed since the previous version. Rename the file name to the following or change the form ID of the form template: blabla.xsn

שוב, לא יחסתי חשיבות להודעה השלישית ב Verify
אמרתי אין בעיה, קובץ : blabla.xsnקיים כבר, אז נמחוק אותו.



ראיתי שהקובץ נמצא בסטטוס deleting – אבל לנסות לא יזיק. לחצתי remove וזו ההודעה שקיבלתי.

A deployment or retraction is already under way for the solution "form-blabla-701.wsp", and only one deployment or retraction at a time is supported. at Microsoft.SharePoint.Administration.SPSolutionLanguagePack.CreateSolutionDeployTimerJob(DateTime dt, Collection`1 webApplications, SPSolutionDeploymentJobType jobType, Boolean globalInstallDlls, Boolean force)
at Microsoft.SharePoint.Administration.SPSolutionLanguagePack.Retract(DateTime dt)
at Microsoft.SharePoint.Administration.SPSolution.Retract(DateTime dt)
at Microsoft.Office.InfoPath.Server.Administration.FormTemplateCollection.<>c__DisplayClassa.b__8()
at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock)
at Microsoft.Office.Server.Diagnostics.ULS.SendWatsonOnExceptionTag(ULSTagID tagID, ULSCat categoryID, String output, Boolean fRethrowException, TryBlock tryBlock, CatchBlock catchBlock, FinallyBlock finallyBlock)
at Microsoft.Office.InfoPath.Server.Administration.FormTemplateCollection.Remove(FormTemplate formTemplate)
at Microsoft.Office.InfoPath.Server.Administration.FormTemplateCollection.RemoveFormTemplate(FormTemplate formTemplate)
at Microsoft.Office.InfoPath.Server.ApplicationPages.RemoveFormTemplatePage.<>c__DisplayClass2.b__0()
at Microsoft.Office.Server.Diagnostics.FirstChanceHandler.ExceptionFilter(Boolean fRethrowException, TryBlock tryBlock, FilterBlock filter, CatchBlock catchBlock, FinallyBlock finallyBlock)
at Microsoft.Office.Server.Diagnostics.ULS.SendWatsonOnExceptionTag(ULSTagID tagID, ULSCat categoryID, String output, Boolean fRethrowException, TryBlock tryBlock, CatchBlock catchBlock, FinallyBlock finallyBlock)
at Microsoft.Office.InfoPath.Server.ApplicationPages.RemoveFormTemplatePage.CommitData(Object sender, EventArgs e)
at Microsoft.Office.InfoPath.Server.ApplicationPages.FormTemplatePropertyPageBase.ButtonOkClick(Object sender, EventArgs e)
at System.Web.UI.WebControls.Button.OnClick(EventArgs e)
at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument)
at System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint))

אוקי, איך אני מוחק את זה? כדי למחוק צריך לגשת ל Timer Job Definitions

Central Admin -> Operations Tab -> Timer Job Definitions


לבחור את הJOB הנכון ללחוץ עליו ולחוץ delete



עכשיו נפנה לstsadm.
כדי לדעת מהו ID הכון של התבנית נלחץ על
stsadm -o enumformtemplates
עכשיו נקבל רשימה של כל התבניות
העתקתי את הID
כמו הדוגמה מודגשת

blabla-myXSD-2010-03-2508-17-06 urn:schemas-microsoft-com:office:infopath:blabla-myXSD-2010-03-2508-17-06

עכשיו כדי למחוק נרשום את הפקודה

stsadm -o removeformtemplate –formid “MyFormid”

כאשר MyFormid הוא הID שראינו קודם.

עכשיו שעשיתי Verify לא קיבתי את ההודעה.

בשמחה, נגשתי לעלות את התבנית.
והצרה הבאה באה...
קבלתי שהודעה על Timeout.

מה? הקובץ עד כדי כך גדול? – מסתבר שכן.

עכשיו נגשתי ל IIS(במקרה שלי 7 IIS), פניתי לapplication pool של ה Central Adminלחצתי מצד ימין על Advanced Setting ושם שיניתי את בברירת החדל מ120 ל600 בconnection time out.



 עכשיו נגשתי לweb.config של Central Admin וגם שם הגדרתי את הexecutionTimeout.

 עכשיו התג httpRuntime נראה אצלי כך

httpRuntime executionTimeout="999999" maxRequestLength="51200 "

 אחרי כל זה, שוב ניסתי לעלות את התבנית ו...יש הצלחתי


 לסיום כתב המשורר יורם טהרלב בשירו הידוע "בים בם בום" ישנן צרות גדולות יותר, אז שנתראה רק בדברים טובים...

 רועי קולבינגר

No comments:

Post a Comment