Outlook Solutions Archive

In this article, I analyze the “Could not complete the operation. One or more parameter values are not valid” error when trying to manage Outlook rules after a Windows system update. Then provide a solution for the problem.

Hardware/Software Configurations:

My computer has Windows 7(64bit) and Outlook 2010(64bit) installed. Both work perfectly without any problems. But things change after a Windows system update …

Note: I have set Windows system update to auto update mode.

Symptom:

Last night, Outlook continued working smoothly. When I shut down my computer, I see Windows update message “Please do not power off or unplug your machine. Installing update ## of ##”.

As Windows update frequently, I do not pay much attention to that. Just let it go.

However, this morning, when I try to start Outlook as usual, I see a warning message “Outlook is not the default email client”. I just check the option to reset Outlook as the default one and proceed.

Then, in my Outlook inbox, I see a lot of new incoming emails. Originally these emails should be filtered and put into the corresponding subfolders by rules automatically. I immediately notice that there may be something wrong with my Outlook rules. Therefore, I try to click “File” -> “Manage Rules and Alerts”, but “Rules and Alerts” dialog box does not appear. Instead, I get another error message “Could not complete the operation. One or more parameter values are not valid”.

Now all of my rules stop working. I have to pick up hundreds of emails manually. That is a nightmare, especially when I need to do that every day. Therefore, I must fix the problem as soon as possible.

Diagnosis:

At the beginning, I thought the problem is caused by the Windows update, since my Outlook is fine just before the update. And Windows update has a reputation of introducing new problems to an existing stable system.

I have made a backup of the whole system, before the problem occurs. Therefore, that is my last resort to solve the problem.

Before doing anything, I try to contact Microsoft support. And they provide the following solutions:

  1. Use the “Repair” function in Office installer to repair Office, including Outlook.

Result: I try the solution but after the repair process, nothing changes.

  1. Create a new profile. Then recreate all the accounts for the profile and add the existing PST file to it.

Result: I try to create a new profile, create a test account, and then add the existing PST file to the new profile. Then I restart Outlook. This time I can start the rule manager. But all rules disappear. I cannot understand that since in Outlook 2010, the rules are stored in the PST file. Therefore, what I need to do is recreate all the accounts and rules, which is time consuming. Therefore, I finally discard this solution.

  1. For Outlook 2010, the rules are stored in the PST file. Therefore, the support thinks my PST file is corrupt and suggest me to repair it with scanpst.

Result: I don’t think the problem is caused by PST file corruption. To confirm my idea, I try to restore my PST file to an old version before the problem occurs with DataNumen Backup, then restart Outlook. The problem still exists. So, the problem should not be caused by the PST file, but a system update which changes the Outlook executable or dll files.

Deep Diagnosis:

I guess the problem may be caused by a conflict of my existing rules in PST file and the new updated version of Outlook. Therefore, I try to follow this article to write a small VBA code to delete all the rules in my PST file. However, whenever the code steps to the following line:

Set objRules = objStore.GetRules

I will still get a “Could not complete the operation. One or more parameter values are not valid” error again. So the problem jus prevents me from access all the rules via either GUI method or VBA codes. I have to seek other ways to solve the problem.

Solution:

Now based on the above analysis, there are two solutions for my problem:

  1. Restore the whole system to the time point before the system update occurs.
  2. Recreate a new profile, and recreate all the account and rules again.

Solution 2 is time consuming. Therefore, finally I decide to choose the first one, as follows:

  1. Unplug the network cable and disable the wireless network in my computer. To prevent the system from being updated automatically.
  2. Make a backup of the PST file since it contains some new emails after the update.
  3. Restore the whole system to the time point before the update occurs.
  4. Overwrite the old PST file with the new one backed up in step 2.
  5. Start Outlook.
  6. Click “File” -> “Manage Rules & Alerts”, this time the “Rules and Alerts” dialog box will pop up without any problems. And all the rules appear in it.
  7. There may be some rules in the PST file that conflict with the new system update. Since I don’t know which one cause the conflict, I choose to remove all of them.
  8. Re-plug the network cable and re-enable the wireless network in my computer.
  9. Check and perform system update manually. During the update, I can see there is an update for Outlook.
  10. After the update, restart Outlook and re-access the rules via “File” -> “Manage Rules & Alerts”, this time I can still access the “Rules and Alerts” dialog box.
  11. Add all the rules back.
  12. Everything is OK now even with the latest update of Outlook.

