Quantcast
Channel: Apostrophes in Person's Name Suspend Workflow using People Picker column. Any "Return Field As" combination does not work in SP Designer when sending Emails.
Viewing all articles
Browse latest Browse all 6

Apostrophes in Person's Name Suspend Workflow using People Picker column. Any "Return Field As" combination does not work in SP Designer when sending Emails.

$
0
0

Workflows created with SharePoint Designer 2013 suspend when sending Email to users with apostrophes in their name.  It does not matter what "Return field as" is set it to.   It also does not work if I set a variable using the people field, created by, etc. with the apostrophe in the name. 

If I use LOGIN name as the Return type..it Does send the email, however the workflow then Suspends with the same error.

Can someone duplicate this issue?  Is it just something wrong with our environment?  I can't imagine SharePoint 2013 not being able to account for apostrophes.  I can't find anything on this.

My workaround has been to create an "AccountID" text column in the Library and set it to Login Name with WF. This works!  Yet the same login name in a variable does not.  Here are the errors:

USING LOGIN NAME
Retrying last request. Next attempt scheduled in less than one minute.
Details of last request: HTTP BadRequest to http://-.-.com/_vti_bin/client.svc/sp.utilities.utility.ResolvePrincipalInCurrentcontext(input=@ParamUser,scopes='15',sources='15',inputIsEmailOnly='false',addToUserInfoList='True')?%40ParamUser='Amanda+O'Neil'
Correlation Id: f289b57e-e325-9ef9-b886-cf8a9eb044d8
Instance Id: faf9a5a2-38b8-4046-95da-b1c4f55d96e2  Retry now 

Correlation Log -
SPApplicationAuthenticationModule: Failed to build cache key for user
Microsoft.SharePoint.Client.InvalidClientQueryException: The expression "'Amanda O'Neil'" is not valid.     at Microsoft.SharePoint.Client.Rest.EdmExpressionParser.Expect(Tokens tokType)     at Microsoft.SharePoint.Client.Rest.RestRequestProcessor.GetClientValueFromEdmParserNode(EdmParserNode edmParserNode, ParameterInformation parameterInfo, MethodInformation methodInfo) 

USING EMAIL ADDRESS
Details of last request:
HTTP BadRequest to http://-.-.com/_vti_bin/client.svc/sp.utilities.utility.SendEmail
Correlation Id: f289b57e-e325-9ef9-aa12-d82b7ba1ab60
Instance Id: b5d67a55-8f1c-4595-a38a-afdfb1cdf7ce

RequestorId: f289b57e-e325-9ef9-0000-000000000000.
Details: RequestorId: f289b57e-e325-9ef9-0000-000000000000.
Details: An unhandled exception occurred during the execution of the workflow instance.
Exception details: System.ArgumentNullException: Value cannot be null.
Parameter name: Input at Microsoft.Activities.Hosting.Runtime.Subroutine.SubroutineChild.Execute(CodeActivityContext context) at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager) at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Correlation Log -
ResolveAddressesForEmail : Resolved input 'aoneil@-.c o m' is not registered as the site collection user, ignored. Login 'i:0#.w|domain\aoneil', Email 'aoneil@-.c o m'
Exception occured in scope Microsoft.SharePoint.Utilities.SPUtility.SendEmail. Exception=Microsoft.SharePoint.SPException: The e-mail message cannot be sent. Make sure the e-mail has a valid recipient.


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images