Webservices QueMailBoxMigration not working
Problem reported by Brent Kenreich - 9/15/2015 at 5:45 AM
The webservices documentation is incomplete and therefore largely unusable without hours of trying possible combinations and variable types
For example,
For QueMailBoxMigration
How is the parameter string supposed to be formatted? Single or double quotes or none?
Are the USESLL AND DELETECURRENTMAILBOX boolean values supposed to “false” or 0?
Why does the result code always return "user does not exist"? Is it the destination user, or the source user?
  <QueueMailBoxMigrationResponse xmlns="h t t p://tempuri.org/">
        <Message>User does not exist.</Message>

3 Replies

Reply to Thread
Robert Emmett Replied
Employee Post
If you go to http://yourserver.com/Services/ you will see all of the web services available.  Click on svcUserAdmin and navigate to QueueMailBoxMigration.  This provides the web service specification and definitions for each of the parameters.  In your particular case, USESLL and DELETECURRENTMAILBOX (which clears the destination mailbox, if it contains anything prior to the migration), require True or False values with no quotes.  The USERNAME and PASSWORD are for the source mailbox.  The IMPORTTYPE would be exchange2007orlater (again with no quotes).
I hope this helps!
Robert Emmett
Software Developer
SmarterTools Inc.
(877) 357-6278
I try with these configuration using webservices:

comandos(0) = "ACCOUNTTYPE=IMAP"
comandos(1) = "DELETECURRENTMAILBOX=false"
comandos(2) = "DESTINATION=email@domain.com"
comandos(3) = "IMPORTITEMS=email"
comandos(4) = "IMPORTTYPE=other"
comandos(5) = "PASSWORD=***"
comandos(6) = "PORT=143"
comandos(7) = "SERVERADDRESS="
comandos(8) = "USERNAME=sourceemail@domain.com"
comandos(9) = "USESSL=false"

The return always have:

Result = False
Message = Object reference not set to an instance of an object.
ResultCode = -20

Using the latest version of SM 14.2.5711

When I try to use the web interface after the START there is no action in the web page and in the Error_LOG have this error:

[CurrentUser: email@domain]
[9/19/2015 5:44:58 PM]

System.Exception: Null exception (likely a 404 or something else produced by IIS)
Application Error

Does really works? Best Regards
Solved the problem. ALL fields in parameters need to be sent. Because my account it's not Exchange the DOMAIN are not in the parameters list. When i try with domain= it's works.

Reply to Thread