Conclusion:

The system update causes a conflict of the existing rules with the new updated version of Outlook. It is better for Microsoft to find a fix for that, or provide an option to remove the conflict rules. However, if none of them are available in a timely manner, we can still solve it by utilizing an old backup.

4 Comments so far. Join the Conversation

When flagging a contact, some users hope to get a standard Outlook task in To-Do List instead of a flagged contact. Now, in this article, we will introduce a method to let Outlook auto create a task for call the contact person later when flagging a contact.

As we all know, when flagging a contact, the contact will display in the To-Do list. But, most of time, what we really want is a standard task for calling this contact later and contains the telephone numbers of the contact only in task body. Hence, here we will introduce a method to configure Outlook to auto create such a task. Read on to get more details.

Auto Create a Task to Call the Contact Person Later when Flagging a Contact

  1. At first, launch Outlook VBA editor with reference to “How to Run VBA Code in Your Outlook“.
  2. Then, open the “ThisOutlookSession” project and put the following code into it.
Private WithEvents objContacts As Outlook.Items

'Works for contacts in the default Contact folder
Private Sub Application_Startup()
    Set objContacts = Outlook.Application.Session.GetDefaultFolder(olFolderContacts).Items
End Sub

Private Sub objContacts_ItemChange(ByVal Item As Object)
    Dim objContact As Outlook.ContactItem
    Dim objTask As Outlook.TaskItem

    If TypeOf Item Is ContactItem Then
       Set objContact = Item

       If objContact.IsMarkedAsTask = True Then
          If objContact.TaskCompletedDate = "1/1/4501" Then
             'Create a task for calling this contact
             Set objTask = Outlook.Application.CreateItem(olTaskItem)
             With objTask
                  .Subject = "Call " & objContact.FullName
                  .StartDate = objContact.TaskStartDate
                  .DueDate = objContact.TaskDueDate
                  .Attachments.Add objContact
                  .Body = "Business: " & objContact.BusinessTelephoneNumber & vbCr & "Home: " & objContact.HomeTelephoneNumber & vbCr & "Other: " & objContact.OtherTelephoneNumber & vbCr & vbCr
                  .ReminderSet = True
                  .ReminderTime = objContact.ReminderTime
                  .Save
                  .Display
             End With
             objContact.ClearTaskFlag
             objContact.Save
        End If
      End If
   End If
End Sub

VBA Code - Auto Create a Task to Call the Contact Person Later when Flagging a Contact

  1. After that, put cursor in the “Application_Startup” subroutine and press “F5” key to activate this macro.
  2. Finally, exit the VBA editor and try this macro right away.
  • Select or open a contact and flag it.Flag a Contact
  • At once, a new task will be displayed, like the following screenshot.Popup Task
  • Meanwhile, as you can see, the contact’s flag is automatically removed.

Repair Compromised PST Files

Like Word documents, Outlook PST file is also prone to corruption. Many users have been plagued by the problems related to inaccessible PST files. Fortunately, Outlook comes pre-installed with an inbuilt repair utility – Scanpst. It is indeed able to fix a majority of small PST issues. Yet, when confronting seriously corrupt PST file, it seems ineffective. Thereby, at that time, you have to take aid of a more powerful tool, like DataNumen Outlook Repair.

Author Introduction:

Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including sql recovery and outlook repair software products. For more information visit www.datanumen.com

It is easy to attach a Word document as a PDF file to an Outlook email. Yet, if you’d like to attach multiple Word documents as PDF files to an email, you can read this article. Here we will show you a method to batch get it.

