You are viewing limited content. For full access, please sign in.

Question

Question

Laserfiche Forms Routing Service Error

asked on November 30, 2015 Show version history

I have a form "Timesheet" which is getting an error from event viewer and suspends in Forms during the "save to the repository" process every time i run it, the form can contain no data except for one required field. this is the event viewer error.

 

This is the whole form, which does contain about 6 db lookup rules and 9 field rules.

My thought is that its some kind of memory corruption error , not sure how to fix it, help !!

0 0

Replies

replied on November 30, 2015 Show version history

https://answers.laserfiche.com/questions/68312/Forms-submission-not-saving-to-repository

https://answers.laserfiche.com/questions/84353/Laserfiche-Repository-not-verified-in-save-to-repository-service-task

Above are a few links that can help, but I believe this error specifically comes down to iis bindings with https and making sure that you have the "use SSL" option selected in FormsConfig. This is caused by wkhtmltopdf not able to load the forms url. Check to make sure your forms server url is set correctly.

0 0
replied on November 30, 2015

This form is the only form that has these errors, i have other forms using the same repository that work fine, some of the other forms also use "Retrieve Laserfiche forms content" to start the workflow and all of these work fine.

  I did see the other questions on here, but as i already have current forms that work it does seem that the issue is the form itself that has the issue. 

0 0
replied on November 30, 2015

Is there any customize JavaScript for this form? Is there any reference in the JavaScript to some JS files not exist?

If the issue only happens for a single form, can you open the support case and provide the exported process xml for the form that has this issue so that we can use it to reproduce.

0 0
replied on December 1, 2015 Show version history

There is JavaScript on the form but only for some field calculation in a table.

and yes it looks like its the JavaScript causing the error.

0 0
replied on December 1, 2015 Show version history

Here is the JavaScript i'm using and here is where its used in the form, what is does is allow me to input times in 24 hours format, calculate the hours worked and then total the amount as a single or double digits.

 

0 0
replied on December 1, 2015 Show version history
$(document).ready(function () {
  
  $.getScript('http://server/Forms/js/moment.js');
  
  $('.cf-table-block').on('blur', 'input', sumtotal);
  $(document).on('click', '.form-del-field', sumtotal);
  
  function sumtotal() {
    var hour = 0;
    var rate = 0;
    var total = 0;
    var subtotal = 0;   
    $('.cf-table-block tbody tr').each(function () {
      hour = moment($(this).find('.hour input').val(), 'HHmm');
      rate = moment($(this).find('.rate input').val(), 'HHmm');
      subtotal = hour.diff(rate, 'hours', true);
      $(this).find('.total input').val(subtotal.toFixed(2));
      total += subtotal;
    });  
    $('.Grandtotal input').val(total.toFixed(2));       
  }
  
  function parseNumber(n) { 
    var f = parseFloat(n); //Convert to float number. 
  	return isNaN(f) ? 0 : f; //treat invalid input as 0; 
  } 

});
 

0 0
replied on December 1, 2015

I found the soloution, I removed the reference to the external "moment.js" ($.getScript - line) and put the moment.js in the forms js folder and now its works fine.

0 0
replied on December 2, 2015

Glad it works, it is an known issue for Forms and we will improve the error handling for this situation.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.