Skip to content

Latest commit

 

History

History
144 lines (107 loc) · 11.6 KB

get-details-for-an-error-in-your-app.md

File metadata and controls

144 lines (107 loc) · 11.6 KB
author ms.assetid description title ms.author ms.date ms.topic ms.prod ms.technology keywords ms.localizationpriority
mcleanbyron
f0c0325e-ad61-4238-a096-c37802db3d3b
Use this method in the Microsoft Store analytics API to get detailed data for a specific error for your app.
Get details for an error in your app
mcleans
03/06/2018
article
windows
uwp
windows 10, uwp, Store services, Microsoft Store analytics API, errors, details
medium

Get details for an error in your app

Use this method in the Microsoft Store analytics API to get detailed data for a specific error for your app in JSON format. This method can only retrieve details for errors that occurred in the last 30 days. Detailed error data is also available in the Failures section of the Health report in the Windows Dev Center dashboard.

Before you can use this method, you must first use the get error reporting data method to retrieve the ID of the error for which you want to get detailed info.

Prerequisites

To use this method, you need to first do the following:

  • If you have not done so already, complete all the prerequisites for the Microsoft Store analytics API.
  • Obtain an Azure AD access token to use in the request header for this method. After you obtain an access token, you have 60 minutes to use it before it expires. After the token expires, you can obtain a new one.
  • Get the ID of the error for which you want to get detailed info. To get this ID, use the get error reporting data method and use the failureHash value in the response body of that method.

Request

Request syntax

Method Request URI
GET https://manage.devcenter.microsoft.com/v1.0/my/analytics/failuredetails

Request header

Header Type Description
Authorization string Required. The Azure AD access token in the form Bearer <token>.

Request parameters

Parameter Type Description Required
applicationId string The Store ID of the app for which you want to retrieve detailed error data. The Store ID is available on the App identity page of the Dev Center dashboard. An example Store ID is 9WZDNCRFJ3Q8. Yes
failureHash string The unique ID of the error for which you want to get detailed info. To get this value for the error you are interested in, use the get error reporting data method and use the failureHash value in the response body of that method. Yes
startDate date The start date in the date range of detailed error data to retrieve. The default is 30 days before the current date. No
endDate date The end date in the date range of detailed error data to retrieve. The default is the current date. No
top int The number of rows of data to return in the request. The maximum value and the default value if not specified is 10000. If there are more rows in the query, the response body includes a next link that you can use to request the next page of data. No
skip int The number of rows to skip in the query. Use this parameter to page through large data sets. For example, top=10 and skip=0 retrieves the first 10 rows of data, top=10 and skip=10 retrieves the next 10 rows of data, and so on. No
filter string One or more statements that filter the rows in the response. Each statement contains a field name from the response body and value that are associated with the eq or ne operators, and statements can be combined using and or or. String values must be surrounded by single quotes in the filter parameter. You can specify the following fields from the response body:

  • market
  • date
  • cabId
  • cabExpirationTime
  • deviceType
  • deviceModel
  • osVersion
  • osRelease
  • packageVersion
  • osBuild
No
orderby string A statement that orders the result data values. The syntax is orderby=field [order],field [order],.... The field parameter can be one of the following strings:
  • market
  • date
  • cabId
  • cabExpirationTime
  • deviceType
  • deviceModel
  • osVersion
  • osRelease
  • packageVersion
  • osBuild

The order parameter is optional, and can be asc or desc to specify ascending or descending order for each field. The default is asc.

Here is an example orderby string: orderby=date,market

No

Request example

The following examples demonstrate several requests for getting detailed error data. Replace the applicationId value with the Store ID for your app.

GET https://manage.devcenter.microsoft.com/v1.0/my/analytics/failuredetails?applicationId=9NBLGGGZ5QDR&failureHash=012e33e3-dbc9-b12f-c124-9d9810f05d8b&startDate=2016-11-05&endDate=2016-11-06&top=10&skip=0 HTTP/1.1
Authorization: Bearer <your access token>

GET https://manage.devcenter.microsoft.com/v1.0/my/analytics/failuredetails?applicationId=9NBLGGGZ5QDR&failureHash=012e33e3-dbc9-b12f-c124-9d9810f05d8b&startDate=2016-11-05&endDate=2016-11-06&top=10&skip=0&filter=market eq 'US' and deviceType eq 'Windows.Desktop' HTTP/1.1
Authorization: Bearer <your access token>

Response

Response body

Value Type Description
Value array An array of objects that contain detailed error data. For more information about the data in each object, see the error detail values section below.
@nextLink string If there are additional pages of data, this string contains a URI that you can use to request the next page of data. For example, this value is returned if the top parameter of the request is set to 10 but there are more than 10 rows of errors for the query.
TotalCount inumber The total number of rows in the data result for the query.

Error detail values

Elements in the Value array contain the following values.

Value Type Description
applicationId string The Store ID of the app for which you retrieved detailed error data.
failureHash string The unique identifier for the error.
failureName string The name of the failure, which is made up of four parts: one or more problem classes, an exception/bug check code, the name of the image where the failure occurred, and the associated function name.
date string The first date in the date range for the error data. If the request specified a single day, this value is that date. If the request specified a week, month, or other date range, this value is the first date in that date range.
cabId string The unique ID of the CAB file that is associated with this error.
cabExpirationTime string The date and time when the CAB file is expired and can no longer be downloaded, in ISO 8601 format.
market string The ISO 3166 country code of the device market.
osBuild string The build number of the OS on which the error occurred.
packageVersion string The version of the app package that is associated with this error.
deviceModel string A string that specifies the model of the device on which the app was running when the error occurred.
osVersion string One of the following strings that indicates the OS version on which the error occurred:
  • Windows Phone 7.5
  • Windows Phone 8
  • Windows Phone 8.1
  • Windows Phone 10
  • Windows 8
  • Windows 8.1
  • Windows 10
  • Unknown
osRelease string One of the following strings that specifies the OS release or flighting ring (as a subpopulation within OS version) on which the desktop application is installed.

For Windows 10:

  • Version 1507
  • Version 1511
  • Version 1607
  • Version 1703
  • Version 1709
  • Release Preview
  • Insider Fast
  • Insider Slow

For Windows Server 1709:

  • RTM

For Windows Server 2016:

  • Version 1607

For Windows 8.1:

  • Update 1

For Windows 7:

  • Service Pack 1

If the OS release or flighting ring is unknown, this field has the value Unknown.

deviceType string One of the following strings that specifies the type of the device on which the app was running when the error occurred:
  • PC
  • Phone
  • Console
  • IoT
  • Holographic
  • Unknown
cabDownloadable Boolean Indicates whether the CAB file is downloadable for this user.

Response example

The following example demonstrates an example JSON response body for this request.

{
  "Value": [
    {
      "applicationId": "9NBLGGGZ5QDR ",
      "failureHash": "012345-5dbc9-b12f-c124-9d9810f05d8b",
      "failureName": "STOWED_EXCEPTION_System.UriFormatException_exe!ContosoGame.GroupedItems+_ItemView_ItemClick_d__9.MoveNext",
      "date": "2018-02-05 09:11:25",
      "cabId": "133637331323",
      "cabExpirationTime": "2016-12-05 09:11:25",
      "market": "US",
      "osBuild": "10.0.10240",
      "packageVersion": "1.0.2.6",
      "deviceModel": "Contoso Computer",
      "osVersion": "Windows 10",
      "osRelease": "Version 1507",
      "deviceType": "PC",
      "cabDownloadable": false
    }
  ],
  "@nextLink": null,
  "TotalCount": 1
}

Related topics