2.2.3.177.10 Status (MoveItems)
The Status element is a required child element of the Response element and an optional child element of the MoveItems element in MoveItems command responses that indicates the success or failure the MoveItems command request (section 2.2.1.12). If the command failed, Status contains a code indicating the type of failure.
All elements referenced in this section are defined in the Move namespace.
Command request/response |
Parent elements |
Child elements |
Data type |
Number allowed |
---|---|---|---|---|
MoveItems command response |
Response (section 2.2.3.153.5) |
None |
integer ([MS-ASDTYPE] section 2.6) |
1…1 (required) |
MoveItems command response |
MoveItems (section 2.2.3.119) |
None |
integer |
0…1 (optional) |
The following table lists the status codes for the MoveItems command (section 2.2.1.12). For information about the scope of the status value and for status values common to all ActiveSync commands, see section 2.2.2.
Value |
Meaning |
Cause |
Scope |
Resolution |
---|---|---|---|---|
1 |
Invalid source collection ID or invalid source Item ID. |
The source folder collection ID (CollectionId element (section 2.2.3.30.6) value) is not recognized by the server, possibly because the source folder has been deleted. Or, the item with the Item ID (SrcMsgId element (section 2.2.3.175)) has been previously moved out of the folder with the Folder ID (SrcFldId element (section 2.2.3.174)). |
Item |
Issue a FolderSync command (section 2.2.1.5) to get the new hierarchy. Then, issue a Sync command (section 2.2.1.21) for the SrcFldId and reissue the MoveItems command request if the items are still present in this source collection. |
2 |
Invalid destination collection ID. |
The destination folder collection ID (CollectionId element value) is not recognized by the server, possibly because the source folder has been deleted. |
Item |
Issue a FolderSync command to get the new hierarchy. Then, use a valid collection ID. |
3 |
Success. |
Server successfully completed command. |
Global |
None. |
4 |
Source and destination collection IDs are the same. |
The client supplied a destination folder that is the same as the source. |
Item |
Send only requests where the CollectionId element values for the source and destination differ. |
5 |
One of the following failures occurred: the item cannot be moved to more than one item at a time, or the source or destination item was locked. |
More than one DstFldId element (section 2.2.3.51.2) was included in the request. |
Global |
Retry the MoveItems command request with only one DstFldId element or move the item to another location. |
7 |
Source or destination item was locked. |
Transient server condition. |
Item |
Retry the MoveItems command request. |
Protocol Versions
The following table specifies the protocol versions that support this element. The client indicates the protocol version being used by setting either the MS-ASProtocolVersion header, as specified in [MS-ASHTTP] section 2.2.1.1.2.6, or the Protocol version field, as specified in [MS-ASHTTP] section 2.2.1.1.1.1, in the request.
Protocol version |
Element support |
---|---|
2.5 |
Yes |
12.0 |
Yes |
12.1 |
Yes |
14.0 |
Yes |
14.1 |
Yes |
16.0 |
Yes |
16.1 |
Yes |