Task Overdue Emails

On the OOB Start a task process over due emails.  If frequency is selected "Weekly" and Recurrence 3 times does that mean it will send 1 email each week for 3 weeks?  If so, is it 7 calendar days after the due date then 14 then 21?  
Thanks.
Tom
Tom

Tom,
Overdue Repeat – Set this parameter if you want to send a notification to a user when the task is overdue. Your options are Off, Daily, Weekly or Monthly.
You have the option of customizing the email that is sent in the Task Process. That will be covered in another post.
The default setting is weekly.
Overdue Repeat Times – How many reminders do you want to send to the person or group a task is assigned to? You can enter a set number, or enter -1 for infinity. This means SharePoint will keep sending a reminder
on the schedule that you listed in the previous parameter until the task is marked as complete, the task process is cancelled or the task is deleted.
The default setting is infinity
Courtesy Link : Kim Freha - SharePoint Designer 2010 Workflow Advanced Settings
Please 'propose as answer' if it helped you, also 'vote helpful' if you like this reply.

Similar Messages

  • SharePoint 2013 Workflow - Assign a task overdue email CC

    In SharePoint designer the action of "Assign a task" has the option to send an overdue email, but the option itself does not have the property for CC in the email.
    My list has a people/group column for the Head of Department and I would like to CC them if the task is overdue.
    Any ideas on the easiest solution to add a CC for the overdue email?
    Michéle Johl

    Hello Michéle,
    you might need to use the Email action to have CC option. In the below steps, uncheck "Wait for Task completion" in the Assign a Task activity so that it will create a task and proceed further. In next step we will check for the task status and
    send emails everyday  or what ever the interval you want. Disadvantage with this is even if task get completed within a day, it might not proceed to next step.
    My Blog- http://www.sharepoint-journey.com|
    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful

  • Overdue Email when using Workflow "Assign a task".

    The new "Assign a task" action in SharePoint 2013 Workflows contains an option (under Email Options) to "Send Task Overdue Email(s)". You can choose the Frequency and Recurrence of the Emails. I have this set for a particular workflow,
    but we aren't getting those Overdue EMAILS. (All the other EMAILS are working and I AM setting a "Due Date" on the task and the Task isn't marked as "Complete"....) I have read several articles on this subject and this
    article was the only one that seems to address this (new) feature. It says to check the "Expiration" Timer Job (to see how often it is scheduled to run). Well, I only have one "Expiration" Timer Job and it is called "Expiration
    Policy". I am pretty sure this isn't the right Job. Can anyone tell me what the name of the Job is that sends these Emails out?
    Also, what is the "best" way to send out daily emails (reminders) for Tasks that haven't been completed? Should I use "Information Management" and kick off a Workflow that sends the email? (Something similar to what
    this post suggests...) Or, should I create a Timer Job? I am certainly not opposed to writing code, but I would like to do this with OOB functionality if possible (and "practical").
    Any help is MUCH appreciated!!!
    Thanks,
    Shayne

    Has anyone "seen" this work? (bump)
    Shayne

  • Workflow failed to run once task overdue

    Hello,
    We are using the OOTB Sharepoint 2010 approval workflow with a set due date (1 day) on the approval tasks.
    The workflow runs normally as long as the due date is respected.  Once overdue, we get an error message "xxx failed to run" in the workflow status page.  This error does not stop the workflow process from running, however users
    do not receive the overdue email alert until they have actually completed the task.  Once the task is completed and the user receives the email, they try to complete the task once more, which of course is not possible, thus creating confusion. 
    For their task to be processed, we must either wait a certain (unknown) length of time or click on "Update active tasks of Approval" in the workflow status page.
    We recently migrated from Sharepoint 2007 to Sharepoint 2013. The Sharepoint 2007 OOTB aproval workflows that we are still using do not have this problem, it only occurs on new workflows that we have created since the migration.
    Any help greatly appreciated.

    Dear Daniel,
    I didn't find anything directly related to our problem. However, I noticed the following:
    We have a "workflow" job that is started by the Timer Job.  We noticed that it takes over 20 minutes (it's supposed to run every 5 minutes), during this time the
    following errors are repeated continuously:
    SPReaderWriterLock named [SPInitializeOnceLock] held for 3719 milliseconds. Call stack:  
    at Microsoft.SharePoint.Utilities.SPReaderWriterLock.SPReaderWriterLockScope.Dispose()
    at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.get_ReferencedAssemblies()   
    at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.SubCompiler.AddReferenceableAssemblies(WorkflowCompilerParameters theParameters)   
    at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.SubCompiler.DoCompile(WorkflowCompilerParameters parameters, String xomlSource, String assemblyName, CompilationPacket&
    packet, DirectoryInfo& tempDir) 
    RunWorkflow: Microsoft.SharePoint.SPException: <Error><CompilerError Line="-1" Column="-1" Text="Compilation failed. Could not find file 'C:\Users\sp13_conf\AppData\Local\Temp\o33c0m45\Xoml.82bf578d_6fd8_4da0_926c_1fd0ec2475c7.2.1536.3.1536.dll'."
    /></Error>   
    at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly(SPWorkflowAssociation association, SPWeb web)   
    at Microsoft.SharePoint.Workflow.SPWinOeHostServices.LoadDeclarativeAssembly(SPWorkflowAssociation association, Boolean fallback)   
    at Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(SPWorkflow workflow)   
    at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)   
    at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions)
    Microsoft.SharePoint.SPException: <Error><CompilerError Line="-1" Column="-1" Text="Compilation failed. Could not find file 'C:\Users\sp13_conf\AppData\Local\Temp\o33c0m45\Xoml.82bf578d_6fd8_4da0_926c_1fd0ec2475c7.2.1536.3.1536.dll'."
    /></Error>   
    at Microsoft.SharePoint.Workflow.SPNoCodeXomlCompiler.LoadXomlAssembly(SPWorkflowAssociation association, SPWeb web)   
    at Microsoft.SharePoint.Workflow.SPWinOeHostServices.LoadDeclarativeAssembly(SPWorkflowAssociation association, Boolean fallback)   
    at Microsoft.SharePoint.Workflow.SPWinOeHostServices.CreateInstance(SPWorkflow workflow)   
    at Microsoft.SharePoint.Workflow.SPWinOeEngine.RunWorkflow(SPWorkflowHostService host, SPWorkflow workflow, Collection`1 events, TimeSpan timeOut)   
    at Microsoft.SharePoint.Workflow.SPWorkflowManager.RunWorkflowElev(SPWorkflow workflow, Collection`1 events, SPWorkflowRunOptionsInternal runOptions)
    We searched for the missing folder in the Temp folder, sometimes we find it, but it is empty, other times it does not exist.
    Thanks for your help.
    Regards
    Michaël

  • [Forum FAQ] How do I send multiple rows returned by Execute SQL Task as Email content in SQL Server Integration Services?

    Question:
    There is a scenario that users want to send multiple rows returned by Execute SQL Task as Email content to send to someone. With Execute SQL Task, the Full result set is used when the query returns multiple rows, it must map to a variable of the Object data
    type, then the return result is a rowset object, so we cannot directly send the result variable as Email content. Is there a way that we can extract the table row values that are stored in the Object variable as Email content to send to someone?
    Answer:
    To achieve this requirement, we can use a Foreach Loop container to extract the table row values that are stored in the Object variable into package variables, then use a Script Task to write the data stored in packages variables to a variable, and then set
    the variable as MessageSource in the Send Mail Task. 
    Add four variables in the package as below:
    Double-click the Execute SQL Task to open the Execute SQL Task Editor, then change the ResultSet property to “Full result set”. Assuming that the SQL Statement like below:
    SELECT   Category, CntRecords
    FROM         [table_name]
    In the Result Set pane, add a result like below (please note that we must use 0 as the result set name when the result set type is Full result set):
    Drag a Foreach Loop Container connects to the Execute SQL Task. 
    Double-click the Foreach Loop Container to open the Foreach Loop Editor, in the Collection tab, change the Enumerator to Foreach ADO Enumerator, then select User:result as ADO object source variable.
    Click the Variable Mappings pane, add two Variables as below:
    Drag a Script Task within the Foreach Loop Container.
    The C# code that can be used only in SSIS 2008 and above in Script Task as below:
    public void Main()
       // TODO: Add your code here
                Variables varCollection = null;
                string message = string.Empty;
                Dts.VariableDispenser.LockForWrite("User::Message");
                Dts.VariableDispenser.LockForWrite("User::Category");
                Dts.VariableDispenser.LockForWrite("User::CntRecords");     
                Dts.VariableDispenser.GetVariables(ref varCollection);
                //Format the query result with tab delimiters
                message = string.Format("{0}\t{1}\n",
                                            varCollection["User::Category"].Value,
                                            varCollection["User::CntRecords"].Value
               varCollection["User::Message"].Value = varCollection["User::Message"].Value + message;   
               Dts.TaskResult = (int)ScriptResults.Success;
    The VB code that can be used only in SSIS 2005 and above in Script Task as below, please note that in SSIS 2005, we should
    change PrecompileScriptIntoBinaryCode property to False and Run64BitRuntime property to False
    Public Sub Main()
            ' Add your code here
            Dim varCollection As Variables = Nothing
            Dim message As String = String.Empty
            Dts.VariableDispenser.LockForWrite("User::Message")
            Dts.VariableDispenser.LockForWrite("User::Category")
            Dts.VariableDispenser.LockForWrite("User::CntRecords")
            Dts.VariableDispenser.GetVariables(varCollection)
            'Format the query result with tab delimiters
            message = String.Format("{0}" & vbTab & "{1}" & vbLf, varCollection("User::Category").Value, varCollection("User::CntRecords").Value)
            varCollection("User::Message").Value = DirectCast(varCollection("User::Message").Value,String) + message
            Dts.TaskResult = ScriptResults.Success
    End Sub
    Drag Send Mail Task to Control Flow pane and connect it to Foreach Loop Container.
    Double-click the Send Mail Task to specify the appropriate settings, then in the Expressions tab, use the Message variable as the MessageSource Property as below:
    The final design surface like below:
    References:
    Result Sets in the Execute SQL Task
    Applies to:
    Integration Services 2005
    Integration Services 2008
    Integration Services 2008 R2
    Integration Services 2012
    Integration Services 2014
    Please click to vote if the post helps you. This can be beneficial to other community members reading the thread.

    Thanks,
    Is this a supported scenario, or does it use unsupported features?
    For example, can we call exec [ReportServer].dbo.AddEvent @EventType='TimedSubscription', @EventData='b64ce7ec-d598-45cd-bbc2-ea202e0c129d'
    in a supported way?
    Thanks! Josh

  • Problem with complete task via email

    Hello,
    I have problem with complete task via email. I found this blog very useful (http://blogs.adobe.com/ADEP/2010/11/how-to-complete-a-task-via-email-using-reply-to-comple te.html), but...
    I set up everything as it’s written in blog mentioned above. When a task is assigned to me, I received an email notification with actions (accept, deny). After that I replied with action “accept”. Then I received email with subject “Errors from LiveCycle ES”:
    LiveCycle ES has tried to process your request and encountered the following error:
    com.adobe.pof.POFRuntimeException: Transaction is not active: tx=TransactionImple ; – nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple )
    This response to your original email
    Subject:RE:Task Assignment – Process: Test/Email_Test. Task 76 has been assigned to you.
    Date Sent:Thursday, October 24, 2011 1:17 PM
    Body:accept
    DO-NOT-DELETE: MTMhMzE0ITMyOA==!
    Attachments:
    In log appeared this following error:
    Caused by: ALC-DSC-215-000: com.adobe.idp.dsc.DSCRuntimeException: None of the Auth Provider could authenticate the user. Authentication Failed
    at com.adobe.livecycle.notification.TaskNotificationServiceImpl.processEmailComplete(TaskNot ificationServiceImpl.java:1157)
    Can you me please? I have no idea what to do to succesfully complete task via email endpoint. Thanks
    Jan Petrla

    Hi Diana, thanks for your reply.
    You're probably right about 2 different error messages.
    To the 1st one: I'm sure that status task is Assigned (to me). I received an email and I also reply on that email.
    To error log: I found out that error log appears when I enable email endpoint on Complete Task service. But I managed to solve this problem. I set wrong user. Now I have here the same user as is written in login-config.xml so log seems to be ok.
    So I created new task and tried to complete it via email. Now I receive email with another error:
    LiveCycle ES has tried to process your request and encountered the following error:
    com.adobe.idp.dsc.provider.service.email.impl.EmailProviderException: Error getting user context
    This response to your original email
    Subject:RE:Task Assignment - Process: WorkFlowClient/Test. Task 92 has been assigned to you.
    Date Sent:Thursday, October 27, 2011 3:05 PM
    Body:Complete
    DO-NOT-DELETE: MTIxMSExNjAzITIwMTE=!
    Attachments:
    And to the last point: email endpoint is set up with TestPOP3@mydomain and user receiving email has jpetrla@mydomain. I use Lotus Notes as email client, I tried another account with gmail, but the result was same.
    Now I really don't know to do...
    Jan

  • Alert when Tasks Overdue

    Hi All,
    I have a problem when create the new tasks in the SAP Portal for deadline yesterday, I need configure for each hour , and day after for this task send the mail, but these configure don't send the mail.
    How to configure for before and after send the mail for the assigned in the Tasks??
    We need configure these steps for recursive time??
    Roberto

    Patricio,
    I see documentation the UWL and it's possible configuration the alert when tasks overdue , without the using Guided Procedures.
    I search these documentation, because, I will need configuration for example send mail each hour when the task is overdue
    Best Regards
    Roberto

  • Extra task instruction email sent when task is claimed from group que

    Jasmin or whoever can help,
    Task instruction and reminder emails are sent correctly to my group members but when someone claims a task from the group que they get another task instruction email as soon as it hits their personal que. Is this a bug or is there something I can do to keep it from happening?
    Thanks for your help,
    Brian

    Hi Brian
    This is not a bug.
    When tasks are assigned to a group queue, members of the group receive an email notification if the administrator has turned on the Group - Task Assignment setting on the Task Notifications page.
    Once the task is claimed, it is assigned to a individual user's queue.
    That individual will also receive an email notification if the Administrator has turned on the Task Assignment setting on the Task Notifications page.
    If you turn off the Task Assignment setting to stop the personal queue email, you will be turning off individual assignment notifications globally on the server.
    Diana

  • OIM 11g: send direct link to approval tasks in email notification

    Hi all!
    What do I want to achieve: I want to send email notification to assignee in case if some approval task in OIM has assigned to them and this notification must have a direct link to the page of approval task details from which assignee can approve or reject an approval task.
    The default email notification that exists in approval task “DefaultRoleApproval” has a direct link to a request details page:
    <a href="<%substring-before(/task:task/task:payload/task:url , "/workflowservice/CallbackService")%">/oim/faces/pages/Self.jspx?OP_TYPE=LOOKUP&E_TYPE=MY_REQUEST&T_ID=<%/task:task/task:payload/task:RequestID%>>
    But unfortunately from this page we can’t do any action such as reject or approve.
    To find a direct link to an approval task details page (Self Service -> Tasks -> Task Details: Approval) from which I can perform needed operation I used document ID 748447.1. But I haven’t found a direct link.
    What is the direct link to task details page for approval with exact ID which I can include in an email to satisfy my requirement?
    Thanks in advance!</a>

    If at all you cannot get the direct link for approve/reject then try the actionable email from SOA. Once you have that configured the emails gets approver/reject links so that approvers can directly approve/reject the task from email. If that works for you then you can look at the format of those links in the email and deduce what you need the url as.
    HTH,
    BB

  • To send a Task though Email

    Hi Experts,
    I have a requirement where in i have to send Outlook Express task through Email. I am able to do this for appointment and meeting . I am downloading the appointment and task as VCS  file from outlook express. i am converting this file data into Hexa data and sending this by FM SO_DOCUMENT_SEND_API1.
      I am not able to download the task as VCS file. I am downloading the task as MSG format. I am not getting any scope on the data which i have in MSG format.
    Could any one Please suggest a solution for sending  task  through Email.
    Thanks & Regards,
    Jeswanth Kadali

    Hello,
    Could you send me the abap code that send an appointement to Outlook please
    Thanks.

  • Human task notification email problem

    Hi All,
    We are getting a strange error with the Human Task Notification email. All mail settings look fine, but we are receiving "Error 500 -- internal server error" in the notification email. As far as we can tell, the email is sent to the right receipt, which is specified by expression, and Worklistapp is working properly. The error is complaining that the authentication of the user "workflowsystem" fails. I believe that it's a system user, but have no idea why it fails.
    This is the notification sent to the assignee and the followings are the details of the error:
    Error 500--Internal Server Error
    javax.servlet.ServletException: javax.servlet.ServletException: java.security.PrivilegedActionException: oracle.security.jps.internal.api.jaas.AssertionException: javax.security.auth.login.FailedLoginException: [Security:090304]Authentication Failed: User workflowsystem javax.security.auth.login.LoginException: [Security:090300]Identity Assertion Failed: User workflowsystem does not exist
         at oracle.bpel.services.workflow.client.worklist.util.WorkflowFilter.doFilter(WorkflowFilter.java:257)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.bpel.services.workflow.client.worklist.util.DisableUrlSessionFilter.doFilter(DisableUrlSessionFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:179)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    Thanks in advance.
    Steven

    Looks like you may be specifying ad-hoc email address (by expression) in the notification configuration, but have not configured the notification for “secure” notification.
    If the notification is actionable, then the runtime impersonates the participant to ensure that the form renders as it would in the browser. However if the configuration of recipient is ad-hoc (i.e. an email address rather than participant type) then the attempt to impersonate fails, in this case trying to be “workflowsystem” user, which isn’t a real user in the directory.
    You can send a notification to an explicit email, but the notification has to configured as secure, which means they just get a link to the task in the message body.

  • Edit Approval Workflow - Task Rejection Email

    How can I Edit Approval Workflow - Task Rejection Email?

    Hi Sunil,
    Thank you for your posting!
    According to your description, my understanding is that you want to edit the Task Rejection Email for your Approval Workflow. Please take steps as below:
            1.Open your site in the SharePoint Designer, go to Workflows->open the workflow you want to modify ->click the Approval->click on “Change
    the behavior of the overall task process” in the Approval editor page.
            2.Find the Step “When the Task Process Completes”-> “Set workflow status to Rejected.”
            3.Add two “Set Workflow Variable” from Action on the ribbon,Click on “workflow
    variable” then select “Variable: CompletionMailTitle”(editing the email title) and “Variable: CompletionMailReason”(editing the email body).
             4.Scroll below and click on the last action – “Email Workflow Context: Initiator” under “Else”,remove
    the first line.
    Reference:
     5 Steps to Enhance SharePoint 2010 Approval Workflow
     step 4
    Thank you for your understanding and support.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Does the Task Status Email Notification definition work for you?

    Hi,
    Have you ever set the email definition Task Status Email Notification? Worked?
    I've configured this template in my process tasks notifications. The e-mails for C and R status were sent OK but the values were all empty. Below are the subject and body of this email definition.
    Subject
    Process task <Process Definition.Tasks.Task Name> is <Process Instance.Task Details.Data>.
    Body
    The Process task <Tasks.Task Name> is <Task Details.Status>.
    The details of this process task are as follows:
    Process Task Name: <Process Definition.Name>
    Process Task Status: <Task Details.Status>
    Resource Name: <Resource.Resource Name>
    Target User: <Users.First Name> <Users.Last Name> [<Users.User ID>]
    Assigned to: <Process Instance.Task Information.Assignee First Name> <Process Instance.Task Information.Assignee Last Name> [<Process Instance.Task Information.Assignee User ID>]
    Response Code : <Responses.Response>
    Response Description : <Responses.Description>
    Error Details : <Task Details.Reason>

    Thanks for your attention.
    For all custom process tasks I have set this definition to notify the target user, for example, when the task is Completed or Rejected. For all all I've got the same problem: the notification e-mail is sent but the values are all empty.
    I thought the tags were based on the fields returned by the getProvisioningTaskDetails that returns the information below. But you can see the tags are different from.
    Process Instance.Task Details.Key
    Process Instance.Task Details.Type
    Process Instance.Task Details.Status
    Process Instance.Task Details.Data
    Process Instance.Task Details.Reason
    Process Instance.Task Information.Assign Type
    Organizations.Key
    Process Instance.Key
    Process Definition.Name
    Process Instance.Descriptive Data
    Process Instance.Task Details.Projected Start
    Process Instance.Task Details.Projected End
    Process Instance.Task Details.Actual Start Date
    Process Instance.Task Details.Actual End Date
    SCH_REASON
    Process Instance.Task Details.Updated By
    Process Instance.Task Details.Update Date
    Process Instance.Task Details.Row Version
    Process Instance.Task Details.Action
    Process Instance.Task Details.System level
    Process Instance.Task Details.Creation Date
    Process Instance.Task Details.Created By
    Process Instance.Task Details.Note
    Process Definition.Tasks.Key
    Process Definition.Tasks.Task Name
    Process Definition.Tasks.Task Description
    Process Definition.Tasks.Days
    Process Definition.Tasks.Hours
    Process Definition.Tasks.Minutes
    Process Definition.Tasks.Milestone Datalabel
    Process Definition.Tasks.Disable Manual Insert
    Process Definition.Tasks.Responses.Description
    Process Instance.Task Information.Updated By User Key
    Process Instance.Task Information.Updated By User ID
    Process Instance.Task Information.Updated By First Name
    Process Instance.Task Information.Updated By Last Name
    Process Instance.Task Information.Assignee User Key
    Process Instance.Task Information.Assignee User ID
    Process Instance.Task Information.Assignee First Name
    Process Instance.Task Information.Assignee Last Name
    Process Instance.Task Information.Assignee Email
    Process Definition.Tasks.Responses.Key
    Process Instance.Task Information.Row Version
    TLG_KEY
    Status.Category
    Groups.Key
    Groups.Group Name
    Thanks,
    Renato.

  • Assigning human task to a user not exist in the ldap - actionable task by email address

    Hello experts,
    we have a requirement to assign a task to an external user (not exist in the ldap) to perform some action by allowing the system to send an actionable email.
    Internal user will capture the external-user name & emailaddress in the task form. System should use this information and assign the task to the user by sending an actionable email. Our requirement is, these external users should not have access to bpm workspace, so we can not store the user information within the system.
    Currently I have tried assign the task to an internal user (users configured in weblogic) and system sends out an actionable email and able to set the outcome of the task by replying to the email.
    How can the same be achieved, without the user being in our system? Is it possible? I am OK to create a temporary user before assigning the task, but will be there be any impact if I delete the user after the task has been completed?

    AnilB,
    Assigning a task to a user that is not in the directory will likely result in the BPM flow going into suspended state. To avoid this, assign the task to a pre-created group, you should not get an error even if the group is empty. You can then add and remove the users to that group to control access to the task.
    Phil

  • Execute SQL task for Email ToLine using COALESCE and two variables

    Hello...
    I am converting an old DTS package to SSIS. The old package consist of mostly ActiveX Script so I am breaking it down into steps. Basically... I am retreving a set of records that need to be sent via email to multiple people.  In my package to create
    my ToLine for the Send Mail Task I am using several steps. Frist I am using:
    SELECT CASE
              WHEN EXISTS (  SELECT        users.User_EmailAddress
    FROM            dbo.Errors INNER JOIN
                             dbo.Users ON users.user_id = Errors.MonitorAuditor_User_Id
    WHERE        ([Audit_Id] = ?) AND ([ErrorCode_Id] = ?) ) THEN
                 1
              ELSE
                 0
           END AS ValidEventID
    I use this to see if there is any records to create my email string. This works fine.  After this I have a Script Task that splits my pipe in two. When no records exist (User::ValidEventID == 0) I am loging that event to a log. When records do exist
    I am using another Execute SQL task to create the actual ToLine:
    Declare @combinedString VARCHAR(max)
    SELECT      @combinedString = COALESCE(@combinedString + ', ', '') + Users.User_EmailAddress
    FROM            dbo.Errors INNER JOIN
                             dbo.Users ON users.user_id = Errors.MonitorAuditor_User_Id
    WHERE        ([Audit_Id] = ?) AND ([ErrorCode_Id] = ?)
    SELECT convert(varchar(4000),@combinedString) as StringValue
    I have my resultSet set to Single Row. I have two variables coming if for the Audit_Id and ErrorCode_Id. My Result Set is set to a Variable: User::EmailAddressString.
    Next it goes through a foreach loop to map to the ToLine email variable that I created named User:User_EmailAddress.
    Then I am using that in my Send Email Task.
    It all works fine when I hard code my variables into the COALESCE statement but as soon as I replace that with the ? that SSIS requires for variables I am getting the following error:
    [Execute SQL Task] Error: Executing the query "Declare @combinedString VARCHAR(max)
    SELECT      ..." failed with the following error: "Syntax error, permission violation, or other nonspecific error". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly,
    parameters not set correctly, or connection not established correctly.
    I have tried changing my resultset property, I have checked my paramenters and my connection. I don't understand why it works fine when I have my varaiables hard coded but not when I change them to the ?.
    Thanks in advance for you help in this matter.
    Reach for the unknown!

    Katherine... that did not work. 
    What I ended up doing was taking out the forloop all together. In my Execute SQL Task I changed the result set from single row to XML. I took out the  COALESCE statement and just went for something more basic:
    select users.User_EmailAddress + ';' as User_EmailAddress from Errors inner join users on users.user_id = Errors.MonitorAuditor_User_Id WHERE ([Audit_Id]  = ? AND [ErrorCode_Id] = ?)
    Currently I am just logging the string to a text file so I can see the results. In my text file the string is surrounded by <ROOT></ROOT>. So I will next I will work on triming that off the string and then populate my Send Mail Task.
    This is how I trimed off the <ROOT></ROOT>:
    Dts.Variables(
    "EmailAddressString").Value = Replace(Dts.Variables("EmailAddressString").Value,
    "<ROOT>",
    Dts.Variables(
    "EmailAddressString").Value = Replace(Dts.Variables("EmailAddressString").Value,
    ";</ROOT>",
    Thanks again everyone for the help!
    Reach for the unknown!

Maybe you are looking for

  • HP OfficeJet 4500 and OfficeJet 4600 both not copying any more but will scan and print

    My computer/networking business has 3 HP OfficeJet AIO printers: 2 x 4500 (about 2 years old) and 1 x 4600 (about 6 months old). Only the one 4500 is still able to do everything it should. The others can both print and scan but can't copy any more. (

  • Automatic e-mail of remittance advice to vendors following the Payment Run

    Hi,     We are implementing the Automatic e-mail of remittance advice to vendors following the Payment Run(F110) for one of our company code located at UK. But we have already implemented this process for one of the company code located in US using t

  • Is it possile to attach a name to a BEGIN..END execution block ?

    DB version:10gR2 In one of our badly coded and badly indented stored proc there are several BEGIN..END blocks within a main BEGIN..END block. Is it possible to name a BEGIN...END execution block for readability purpose?

  • Schedule setups outside working hours

    Dear Experts, We are implementing PPDS in a process industry, setup matrixs are going to be used and in order to create a  setup constraint based plan for the next 3 weeks, we use the optimizer. During the production, many of the setup changes are re

  • Kernel Patch questions

    Sorry but it has been a while. After reading all the kernel threads, I still have a few kernel patch questions. 1) Sequencing - Does it matter what sequence I apply all the patches? Alphabetic order? Date sequence? Always finish with DW? 2) Versionin