To attach a Word document as PDF file to an Outlook email, you can firstly open the Word document and go to “File” menu. Then, you can switch to “Save & Send” tab, on which there is a “Send as PDF” button, like the following screenshot.

Send as PDF

Thus, it is quite simple to attach a Word document as PDF to an email. But, if you would like to convert and attach multiple Word documents as PDF files to a mail, you are better off using the following way. It can let you accomplish it in bulk.

Batch Convert & Attach Multiple Word Documents as PDF Files to an Email

  1. For a start, gather the Word documents that you want in the same Windows folder.
  2. Then, launch Outlook program.
  3. Next, copy the following code into an unused project or module.
Dim objMail As Outlook.MailItem

Sub BatchAttachMultipleWordDocumentsAsPDFToEmail()
    Dim objShell As Object
    Dim objWindowsFolder As Object
    Dim strWindowsFolder As String

    Set objMail = Outlook.Application.CreateItem(olMailItem)

    'Select the specific Windows folder
    Set objShell = CreateObject("Shell.Application")
    Set objWindowsFolder = objShell.BrowseForFolder(0, "Select a Windows folder:", 0, "")

    If Not objWindowsFolder Is Nothing Then
       strWindowsFolder = objWindowsFolder.self.Path & "\"

       Call ProcessFolders(strWindowsFolder)

       objMail.Display
    End If
End Sub

Sub ProcessFolders(strPath As String)
    Dim objFileSystem As Object
    Dim objFolder As Object
    Dim objFile As Object
    Dim objWordApp As Word.Application
    Dim objWordDocument As Word.Document
    Dim strDocumentName As String
    Dim strPDF As String

    Set objFileSystem = CreateObject("Scripting.FileSystemObject")
    Set objFolder = objFileSystem.GetFolder(strPath)

    For Each objFile In objFolder.Files
        strFileExtension = objFileSystem.GetExtensionName(objFile)
        If LCase(strFileExtension) = "doc" Or LCase(strFileExtension) = "docx" Then
           Set objWordApp = CreateObject("Word.Application")
           Set objWordDocument = objWordApp.Documents.Open(objFile.Path)

           'Convert document to pdf
           strDocumentName = Left(objWordDocument.Name, (Len(objWordDocument.Name) - Len(strFileExtension)) - 1)
           strPDF = strPath & strDocumentName & ".pdf"
           objWordDocument.ExportAsFixedFormat strPDF, wdExportFormatPDF

           objWordDocument.Close False

           'Attach the pdf to email
           objMail.Attachments.Add strPDF

           Kill strPDF
        End If
    Next

    'Process all folders and subfolders
    If objFolder.SubFolders.Count > 0 Then
       For Each objSubfolder In objFolder.SubFolders
           If ((objSubfolder.Attributes And 2) = 0) And ((objSubfolder.Attributes And 4) = 0) Then
              ProcessFolders (objSubfolder.Path)
           End If
       Next
    End If
End Sub

VBA Code - Batch Convert & Attach Multiple Word Documents as PDF Files to an Email

  1. After that, move cursor into the first subroutine.
  2. Subsequently, press “F5” to run this macro right away.
  3. In the popup small dialog box, select the Windows folder where the source Word documents are stored.Select Windows Folder
  4. At once, a new email will be created, in which you can see the attached PDF files, like the following screenshost.Attached PDF Files in New Email

Plagued by Outlook Troubles

Are you disturbed by miscellaneous Outlook problems? For instance, Outlook is frequent stuck in “not responding” state or Outlook PST file becomes inaccessible, etc. In general, you can first try inbox repair tool, Scanpst, to fix PST issues. Yet, at times, the problems may be beyond what the inbuilt tool can do. Therefore, you’d better keep a more potent external utility in vicinity, such as DataNumen Outlook Repair.

Author Introduction:

Shirley Zhang is a data recovery expert in DataNumen, Inc., which is the world leader in data recovery technologies, including sql repair and outlook repair software products. For more information visit www.datanumen.com