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

Question

Posted to Higher Education

Question

Need assistance with Forms suspending a process

asked on October 11, 2021 Show version history

Hello.  I have built a form in LF which a submitter completes and sends to the Department Head (and others) for approval.  On the process diagram, I have asked that the notification E-mail be sent to the E-mail address located in the line for Department Head E-mail. We have run it a few times and it suspends the process when trying to send to the Department Head E-mail.  I have to reassign it to the correct department head which is a workaround, but I would rather it send automatically.  Here is the screen shot of my choices - 

 

 

Has anyone else out there run into this?  Thank you.  I was able to go in and get an error log for this - 

 

An unexpected error has occurred. [LFF502-UnexpectedError]

Details:
URL: 
Error: UnexpectedError
Date: 10/11/2021 11:09:05 AM (Central Standard Time)
HTTP Status Code: 500
Business Process ID: 0
User: RSUFS\RGardner
IP: 10.3.4.236
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36
Business Process Name: 

Other:
The account type cannot be retrieved from claims.

Stack Trace:
Caught exception: Laserfiche.Forms.CommonUtils.Exceptions.LFFormsException
Message: An unexpected error has occurred. [LFF502-UnexpectedError]


Inner exception: System.NullReferenceException
Message: Object reference not set to an instance of an object.
   at System.Data.Entity.Internal.Linq.InternalSet`1.get_Expression()
   at System.Linq.Queryable.FirstOrDefault[TSource](IQueryable`1 source, Expression`1 predicate)
   at Forms.Persistence.EntityFramework.Repositories.UserRepository.GetOldSidFromLfdsSid(String LfdsSid)
   at E_Forms.MvcApplication.WSFederationAuthenticationModule_SignedIn(Object sender, EventArgs e)
 

Dawn

0 0

Answer

SELECTED ANSWER
replied on October 12, 2021

Yes if that information is in SQL then I would do a lookup rule to pull in their username when the email address matches the email in SQL.
 

0 0

Replies

replied on October 12, 2021

If I understand the issue correctly, you have to specify their username in order for Forms to assign the task to that user. Email and display names do not work. 
For example, if your username is domain\dawn, then your field needs to capture that.

0 0
replied on October 12, 2021

So would you recommend I update the SQL table I am pulling from to show their domain name and then pull that information into the field on the form rather than their E-mail address?  Or maybe I could pull the E-mail address and the domain name and then just point the variable at their domain name?  Thank you!

1 0
SELECTED ANSWER
replied on October 12, 2021

Yes if that information is in SQL then I would do a lookup rule to pull in their username when the email address matches the email in SQL.
 

0 0
replied on October 12, 2021

Yes. I have run into this issue.

#1 Make sure the value[Domain Username] passing inside the User Task is correct and the User is a part of Laserfiche. Check if the user exists in Laserfiche administration Console. For dynamic, you definitely need to load from SQL database using lookup rule.

0 0
replied on October 13, 2021

Thank you Michelle!  Your suggestion worked!  

1 0
replied on October 13, 2021

The better way to do this is set up Active Directory server as an identity provider. If your user's active directory accounts all have their email addresses in their AD profiles Laserfiche can pull that email address. 
This is preferred because then you don't have to be maintaining a separate list of users and their email addresses. If Laserfiche is given the username jsmith for an email contact it will ask your domain controller who jsmith is, and it will return with the email address specified in the jsmith AD account. 

I've had Forms fail to save the contents of fields correctly in process variables when a form is submitted.

Look at the process variables of instances where these emails fail to work. Make sure the field variable that supposed to hold that email address actually saves it when the form is submitted.

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

Sign in to reply to this post.