This article describes how to troubleshoot errors after data is imported into Message Service (MNS). The errors include data loss and query failure.
- If you cannot query imported data in the Simple Message Queue (formerly MNS) console or code, perform the following steps:
- Log on to the Simple Message Queue (formerly MNS) console, find the queue, and then choose in the Actions column. In the Edit Parameter of Queue panel, view the values of the following parameters:
- Visibility Timeout Period: the period for which a message that has been consumed remains Inactive in the queue. After the specified period ends and the message is not confirmed to be consumed by a client, the message becomes Active and can be consumed again.
- Message Retention Period: the maximum retention period of a message in the queue. After the specified period ends, the message is deleted regardless of whether the message has been consumed.
- Scheduled Period: the period after which a message sent to the queue can be consumed.
Note If you set the DelaySeconds parameter when you send a message, the specified value is used. If you do not set the DelaySeconds parameter when you send a message, the value of the Scheduled Period parameter specified in the console is used. - On the Queues page, view the values in the Available Messages and Scheduled Messages columns. You can calculate the total numbers of available messages and scheduled messages.
- Check whether the configurations of the queue is reasonable based on the values obtained in the preceding steps.
- Log on to the Simple Message Queue (formerly MNS) console, find the queue, and then choose in the Actions column. In the Edit Parameter of Queue panel, view the values of the following parameters:
- If you can query the imported data in the Simple Message Queue (formerly MNS) console but cannot query the data in the code, check whether the code is valid or whether the latest SDK version is used.