Code Monkey home page Code Monkey logo

windows-dev-center-vsts-extension's Introduction

Visual Studio Team Services extension for the Windows Store

This extension provides tasks to automate the release of your Windows apps to the Windows Store from your continuous integration environment in Visual Studio Team Services (VSTS). You no longer need to manually update your apps from Windows Dev Center.

Quick start

  1. Ensure you meet the prerequisites.

  2. Install the extension.

  3. Obtain and configure your Dev Center credentials.

  4. Add tasks to your release definitions.

Prerequisites

  1. You must have an Azure AD directory, and you must have global administrator permission for the directory. You can create a new Azure AD from Dev Center.

  2. You must associate your Azure AD directory with your Dev Center account to obtain the credentials to allow this extension to access your account and perform actions on your behalf.

  3. The app you want to publish must already exist: this extension can only publish updates to existing applications. You can create your app in Dev Center.

  4. You must have already created at least one submission for your app before you can use the Publish task provided by this extension. If you have not created a submission, the task will fail.

  5. More information and extra prerequisites specific to the API can be found here.

Obtaining your credentials

Your credentials are comprised of three parts: the Azure Tenant ID, the Client ID and the Client secret. Follow these steps to obtain them:

  1. In Dev Center, go to your Account settings, click Manage users, and associate your organization's Dev Center account with your organization's Azure AD directory. For detailed instructions, see Manage account users.

  2. In the Manage users page, click Add Azure AD applications, add the Azure AD application that represents the app or service that you will use to access submissions for your Dev Center account, and assign it the Manager role. If this application already exists in your Azure AD directory, you can select it on the Add Azure AD applications page to add it to your Dev Center account. Otherwise, you can create a new Azure AD application on the Add Azure AD applications page. For more information, see Add and manage Azure AD applications.

  3. Return to the Manage users page, click the name of your Azure AD application to go to the application settings, and copy the Tenant ID and Client ID values.

  4. Click Add new key. On the following screen, copy the Key value, which corresponds to the Client secret. You will not be able to access this info again after you leave this page, so make sure to not lose it. For more information, see the information about managing keys in Add and manage Azure AD applications.

See more details on how to create a new Azure AD application account in your organizaiton's directory and add it to your Partner Center account here.

Configuring your credentials

Once you have obtained your credentials, you must configure them in VSTS so that the extension can access your Dev Center account and publish on your behalf. You must install the extension before being able to configure your credentials. Once the extension is installed, follow these steps:

  1. In VSTS, select your project and go to the Project settings page. Click the Services tab. Expand the New Service endpoint dropdown, and select Windows Dev Center

  2. In the pop-up box, fill in your credentials in the corresponding text boxes (Azure Tenant ID, Client ID and Client Secret). For the Connection Name, you can pick any name of your choosing. For the Server URL, use the default value "https://manage.devcenter.microsoft.com/".

Screenshot of the "Add new Windows Dev Center Connection" dialog

  1. Click OK to confirm. Your endpoint is now configured and will be accessible by the extension's tasks.

Using the extension

This extension provides release tasks. You can access them from your project by clicking the Release tab, and selecting an existing release definition or creating one. Select your chosen environment, then click Add tasks. The tasks contributed by this extension are in the Deploy section.

Screenshot of the "Add tasks" dialog, with the "Windows Store - Publish" task highlighted

Task reference

Windows Store - Publish

This task allows you to publish your app on the Store by creating a submission on Dev Center. It has the following parameters:

Screenshot of the UI for the "Publish" task

  • Service endpoint - The endpoint containing the credentials you wish to use. Typically this will be the endpoint you created when configuring your credentials.

  • App identification method - How to identify the app to publish: by name or ID. If unsure, select "Primary name".

  • Application primary name / ID (Text, required) - The identification for the app. Depending on your selection, this should be either the app ID (visible in the URL of the app's page on Dev Center) or the app primary name (visible on the app's page on Dev Center).

  • Delete pending submissions (Checkbox) - If checked, will attempt to delete any in-progress submission before starting a new one. Note that only one submission at a time can be pending. Therefore, if this box is not checked and a submission is already pending, the task will fail. Furthermore, submissions created on the Dev Center UI cannot be deleted automatically by the task.

  • Metadata update method - How to update the app's metadata. Options are No Update, Text Metadata or JSON-formatted Metadata. In the first case, the app's metadata will not be changed from the previous submission. In the latter cases, the app's metadata will be updated according to the expected format.

  • Metadata path (File path, required if visible) - Path to a directory containing the metadata to update (appears when selecting another option than No Update for the metadata update method). The expected format is detailed below.

  • Package path (File path, optional) - Path to your app's main package (usually a file in .appx, .xap or .appxbundle format). Minimatch pattern is supported.

  • Additional package(s) (Text, optional) - A list of paths, one per line, of additional packages that your app needs, for example to support multiple platforms. Each individual path supports Minimatch pattern.

  • Skip polling (Checkbox) - If checked, will skip polling the submission after committing it to Dev Center. Otherwise, it will keep polling the submission till it gets published (which typically takes around 2 hours). Warning: If you check this box, you will not see errors, if any, that your submission may run into. You will have to manually check the status of your submission in Dev Center.

  • Delete Packages (Checkbox, optional) - If checked, will enable deletion of one or more old packages (sorted by version). Checking this box will enable a dropdown "Number of packages to keep" explained in following point. If not checked, will not delete any old package.

  • Number of Packages to keep (Picklist, required) - Specify number of latest packages (sorted by version) to be kept per unique target device family and target platform. For example, if you have a mix of 3 distinct packages each for Windows 10 desktop, mobile and Windows 8.1 X64 platform (so in total 9 packages), and you specify 2 in this box, then the oldest package in each group will be deleted (total packages after deletion will be 6).

You only have to select the packages you want to update. If you have a package that will not be updated as part of your release, you do not have to specify it.

Metadata format

The metadata format for the Publish task is as follows:

$(Metadata path)
└ $(language codes)    (e.g. en-us)
  ├ baseListing
  | ├ metadata.json  OR  $(attribute).txt
  | └ images
  |   └ $(image type)    (e.g. MobileScreenshot)
  |     ├ $(image).png
  |     └ $(image).json  OR  $(attribute).$(image).txt
  └ platformOverrides  (optional)
    └ $(platform)    (e.g. Windows81)
      └ (Same structure as under 'baseListing')

Examples are available below.

If the Metadata update method parameter is set to Text Metadata, text files are expected. If it is set to JSON-formatted Metadata, then JSON files are expected. All folder and file names are case-sensitive.

If text files are expected, then there should be one text file per metadata attribute that you wish to update, and it should have the same name as the attribute in question. For string attributes, the entire file contents will be used as-is. For array attributes (e.g. keywords, hardware capabilities), each non-empty line will be considered as an element of the array.

If JSON files are expected, then each JSON file must contain an object which has the attributes that you wish to update.

Metadata from the previous submission is always preserved if it is not present in the provided folder. For example, if you do not provide a "description.txt" file in your listing, the description will remain the same as it was in the last submission.

You can find the list of accepted attributes for the language code listings here. Note that the task will automatically set the images attribute for you based on the file structure you provide, so you should not specify it as it will be overridden.

You can find the list of accepted names for platform overrides here.

In the case of images, images from the previous submission are deleted, and must therefore be supplied again. Accepted attributes for the images can be found here. Note that the task will automatically set the fileName, fileStatus, id and imageType attributes for you, so you should not specify them as they will be overridden. The imageType attribute will correspond to the name of the folder in which your image is placed. The list of accepted image types can be found here. Json file (e.g. mainScreenshot.json) is neccessarry. Empty json ({}) is minimal requirement.

The Store only supports images in png format. If you include images in any other format, they will be ignored.

Metadata structure example

Here are two examples of metadata structures, one for JSON attributes and one for text attributes.

appMetadata
├ en-us
| ├ baseListing
| | ├ metadata.json
| | └ images
| |   └ Screenshot
| |     ├ mainScreenshot.png
| |     ├ mainScreenshot.json
| |     ├ controls.png
| |     └ controls.json
| └ platformOverrides
|   └ Windows80
|     └ metadata.json
├ cs-cz
| └ platformOverrides
|   └ WindowsPhone71
|     └ images
|       └ Icon
|         ├ czIcon.png
|         └ czIcon.json
└ fr-ca
  └ baseListing
    └ metadata.json
appMetadata
├ en-us
| ├ baseListing
| | ├ description.txt
| | ├ features.txt
| | ├ keywords.txt
| | └ images
| |   └ Screenshot
| |     ├ mainScreenshot.png
| |     ├ description.mainScreenshot.txt
| |     ├ controls.png
| |     └ description.controls.txt
| └ platformOverrides
|   └ Windows80
|     ├ description.txt
|     └ releaseNotes.txt
├ cs-cz
| └ platformOverrides
|   └ WindowsPhone71
|     └ images
|       └ Icon
|         ├ czIcon.png
|         └ description.czIcon.txt
└ fr-ca
  └ baseListing
    └ features.txt

Windows Store - Flight

This task allows you to publish your app to specified flight on the Store by creating a submission on Dev Center. It has the following parameters:

Screenshot of the UI for the "Flight" task

  • Service endpoint - The endpoint containing the credentials you wish to use. Typically this will be the endpoint you created when configuring your credentials.

  • App identification method - How to identify the app to publish: by name or ID. If unsure, select "Primary name".

  • Application primary name / ID (Text, required) - The identification for the app. Depending on your selection, this should be either the app ID (visible in the URL of the app's page on Dev Center) or the app primary name (visible on the app's page on Dev Center).

  • Delete pending submissions (Checkbox) - If checked, will attempt to delete any in-progress submission before starting a new one. Note that only one submission at a time can be pending. Therefore, if this box is not checked and a submission is already pending, the task will fail. Furthermore, submissions created on the Dev Center UI cannot be deleted automatically by the task.

  • Flight name (Text, required) - Friendly name of the flight group (as seen on the Dev Center) that you want to update the submission for.

  • Package path (File path, optional) - Path to your app's main package (usually a file in .appx, .xap or .appxbundle format). Minimatch pattern is supported.

  • Additional package(s) (Text, optional) - A list of paths, one per line, of additional packages that your app needs, for example to support multiple platforms. Each individual path supports Minimatch pattern.

  • Skip polling (Checkbox) - If checked, will skip polling the submission after committing it to Dev Center. Otherwise, it will keep polling the submission till it gets published (which typically takes around 2 hours). Warning: If you check this box, you will not see errors, if any, that your submission may run into. You will have to manually check the status of your submission in Dev Center.

  • Delete Packages (Checkbox, optional) - If checked, will enable deletion of one or more old packages (sorted by version). Checking this box will enable a dropdown "Number of packages to keep" explained in following point. If not checked, will not delete any old package.

  • Number of Packages to keep (Picklist, required) - Specify number of latest packages (sorted by version) to be kept per unique target device family and target platform. For example, if you have a mix of 3 distinct packages each for Windows 10 desktop, mobile and Windows 8.1 X64 platform (so in total 9 packages), and you specify 2 in this box, then the oldest package in each group will be deleted (total packages after deletion will be 6).

You only have to select the packages you want to update. If you have a package that will not be updated as part of your release, you do not have to specify it. You have to specify at least one package.

Contact us

If you have questions, send us an email here.

Click here to report a bug or make a suggestion.

windows-dev-center-vsts-extension's People

Contributors

elendil326 avatar kp101090 avatar lafrancef avatar louis-wuitton avatar microsoft-github-policy-service[bot] avatar msftgits avatar tesar-tech avatar zurdev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

windows-dev-center-vsts-extension's Issues

Error: Service Connection Authorization cannot be null

After completing the Add Windows Dev Center [sic] service connection in Azure Dev Ops, I'm presented with the unhelpful error: Error: Service Connection Authorization cannot be null

Fiddler shows:

{
  "$id": "1",
  "innerException": null,
  "message": "Service Connection Authorization cannot be null.",
  "typeName": "Microsoft.VisualStudio.Services.ServiceEndpoints.WebApi.ServiceEndpointException, Microsoft.VisualStudio.Services.ServiceEndpoints.WebApi",
  "typeKey": "ServiceEndpointException",
  "errorCode": 0,
  "eventId": 3000
}

Related: #76

Missing live log

Currently, the log goes to the debug stream, and it is not visible in the live logging view while the release is in progress. For most of the logging, that is fine, but there are key things that would be useful to know while the release is on-going. Key things to log in live logging:

  • Getting authentication token
  • Creating submission
  • Updating submission
  • Uploading files
  • Committing submission
  • Status when polling.

Problem uploading packages to flight

I am having problems deploying to a flight and there is no error message, I include the log from the build agent.

2016-12-02T02:48:12.0007088Z Authenticating...
 
2016-12-02T02:48:12.0032084Z Authenticating with server...
 
2016-12-02T02:48:12.8467068Z Obtaining app ID for name Parcero...
 
2016-12-02T02:48:12.8492044Z ##[debug]	Searching for app Parcero on applications
 
2016-12-02T02:48:15.6152133Z ##[debug]App found with 9NBLGGH3TGF8
 
2016-12-02T02:48:15.6172064Z Obtaining flight resource for flight Alpha in app 9NBLGGH3TGF8
 
2016-12-02T02:48:15.6192077Z ##[debug]	Searching for flight Alpha on applications/9NBLGGH3TGF8/listflights
 
2016-12-02T02:48:18.0372034Z ##[debug]Flight found with ID c6c6b9af-7166-4e78-b667-f38fe9643834
 
2016-12-02T02:48:18.0382076Z Creating flight submission...
 
2016-12-02T02:48:18.0397071Z ##[debug]Creating new submission
 
2016-12-02T02:48:20.4087081Z Updating flight submission...
 
2016-12-02T02:48:20.4102086Z ##[debug]Adding 2 package(s)
 
2016-12-02T02:48:20.4122099Z ##[debug]Updating submission
 
2016-12-02T02:48:20.4137063Z ##[debug]Performing update
 
2016-12-02T02:48:21.9712082Z Creating zip file...
 
2016-12-02T02:48:21.9732059Z ##[debug]Creating zip file
 
2016-12-02T02:48:21.9757076Z ##[debug]Adding package path c:/VsBuildAgentWork/dbae72a8c/drop_win/Parcero.WinStore_1.6.24.0_x86_bundle.appxupload to zip as 0_Parcero.WinStore_1.6.24.0_x86_bundle.appxupload
 
2016-12-02T02:48:21.9852098Z ##[debug]Adding package path c:/VsBuildAgentWork/dbae72a8c/drop_win/Parcero.WinStore.WindowsPhone_1.6.24.0_ARM_bundle.appxupload to zip as 1_Parcero.WinStore.WindowsPhone_1.6.24.0_ARM_bundle.appxupload
 
2016-12-02T02:48:31.1347119Z Uploading zip file...
 
2016-12-02T02:48:31.1367086Z ##[debug]Uploading zip file to https://prodingestionbinaries1.blob.core.windows.net/ingestion/9a269314-daa3-4ca4-9f34-a5c7e19a1408?sv=2015-07-08&sr=b&sig=M2geqx26xOChg+q7TA8A79bFSJGAYUP4/M7JLeZlMz4=&se=2016-12-03T03:03:21Z&sp=rwl
 
2016-12-02T02:51:20.0807867Z Failed to upload file! Error = {error}
 
2016-12-02T02:51:20.0867872Z ##[debug]task result: Failed
 
2016-12-02T02:51:20.1147791Z ##[error]Failed to upload file! Error = {error}
 
2016-12-02T02:51:55.7984003Z Finishing task: store-flight
 
2016-12-02T02:51:55.8238999Z ##[error]System.Exception: Task store-flight failed. This caused the job to fail. Look at the logs for the task for more details.
 
2016-12-02T02:51:55.8258986Z ##[error]   at Microsoft.TeamFoundation.DistributedTask.Worker.JobRunner.Run(IJobContext jobContext, IJobRequest job, IJobExtension jobExtension, CancellationTokenSource tokenSource)
 

Support wildcards in package path

Hi I need to specify a wild card path like "drop*.appxupload" because in my app names I include version number and build numbers.

Thx
Erik

Add option to disable automatic submission to certification

Hi
Would be possible to add a new option to disable the automatic submission to certification?
It would be interesting for cases where it needs a manual metadata update before submitting it to the store.

In this case, the task only needs to upload the packages to the submission in progress (or create a new one) and finalize if the upload was successful.

Thanks,
Jose.

Status is stuck on 'In progress via API'

I have updated my app's screenshot image(s) in 4 different languages.

The log shows I have successfully uploaded the zip, but even after 24 hours my submission status is "In progress via API" in the Dashboard. If I view the submission, everything is marked as Unchanged.

I appreciate any assistance on this.

Can the Task use the actual names of the properties?

Right now the Task uses one of two properties to identify the package.
"Application Id"
and
"Package Name"

The "Application Id" is not the application id but is instead the Store Id (or Big Id).
The Package Name is not the Package Name, and I don't know what it is. Trying to use the Package Name returns 403. (I thought it might the Package Family Name, which is different, but didn't get a chance to try it.)

Can these names be changed to what they actually are, and perhaps some kind of tooltip or information added as to where we can find these properties?

Oh also, 403 seems like the wrong error code to return if you screw up the ID of the package. The correct code for when you cannot find a resource is 404. I assume 403 is given because I do not have permissions to "create" an otherwise "uknown" package. At any rate, given the actual solution to the problem (correcting the ID) - 404 is significantly more clear. Or at the very least, a 403 with an explanation that the package cannot be identified.

Option for waiting to Finish the Submission

Hi,

The waiting for processing the publish in the windows store can take a long time. Can you provide an option so that the task finished after commiting this submission and not to wait until the whole process is finished? Like "Fire and Forget".

I my case I upload to Apple and Play Store too. If I have to wait on all of this stores my build will run too long.

Thanks
Erik

Won't upload StoreLogo9x16 image

So. I set up pipeline and almost everything works just fine, screenshots upload included.

I need to also update StoreLogo9x16 image, but it won't appear in a store submission.

This is folder structure I tried (see attempt 1 and attempt 2):

appMetadata
\---en-us
    \---baseListing
        |   metadata.json
        |
        \---images
            |   StoreLogo9x16.png //attempt 1
            |
            +---Screenshot
            |       screenshot01.metadata.json
            |       screenshot01.png
            |       screenshot02.metadata.json
            |       screenshot02.png
            |
            \---StoreLogo9x16
                    StoreLogo9x16.png //attempt 2

I also tried adding json metadata file. But without success.
Am I doing something wrong here?

You can see the project here: https://github.com/tesar-tech/StoreUp/tree/master/NoApp/Store/appMetadata/en-us/baseListing

Active Directory Install Setup Docs Confusing?!

The documentation for installing Active Directory and getting the Client ID & Secret is very confusing.

I have added a new AD created from this documentation
https://docs.microsoft.com/en-gb/windows/uwp/publish/associate-azure-ad-with-partner-center#create-a-brand-new-azure-ad-to-associate-with-your-partner-center-account

I have associated the new Active Directory in Windows Partner Center & also inside Azure DevOps.

I have no idea how to find out these details to configure the connection in Azure DevOps.
Can you point me in the right direction on how to find this information, as I imagine the UI of the sites may have changed since the original documentation was written.

I have found this page in the MS DevCenter portal about adding a New Azure AD Application but again I have no idea on what the Reply URL would be here?!

image

No longer work

It fails with the following error:

Status 401: {"error":"invalid_client","error_description":"AADSTS70002: Error validating credentials. AADSTS50012: Invalid client secret is provided.\r\nTrace ID: ea6e48c7-6985-4e5f-9c06-58120cb10200\r\nCorrelation ID: 9594e0dd-1da8-40cc-8523-01b8427ba360\r\nTimestamp: 2018-11-16 18:53:43Z","error_codes":[70002,50012],"timestamp":"2018-11-16 18:53:43Z","trace_id":"ea6e48c7-6985-4e5f-9c06-58120cb10200","correlation_id":"9594e0dd-1da8-40cc-8523-01b8427ba360"}

It worked perfectly in my previous release on 6/29/2018. (I did not make any change to the service connection.) Updating the service connection doesn't make it work. Could it be related to Microsoft migration to Azure?

Pushing packages to Test Flight fails

I am trying to push a package to Test Flight but keep getting the same error no matter what I try.

The error is:

Obtaining flight resource for flight MyApp Test in app undefined
2017-08-03T14:59:15.2069903Z ##[error]Status 400: {"code":"InvalidParameterValue","data":[],"details":[],"message":"The parameter value is invalid","source":"Ingestion Api","target":"authorization"}

I cannot work out what this error means in plain english so I am stabbing in the dark a bit on it.

More info from the Log on the agent:

[2017-08-03 14:59:11Z INFO StepsRunner] Processing step: DisplayName='Flight $(SYSTEM.ARTIFACTSDIRECTORY)***.appxupload to MyApp Test', ContinueOnError=False, Enabled=True
[2017-08-03 14:59:11Z INFO ExpressionManager] Evaluating: succeeded()
[2017-08-03 14:59:11Z INFO ExpressionManager] Expanded: True
[2017-08-03 14:59:11Z INFO ExpressionManager] Result: True
[2017-08-03 14:59:11Z INFO StepsRunner] Starting the step.
[2017-08-03 14:59:11Z INFO TaskManager] Loading task definition 'C:\agent_work_tasks\store-flight_13dee6a7-3698-4b12-bbb4-b393560a3ebc\0.2.12\task.json'.
[2017-08-03 14:59:11Z ERR TaskRunner] System.ArgumentException: Illegal characters in path.
Parameter name: path
at System.IO.Path.GetFullPath(String path)
at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.TranslateFilePathInput(String inputValue)

Submission fails with invalid AllowTargetFutureDeviceFamilies

When submitting my app to the Window Store using the VSTS extension, the store returns a 400 error with the following message, after the "Updating submission..." step: "AllowTargetFutureDeviceFamilies was not updated with all supported platform(s): [Desktop, Mobile, Xbox, Holographic]". Can you suggest steps we can take to fix this?

Create Submission with new package but don't commit it

Hi all,

We would like to automate the process of deploying our UWP app to the Windows App Store

Our workflow is that the app developers build the new package for release to the Windows App Store, creates the new Submission, and uploads the new package. The marketing team then takes over and manually completes the information in the submission RE: pricing, availability, store listing, etc. and then commits that Submission.

This extension appears to expect that the Submission metadata will be provided as JSON committed to the Git Repo. This would mess up our workflow as the marketing team will not be able to cope.

It would be good if the extension to allowed us to create the submission but don't commit it.

Release Task to create Flight Subission fails with Status: 404

I'm encountering an error issue when attempting to create a Flight Submission.

Steps up to this point:

  1. Manually published an app with visibility hidden
  2. Used PowerShell StoreBroker to create Flight Resource named "Insiders"
  3. Using Azure DevOps Task Windows Store - Flight results in unexpected error. Expected the task would publish the flighted build.

From the logs:

2019-10-12T21:17:55.4807086Z Authenticating...
2019-10-12T21:17:55.4808771Z Authenticating with server...
2019-10-12T21:17:55.6233622Z Obtaining app information...
2019-10-12T21:17:58.5499366Z Obtaining flight resource for flight Insiders in app <idRemoved>
2019-10-12T21:18:01.4889998Z Deleting existing flight submission...
2019-10-12T21:18:07.2584436Z Creating flight submission...
2019-10-12T21:18:09.1477162Z ##[error]Status 404:  CorrelationId: 0dc9bb0b-f974-4888-bec5-808122358af8

Originally posted by @W0GER in #73 (comment) Moved this over to it's own issue as author of issue 73 stated this wasn't the same issue.

UnknownInternalFailure

My submissions fail with

2019-01-08T06:07:52.4899319Z 68e5ca97-05bb-4771-8a2d-e82eb933d07c exists true
2019-01-08T06:07:52.4903891Z Authenticating...
2019-01-08T06:07:52.4904119Z Authenticating with server...
2019-01-08T06:07:52.8102996Z Obtaining app information...
2019-01-08T06:07:54.8924745Z Creating submission...
2019-01-08T06:07:55.5173739Z ##[error]Status 500: {"code":"InternalServerError","data":[],"details":[],"innererror":{"code":"UnknownInternalFailure","data":[],"details":[],"message":"The service has encountered an unknown internal server error: "},"message":"An internal server error occurred while processing the operation.","source":"Ingestion Api"} CorrelationId: d5a58222-70a2-4739-b8fc-9711d8b15581

How can I diagnose this issue?

You have too many Windows Phone 8.1 packages for this app

I'm not able to deploy a Windows Phone 8.1 app to the store.
Task Version: 0.7.996

2016-11-01T18:43:56.1675363Z ##[section]Starting: Publish $(System.DefaultWorkingDirectory)/BUILD_CI/drop/xxxx/AppPackages/xxxxx_*_ARM.appxupload 2016-11-01T18:43:56.2137084Z ============================================================================== 2016-11-01T18:43:56.2137084Z Task : Windows Store - Publish 2016-11-01T18:43:56.2137084Z Description : Publish your app to the Windows Store 2016-11-01T18:43:56.2137084Z Version : 0.7.996 2016-11-01T18:43:56.2137084Z Author : Microsoft Corporation 2016-11-01T18:43:56.2137084Z Help : 2016-11-01T18:43:56.2137084Z ============================================================================== 2016-11-01T18:43:58.0700046Z bd178ce2-b641-421e-b068-21b679b9b821 exists true 2016-11-01T18:43:58.0800039Z Authenticating... 2016-11-01T18:43:58.0800039Z Authenticating with server... 2016-11-01T18:43:58.2868849Z Obtaining app information... 2016-11-01T18:43:59.0326803Z Creating submission... 2016-11-01T18:44:08.0828718Z Updating submission... 2016-11-01T18:44:09.4300151Z Creating zip file... 2016-11-01T18:44:09.4450083Z Uploading zip file... 2016-11-01T18:44:09.6660078Z Uploading block 0 (ID MWE2NzlkNmYwNzVhNDVlZDhkNzk0ODdmOGJlZTc4NTctMDAwMDAw) 2016-11-01T18:44:09.8410170Z Uploading block 1 (ID MWE2NzlkNmYwNzVhNDVlZDhkNzk0ODdmOGJlZTc4NTctMDAwMDAx) 2016-11-01T18:44:09.8770182Z Uploading block 2 (ID MWE2NzlkNmYwNzVhNDVlZDhkNzk0ODdmOGJlZTc4NTctMDAwMDAy) 2016-11-01T18:44:09.9770084Z ... All blocks uploaded. 2016-11-01T18:44:10.0070081Z Committing submission... 2016-11-01T18:44:13.1564604Z Polling submission... 2016-11-01T18:44:14.1428773Z Submission 1152921504625903234 status for App 9NBLGGH439LM: CommitStarted 2016-11-01T18:44:25.1474328Z Submission 1152921504625903234 status for App 9NBLGGH439LM: CommitStarted 2016-11-01T18:44:37.2208378Z Submission 1152921504625903234 status for App 9NBLGGH439LM: CommitStarted 2016-11-01T18:44:48.0818150Z Submission 1152921504625903234 status for App 9NBLGGH439LM: CommitStarted 2016-11-01T18:45:00.2512600Z Submission 1152921504625903234 status for App 9NBLGGH439LM: CommitStarted 2016-11-01T18:45:11.1125229Z Submission 1152921504625903234 status for App 9NBLGGH439LM: CommitStarted 2016-11-01T18:45:23.1545579Z ##[error]Submission 1152921504625903234 status for App 9NBLGGH439LM: failed with CommitFailed 2016-11-01T18:45:23.1545579Z ##[error]Reported errors: 2016-11-01T18:45:23.1545579Z ##[error] InvalidParameterValue: You have too many Windows Phone 8.1 packages for this app. For .appx or .appxbundle package types, you can only submit one package. For .xap, you can submit more than one, but you can't include multiple package types. 2016-11-01T18:45:23.1595572Z ##[error] InvalidParameterValue: You’ve uploaded another package with the same properties as this one. When this submission is published, the other package will replace this one. 2016-11-01T18:45:23.1605577Z ##[error]Error: Commit failed 2016-11-01T18:45:23.1605577Z at C:\a\_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.7.996\publish.js:605:19 2016-11-01T18:45:23.1605577Z at _fulfilled (C:\a\_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.7.996\node_modules\q\q.js:834:54) 2016-11-01T18:45:23.1605577Z at self.promiseDispatch.done (C:\a\_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.7.996\node_modules\q\q.js:863:30) 2016-11-01T18:45:23.1605577Z at Promise.promise.promiseDispatch (C:\a\_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.7.996\node_modules\q\q.js:796:13) 2016-11-01T18:45:23.1605577Z at C:\a\_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.7.996\node_modules\q\q.js:604:44 2016-11-01T18:45:23.1605577Z at runSingle (C:\a\_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.7.996\node_modules\q\q.js:137:13) 2016-11-01T18:45:23.1605577Z at flush (C:\a\_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.7.996\node_modules\q\q.js:125:13) 2016-11-01T18:45:23.1605577Z at _combinedTickCallback (internal/process/next_tick.js:67:7) 2016-11-01T18:45:23.1605577Z at process._tickCallback (internal/process/next_tick.js:98:9) 2016-11-01T18:45:23.1615578Z ##[error]Error: Commit failed 2016-11-01T18:45:23.1685579Z ##[section]Finishing: Publish $(System.DefaultWorkingDirectory)/BUILD_CI/drop/xxxx/AppPackages/xxxxx_*_ARM.appxupload

image

This creates the new Submission on the store, but it does not delete/replace the old package, as I expect for a Windows Phone 8.1 App.

Is this scenario supposed to work? If so, is there a workaround? I'm ore than available to provide additional feedback.

Publish task checks for Metadata directory even when 'No update' is selected

  1. Create a Windows Store - Publish task
  2. Set Metadata update method to Text Metadata
  3. Enter Metadata root folder
  4. Save
  5. In a release for this task, go to Environments -> YourTask
  6. On the right hand side, where you can modify the task before deploying change Metadata update method to "No update"
  7. Ensure the metadata folder doesn't exist (e.g. if you have a build version in the path and you haven't created metadata for that build version)
  8. Deploy the publish task

Result:
Deployment fails because metadata directory doesn't exist

Expected:
Don't check if the directory exists because it's not relevant. Also, this path is hidden in my task editor UI so it's very confusing where the task is getting this path from.

Logs:

2017-11-07T16:55:56.8654258Z ##[debug]metadataUpdateMethod=NoUpdate
...
2017-11-07T16:55:56.8654258Z ##[debug]metadataPath=\\ocentral\teams\XXXXXXX\Windows\releases\BUILDVERSION\Metadata\
2017-11-07T16:55:56.8654258Z ##[debug]check path : \\ocentral\teams\XXXXXXX\Windows\releases\BUILDVERSION\Metadata\
2017-11-07T16:55:57.0529498Z ##[error]Error: Not found metadataPath: \\ocentral\teams\XXXXXXX\Windows\releases\BUILDVERSION\Metadata\
2017-11-07T16:55:57.0685395Z ##[debug]Processed: ##vso[task.issue type=error;]Error: Not found metadataPath: \\ocentral\teams\XXXXXXX\Windows\releases\BUILDVERSION\Metadata\
2017-11-07T16:55:57.0685395Z     at checkPath (E:\_work\_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.10.16\node_modules\vsts-task-lib\task.js:645:15)
2017-11-07T16:55:57.0685395Z     at Object.getPathInput (E:\_work\_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.10.16\node_modules\vsts-task-lib\task.js:438:13)
2017-11-07T16:55:57.0685395Z     at gatherParams (E:\_work\_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.10.16\local\publishUi.js:69:63)
2017-11-07T16:55:57.0685395Z     at E:\_work\_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.10.16\local\publishUi.js:95:30
2017-11-07T16:55:57.0685395Z     at next (native)
2017-11-07T16:55:57.0685395Z     at E:\_work\_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.10.16\local\publishUi.js:10:65
2017-11-07T16:55:57.0685395Z     at __awaiter (E:\_work\_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.10.16\local\publishUi.js:6:12)
2017-11-07T16:55:57.0685395Z     at main (E:\_work\_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.10.16\local\publishUi.js:93:12)
2017-11-07T16:55:57.0685395Z     at Object.<anonymous> (E:\_work\_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.10.16\local\publishUi.js:108:1)
2017-11-07T16:55:57.0685395Z     at Module._compile (module.js:570:32)

It looks like if before changing the metadata option to "No update" I clear the metadata path, this problem doesn't happen. I'm guessing the bug is you have

if (!string.IsNullOrWhitespace(metadataPath))
{
    // Check path exists
}

but should have

if (metadataMethod != NoUpdate && !string.IsNullOrWhitespace(metadataPath))
{
    // Check path exists
}

Either that, or the editor should remove the content of the Metadata root folder field when it hides the field.

I haven't tested saving the task directly in the main editor, it may have the same issue.

Submission takes about 12-16 hours to reflect the changes made by the Build Task

It takes a long time till the Submission is submitted:

After the build task runs, it takes about 12 to 16 hours to see the changes it should have made to the new submission and to finally submit it. In July it did not take so long. Manuell Submissions can be submitted instantly.

Here are my Settings:

image

This is the resulting Submission:

you can see that it is not submitted because the button is still active and the package should be 3.5.4 but is still the old 3.4.5:
image

The resulting Submission the next day:

image

Log File:

Here is the log file with debug enabled, I censored some ids just to be save.

2018-08-22T12:59:26.9353672Z ##[debug]Evaluating condition for step: 'Publish $(System.ArtifactsDirectory)\**\Test\*.appxupload'
2018-08-22T12:59:26.9356059Z ##[debug]Evaluating: succeeded()
2018-08-22T12:59:26.9356675Z ##[debug]Evaluating succeeded:
2018-08-22T12:59:26.9357573Z ##[debug]=> True
2018-08-22T12:59:26.9358358Z ##[debug]Result: True
2018-08-22T12:59:26.9359282Z ##[section]Starting: Publish $(System.ArtifactsDirectory)\**\Test\*.appxupload
2018-08-22T12:59:26.9367443Z ==============================================================================
2018-08-22T12:59:26.9367951Z Task         : Windows Store - Publish
2018-08-22T12:59:26.9368295Z Description  : Publish your app to the Windows Store
2018-08-22T12:59:26.9368593Z Version      : 0.10.25
2018-08-22T12:59:26.9369003Z Author       : Microsoft Corporation
2018-08-22T12:59:26.9369265Z Help         : 
2018-08-22T12:59:26.9369645Z ==============================================================================
2018-08-22T12:59:27.3877701Z ##[debug]agent.workFolder=C:\Tools\agent2\_work
2018-08-22T12:59:27.3983288Z ##[debug]loading inputs and endpoints
2018-08-22T12:59:27.3995760Z ##[debug]loading ENDPOINT_AUTH_384*******352
2018-08-22T12:59:27.4015412Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_384*******352_SERVICEPRINCIPALID
2018-08-22T12:59:27.4019729Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_384*******352_SERVICEPRINCIPALKEY
2018-08-22T12:59:27.4023178Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_384*******352_TENANTID
2018-08-22T12:59:27.4026278Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_384*******352_URL
2018-08-22T12:59:27.4029460Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2018-08-22T12:59:27.4034490Z ##[debug]loading ENDPOINT_AUTH_SCHEME_384*******352
2018-08-22T12:59:27.4037677Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2018-08-22T12:59:27.4040752Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2018-08-22T12:59:27.4044185Z ##[debug]loading INPUT_APPID
2018-08-22T12:59:27.4050524Z ##[debug]loading INPUT_DELETEPACKAGES
2018-08-22T12:59:27.4055446Z ##[debug]loading INPUT_FORCE
2018-08-22T12:59:27.4058772Z ##[debug]loading INPUT_ISMANDATORYUPDATE
2018-08-22T12:59:27.4063756Z ##[debug]loading INPUT_MANDATORYUPDATEDIFFERHOURS
2018-08-22T12:59:27.4068277Z ##[debug]loading INPUT_METADATAPATH
2018-08-22T12:59:27.4071239Z ##[debug]loading INPUT_METADATAUPDATEMETHOD
2018-08-22T12:59:27.4074205Z ##[debug]loading INPUT_NAMETYPE
2018-08-22T12:59:27.4077346Z ##[debug]loading INPUT_NUMBEROFPACKAGESTOKEEP
2018-08-22T12:59:27.4083290Z ##[debug]loading INPUT_PACKAGEPATH
2018-08-22T12:59:27.4086991Z ##[debug]loading INPUT_SERVICEENDPOINT
2018-08-22T12:59:27.4089952Z ##[debug]loading INPUT_SKIPPOLLING
2018-08-22T12:59:27.4094653Z ##[debug]loading INPUT_UPDATEIMAGES
2018-08-22T12:59:27.4103841Z ##[debug]loaded 22
2018-08-22T12:59:28.3245917Z ##[debug]serviceEndpoint=384*******352
2018-08-22T12:59:28.3270261Z 384*******352 exists true
2018-08-22T12:59:28.3270928Z ##[debug]384*******352 exists true
2018-08-22T12:59:28.3276892Z ##[debug]force=true
2018-08-22T12:59:28.3279432Z ##[debug]metadataUpdateMethod=NoUpdate
2018-08-22T12:59:28.3282563Z ##[debug]updateImages=false
2018-08-22T12:59:28.3283436Z ##[debug]Agent.WorkFolder=C:\Tools\agent2\_work
2018-08-22T12:59:28.3286536Z ##[debug]skipPolling=true
2018-08-22T12:59:28.3290288Z ##[debug]deletePackages=true
2018-08-22T12:59:28.3301384Z ##[debug]numberOfPackagesToKeep=0
2018-08-22T12:59:28.3305172Z ##[debug]isMandatoryUpdate=false
2018-08-22T12:59:28.3308955Z ##[debug]packagePath=C:\Tools\agent2\_work\r11\a\**\Test\*.appxupload
2018-08-22T12:59:28.3312527Z ##[debug]Agent.ReleaseDirectory=C:\Tools\agent2\_work\r11\a
2018-08-22T12:59:28.3315304Z ##[debug]packagePath=C:\Tools\agent2\_work\r11\a\**\Test\*.appxupload
2018-08-22T12:59:28.4129273Z ##[debug]additionalPackages=null
2018-08-22T12:59:28.4133507Z ##[debug]nameType=AppId
2018-08-22T12:59:28.4136125Z ##[debug]appId=9NB***4M3
2018-08-22T12:59:28.4139676Z ##[debug]metadataPath=C:\Tools\agent2\_work\r11\a
2018-08-22T12:59:28.4150655Z ##[debug]App ID: 9NB***4M3
2018-08-22T12:59:28.4151353Z ##[debug]Endpoint: ***
2018-08-22T12:59:28.4151794Z ##[debug]Force delete: true
2018-08-22T12:59:28.4152236Z ##[debug]Metadata update type: 0
2018-08-22T12:59:28.4152708Z ##[debug]Update images: false
2018-08-22T12:59:28.4153196Z ##[debug]Metadata root: C:\Tools\agent2\_work\r11\a
2018-08-22T12:59:28.4153796Z ##[debug]Packages: C:/Tools/agent2/_work/r11/a/Reporting App UWP Master/Reporting App/3.5.4.0/Test/Freier.App.Reporting_3.5.4.0_x86_x64_bundle_Test.appxupload
2018-08-22T12:59:28.4154381Z ##[debug]skipPolling: true
2018-08-22T12:59:28.4154848Z ##[debug]deletePackages: false
2018-08-22T12:59:28.4155705Z ##[debug]numberOfPackagesToKeep: 0
2018-08-22T12:59:28.4156465Z ##[debug]isMandatoryUpdate: false
2018-08-22T12:59:28.4156978Z ##[debug]mandatoryUpdateDifferHours: null
2018-08-22T12:59:28.4166412Z Authenticating...
2018-08-22T12:59:28.4168444Z Authenticating with server...
2018-08-22T12:59:28.4179377Z ##[debug]Starting request with correlation id: eb5aad6*******bbc408
2018-08-22T12:59:28.7175320Z ##[debug]Finished request with correlation id: eb5aad6*******bbc408
2018-08-22T12:59:28.7186258Z Obtaining app information...
2018-08-22T12:59:28.7190369Z ##[debug]Getting app resource from ID 9NB***4M3
2018-08-22T12:59:28.7203159Z ##[debug]Starting request with correlation id: 48a15*****1a50
2018-08-22T12:59:35.0023746Z ##[debug]Finished request with correlation id: 48a15*****1a50
2018-08-22T12:59:35.0024531Z Deleting existing submission...
2018-08-22T12:59:35.0028457Z ##[debug]Deleting submission at ***/v1.0/my/applications/9NB***4M3/submissions/11****784
2018-08-22T12:59:35.0031568Z ##[debug]Starting request with correlation id: f6fbe7******dc102b98
2018-08-22T12:59:42.5568149Z ##[debug]Finished request with correlation id: f6fbe7******dc102b98
2018-08-22T12:59:42.5568719Z Creating submission...
2018-08-22T12:59:42.5570315Z ##[debug]Creating new submission
2018-08-22T12:59:42.5573913Z ##[debug]Starting request with correlation id: fe3822e0*****4cf0e520
2018-08-22T13:01:01.2793801Z ##[debug]Warnings occurred in request
2018-08-22T13:01:01.2795726Z ##[debug]	[SalesUnsupportedWarning]  The sales resource is no longer supported. To view or edit the sales data for this submission, use the Dev Center dashboard.
2018-08-22T13:01:01.2796983Z ##[debug]CorrelationId: f285b0*****370333799
2018-08-22T13:01:01.2797856Z ##[debug]Finished request with correlation id: fe3822e0*****4cf0e520
2018-08-22T13:01:01.2798385Z Submission https://developer.microsoft.com/en-us/dashboard/apps/9NB***4M3/submissions/1152*****8796 was created successfully
2018-08-22T13:01:01.2798826Z Deleting old packages...
2018-08-22T13:01:01.2823657Z ##[debug]Removing 3.4.5.0
2018-08-22T13:01:01.2824058Z Updating package delivery options...
2018-08-22T13:01:01.2826634Z ##[debug]Setting isMandatoryUpdate to false
2018-08-22T13:01:01.2829914Z Updating submission...
2018-08-22T13:01:01.2833070Z ##[debug]Adding metadata for new submission 1152*****8796
2018-08-22T13:01:01.2838593Z ##[debug]Adding 1 package(s)
2018-08-22T13:01:01.2847062Z ##[debug]Updating submission
2018-08-22T13:01:01.2854740Z ##[debug]Starting request with correlation id: 586b17****0daa9
2018-08-22T13:01:18.4501223Z ##[debug]Finished request with correlation id: 586b17****0daa9
2018-08-22T13:01:18.4502860Z Creating zip file...
2018-08-22T13:01:18.4505580Z ##[debug]Creating zip file
2018-08-22T13:01:18.4512381Z ##[debug]Adding package path C:/Tools/agent2/_work/r11/a/Reporting App UWP Master/Reporting App/3.5.4.0/Test/Freier.App.Reporting_3.5.4.0_x86_x64_bundle_Test.appxupload to zip as 0_Freier.App.Reporting_3.5.4.0_x86_x64_bundle_Test.appxupload
2018-08-22T13:01:18.4542961Z ##[debug]Checking for new images in listing de...
2018-08-22T13:01:18.4545291Z ##[debug]Checking for new images in listing en...
2018-08-22T13:01:24.6210501Z Uploading zip file...
2018-08-22T13:01:24.6216866Z ##[debug]Uploading zip file to https://ingestionpackagesprod1.blob.core.windows.net/ingestion/b5274****33239d?sv=2017-04-17&sr=b&sig=yayh***dqjpi84L%2BSTHjWpb55txbM%2BORHmGjs4KoT%2BE%3D&se=2018-08-23T13:15:49Z&sp=rwl
2018-08-22T13:01:30.1233012Z Successfully uploaded file!
2018-08-22T13:01:30.1237447Z Committing submission...
2018-08-22T13:01:30.1243904Z ##[debug]Committing submission
2018-08-22T13:01:30.1278148Z ##[debug]Starting request with correlation id: e3e8****43c15f
2018-08-22T13:01:42.3781302Z ##[debug]Finished request with correlation id: e3e8****43c15f
2018-08-22T13:01:42.3781892Z Skip polling option is checked. Skipping polling...
2018-08-22T13:01:42.3782442Z Click here https://developer.microsoft.com/en-us/dashboard/apps/9NB***4M3/submissions/1152*****8796 to check the status of the submission in Dev Center
2018-08-22T13:01:42.3786481Z ##[debug]System.DefaultWorkingDirectory=C:\Tools\agent2\_work\r11\a
2018-08-22T13:01:42.3928514Z ##[debug]Processed: ##vso[task.addattachment type=Distributedtask.Core.Summary;name=DevCenter;]C:\Tools\agent2\_work\r11\a\DevCenter.md
2018-08-22T13:01:42.3929915Z ##[debug]task result: Succeeded
2018-08-22T13:01:42.3932132Z ##[debug]Processed: ##vso[task.complete result=Succeeded;]Submission completed
2018-08-22T13:01:42.4212219Z ##[section]Finishing: Publish $(System.ArtifactsDirectory)\**\Test\*.appxupload

If you need any further Information I will be happy to provide it.

Greetings Gary

Cannot create flight package

I'm experiencing a strange behavior:

I'm trying to set up publishing a flight package through VSTS. Connection, Authentification etc works fine.

In the Field "Flight name" I am entering a flight name like I would do in Dev Center "Package flight name".

When I now trigger a publish, VSTS shows error message: "No flight with name 3.3.0".

I then thought because of this this statement in docu: "This task allows you to publish your app to specified flight on the Store by creating a submission on Dev Center" that i have to create the flight package in Dev Center prior to publishing through VSTS.
Error message now is: "Ingestion API can only update, delete, and commit submissions that are created through the API. Please delete the current in-progress submission and create one using the API"

I'm now somewhat lost, I can't create a flight, but I can also not publish to a previously created flight.

Furthermore, there is this line in Documentation:
"Flight name (Text, required) - Friendly name of the flight group (as seen on the Dev Center) that you want to update the submission for."

OK, Flight Group... I tried to put the name of the group of testers ("Testers") as defined in Dev Center into the field "Flight name", but that leads again to Error: "No flight with name Testers"

Please help!

Best Regards
Torsten

Can the extension support asynchronous submissions, or return earlier?

Here's the problem: Once submitted, the app can sit "in certification" in the Windows Store anything from 1 to 72 hours to approve a build. The binaries are uploaded to the store fairly quickly, and then the windows-dev-center-vsts-extension just waits for the Store to move to the "publishing" phase. If the app sits a long time "in certification," our build server is locked up the whole time and is unable to do anything else. In these situations, we have to Cancel the release to unblock the build server. Even though we are only submitting to our Alpha flight and not releasing to the public, the Windows Store approval workflow doesn't seem to care and could take days to approve the submission.

Can the extension be asynchronous? Or can it return once the submission is complete, and not wait until the "publishing" phase?

There was a similar issue here - but that seems to have been sparked during a slow phase on the Store.

Error while providing metadata in text format

My app started supporting four languages in the latest release (en-US, es-ES, fr-FR and pt-PT), but when I try to upload the metadata as .txt files I keep getting the following error:

Status 400: {"code":"InvalidParameterValue","data":[],"details":[],"message":"Language is listed more than once: en-us","source":"Ingestion Api","target":"languageCode"}

However I have enabled System.Debug in the VSTS task and it seems to be packaging everything correctly:

2020-06-03T02:37:52.2965673Z ##[debug]Adding metadata for new submission 1152921505690232760
2020-06-03T02:37:52.2967653Z ##[debug]Updating metadata of submission object from directory d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata
2020-06-03T02:37:52.2970858Z ##[debug]Obtaining metadata for language en-US
2020-06-03T02:37:52.2980145Z ##[debug]Obtaining base listing
2020-06-03T02:37:52.2990777Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\description.txt
2020-06-03T02:37:52.2993417Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\features.txt
2020-06-03T02:37:52.2996389Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\keywords.txt
2020-06-03T02:37:52.2997977Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\releaseNotes.txt
2020-06-03T02:37:52.2999514Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\shortDescription.txt
2020-06-03T02:37:52.3000563Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\title.txt
2020-06-03T02:37:52.3006978Z ##[debug]Obtaining images for language en-US
2020-06-03T02:37:52.3007867Z ##[debug]Updating images from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US
2020-06-03T02:37:52.3085135Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\images\Screenshot\Screenshot1 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\images\Screenshot\description.Screenshot1.txt
2020-06-03T02:37:52.3087045Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\images\Screenshot\Screenshot2 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\images\Screenshot\description.Screenshot2.txt
2020-06-03T02:37:52.3090989Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\images\Screenshot\Screenshot3 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\en-US\baseListing\images\Screenshot\description.Screenshot3.txt
2020-06-03T02:37:52.3092048Z ##[debug]Obtaining metadata for language es-ES
2020-06-03T02:37:52.3092876Z ##[debug]Obtaining base listing
2020-06-03T02:37:52.3096090Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\description.txt
2020-06-03T02:37:52.3097073Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\features.txt
2020-06-03T02:37:52.3098357Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\keywords.txt
2020-06-03T02:37:52.3104410Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\releaseNotes.txt
2020-06-03T02:37:52.3105487Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\shortDescription.txt
2020-06-03T02:37:52.3106454Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\title.txt
2020-06-03T02:37:52.3107403Z ##[debug]Obtaining images for language es-ES
2020-06-03T02:37:52.3108107Z ##[debug]Updating images from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES
2020-06-03T02:37:52.3117549Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\images\Screenshot\Screenshot1 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\images\Screenshot\description.Screenshot1.txt
2020-06-03T02:37:52.3128192Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\images\Screenshot\Screenshot2 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\images\Screenshot\description.Screenshot2.txt
2020-06-03T02:37:52.3140110Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\images\Screenshot\Screenshot3 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\es-ES\baseListing\images\Screenshot\description.Screenshot3.txt
2020-06-03T02:37:52.3141309Z ##[debug]Obtaining metadata for language fr-FR
2020-06-03T02:37:52.3141881Z ##[debug]Obtaining base listing
2020-06-03T02:37:52.3146068Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\description.txt
2020-06-03T02:37:52.3147896Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\features.txt
2020-06-03T02:37:52.3149389Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\keywords.txt
2020-06-03T02:37:52.3151136Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\releaseNotes.txt
2020-06-03T02:37:52.3152318Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\shortDescription.txt
2020-06-03T02:37:52.3153606Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\title.txt
2020-06-03T02:37:52.3157649Z ##[debug]Obtaining images for language fr-FR
2020-06-03T02:37:52.3158707Z ##[debug]Updating images from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR
2020-06-03T02:37:52.3167890Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\images\Screenshot\Screenshot1 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\images\Screenshot\description.Screenshot1.txt
2020-06-03T02:37:52.3174265Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\images\Screenshot\Screenshot2 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\images\Screenshot\description.Screenshot2.txt
2020-06-03T02:37:52.3182526Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\images\Screenshot\Screenshot3 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\fr-FR\baseListing\images\Screenshot\description.Screenshot3.txt
2020-06-03T02:37:52.3183915Z ##[debug]Obtaining metadata for language pt-PT
2020-06-03T02:37:52.3184922Z ##[debug]Obtaining base listing
2020-06-03T02:37:52.3188043Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\description.txt
2020-06-03T02:37:52.3189038Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\features.txt
2020-06-03T02:37:52.3190006Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\keywords.txt
2020-06-03T02:37:52.3190976Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\releaseNotes.txt
2020-06-03T02:37:52.3191952Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\shortDescription.txt
2020-06-03T02:37:52.3192930Z ##[debug]Loading individual listing attribute from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\title.txt
2020-06-03T02:37:52.3193725Z ##[debug]Obtaining images for language pt-PT
2020-06-03T02:37:52.3209448Z ##[debug]Updating images from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT
2020-06-03T02:37:52.3211632Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\images\Screenshot\Screenshot1 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\images\Screenshot\description.Screenshot1.txt
2020-06-03T02:37:52.3213340Z ##[debug]Loading individual attribute for d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\images\Screenshot\Screenshot2 from d:\a\r1\a_PDF Reader Plus-master\pdf-reader-plus-app-metadata-drop\appMetadata\pt-PT\baseListing\images\Screenshot\description.Screenshot2.txt
2020-06-03T02:37:52.3214661Z ##[debug]Adding 1 package(s)
2020-06-03T02:37:52.3216707Z ##[debug]Updating submission
2020-06-03T02:37:52.3227159Z ##[debug]Starting request with correlation id: fa98fae3-2113-4a2c-a5b1-23937c2ea962
2020-06-03T02:38:01.2932342Z ##[debug]Finished request with correlation id: fa98fae3-2113-4a2c-a5b1-23937c2ea962
2020-06-03T02:38:01.2942707Z ##[debug]task result: Failed
2020-06-03T02:38:01.2977856Z ##[error]Status 400: {"code":"InvalidParameterValue","data":[],"details":[],"message":"Language is listed more than once: en-us","source":"Ingestion Api","target":"languageCode"} CorrelationId: 5c45a0ee-b4cb-41e5-b098-24b317f2ba4b
2020-06-03T02:38:01.2987451Z ##[debug]Processed: ##vso[task.issue type=error;]Status 400: {"code":"InvalidParameterValue","data":[],"details":[],"message":"Language is listed more than once: en-us","source":"Ingestion Api","target":"languageCode"} CorrelationId: 5c45a0ee-b4cb-41e5-b098-24b317f2ba4b
2020-06-03T02:38:01.2992191Z ##[debug]Processed: ##vso[task.complete result=Failed;]Status 400: {"code":"InvalidParameterValue","data":[],"details":[],"message":"Language is listed more than once: en-us","source":"Ingestion Api","target":"languageCode"} CorrelationId: 5c45a0ee-b4cb-41e5-b098-24b317f2ba4b

Performance when reading files to update metadata

Currently all files are read synchronously, which becomes very slow very fast if we have a large number of files (e.g. lots of listings, a text metadata format, images to update).

We should investigate ways of making this more efficient.

Unauthorized

Hello,
I configured connection to Store, but getting this error during release process:
2016-12-06T19:24:58.1960139Z Authenticating...
2016-12-06T19:24:58.1970228Z Authenticating with server...
2016-12-06T19:24:58.4259422Z Obtaining app information...
2016-12-06T19:24:59.6048040Z ##[error]Status 401: {"code":"Unauthorized","message":"Authorization: Account is not allowed to access this api"}

I configured connection - tenantId, ClientId and Client Key.
Any idea what's wrong ?

JJ

Status 500: InternalServerError: UnknownInternalFailure: An internal server error occurred while processing the operation.

Hi,

I'm getting this 500 error when trying to make a flight submission to the Windows Store:
Status 500: {"code":"InternalServerError","data":[],"details":[],"innererror":{"code":"UnknownInternalFailure","data":[],"details":[],"message":"The service has encountered an unknown internal server error: "},"message":"An internal server error occurred while processing the operation.","source":"Ingestion Api"} CorrelationId: 509da124-f089-451b-a69c-5f30cd2331d0

This worked before and I'm not sure what could have changed in my project to cause this.

Thanks,
Ryan

Timeout Uploading Test Package

I am using the task to upload a package to test but it timed out after 10 minutes
Log:
2017-11-14T13:06:00.5701197Z Creating zip file...
2017-11-14T13:06:06.0545101Z Uploading zip file...
2017-11-14T13:16:02.2041902Z ##[error]Failed to upload file! Error = StorageError: Operation could not be completed within the specified time.
2017-11-14T13:16:02.2041902Z RequestId:8d7239b9-001e-00ac-804a-5da9c7000000
2017-11-14T13:16:02.2041902Z Time:2017-11-14T13:16:02.1008004Z
2017-11-14T13:16:02.2041902Z ##[error]Failed to upload file! Error = StorageError: Operation could not be completed within the specified time.

Is it possible to increase the timeout? or is this actually another issue.

My vsts agent is local and my UWP package is 60mb

Stauts 409: Invalid State

After a first succesful submission to store, I'm always getting status 409: Invalid State:

##[error]Status 409: {"code":"InvalidState","data":[],"details":[],"message":"Create submission failed, status code Conflict, reason phrase Conflict","source":"Ingestion Api","target":"submission"} CorrelationId: b46aea06-c1d7-43e8-916c-04785abd4b38

UnknownInternalFailure while publishing Flight submission

Hi,

I get the following error when publishing my .appxupload to the store.
I can deploy it manually using the dashboard.

==============================================================================
2018-02-16T10:25:24.8698700Z Task : Windows Store - Flight
2018-02-16T10:25:24.8698925Z Description : Make a flight submission to the Windows Store
2018-02-16T10:25:24.8699126Z Version : 0.2.13
2018-02-16T10:25:24.8699320Z Author : Microsoft Corporation
2018-02-16T10:25:24.8699502Z Help :
2018-02-16T10:25:24.8699719Z ==============================================================================
2018-02-16T10:25:25.5033061Z ff9b1ca7-9802-47f0-99aa-e912dd85d59e exists true
2018-02-16T10:25:25.5104820Z Authenticating...
2018-02-16T10:25:25.5106728Z Authenticating with server...
2018-02-16T10:25:25.8512313Z Obtaining app information...
2018-02-16T10:25:29.2392623Z ##[error]Status 500: {"code":"InternalServerError","data":[],"details":[],"innererror":{"code":"UnknownInternalFailure","data":[],"details":[],"message":"The service has encountered an unknown internal server error: "},"message":"An internal server error occurred while processing the operation.","source":"Ingestion Api"} CorrelationId: 550795fc-a10b-460d-9020-3ffa8a368f39

Uncertain how to flight build

So the documentation doesn't have an end-to-end example of how to flight a build, so I'm not certain if I'm doing this right.

Step 1: Created a flight in Dev Center. (I saw an issue that seemed to imply we had to do this.) We did not create a submission for that flight. Just created the flight name, and associated it to a flight group.

Step 2: Specified the appxupload, and the flight name from the flight created in Step 1. I'm using the ID identification method, and the Big ID/Store Id for the app.

I get an error that says:
2019-08-16T18:38:14.1629763Z ##[error]Status 409: {"code":"InvalidState","message":"This application uses features that are not supported by the submission API. To perform this operation, use the Dev Center dashboard.","target":"application"} CorrelationId: d79061bd-7dc4-4cb5-b3f5-9c3795229614

It's possible that there's something set up in Dev Center that I'm not aware of, but we're certainly not intentionally using weird features in the app. What features would cause this?

Show verbose logs

I'm investiging an issue when the package is not submitted but the task completed successfully.

I'd like to have a verbose logs option to see the files(s) that are being submitted.

string comparison of languages in listing is not case insensitive

If the user provides a folder structure where the languages are not lower case (e.g. en-US instead of en-us) the extension will create an object with two properties, one for the lower cased languages provided by the API and another one for the folder. The extension should replace the contents of the language received from the API rather than adding a new property.

Windows Store - Flight: Advanced Options > Delete Packages option not working

I’m using your Release Task on our TFS server to publish our app to the Windows Store. I’m using the “Flight” version. It all works great – except for one thing. The Advanced Options > Delete Packages option doesn’t seem to work. The “info” tip for this says “Delete old unnecessary packages from the flight group you are submitting to.” However, our appxupload files keep on accumulating on the Windows Store.

Task reports success even when it fails

See log: tasklog_3.txt

Result: This task reported that it completed successfully.
Expected: The task should fail

In this case I was using the v2 task for a non-Centennial app (some documentation here would be nice!) which is apparently the cause for failure.

Failure for Internal Server Error: InnerError

Any idea why I'd be getting this error which is failing all of my pipelines?

Any suggestions welcome.

[error]Status 500: {"code":"InternalServerError","data":[],"details":[],"innererror":{"code":"UnknownInternalFailure","data":[],"details":[],"message":"The service has encountered an unknown internal server error: "},"message":"An internal server error occurred while processing the operation.","source":"Ingestion Api"}

Flighted build

Flighted build via the api is broken. I have had daily staging (and live) builds being sent to the store for many months.

But it appears via the api at least the Flighted build submission has recently been broken. I will have to resort to manual flighted build. This is a bit inconvenient as my VSTFS builds auto submit on branch merge.

error Status 403

I recently added this extension from the marketplace and try to use it now in my release pipeline. When running the task I get following error:

2019-02-22T20:45:45.7991997Z ##[section]Starting: Publish $(SYSTEM.ARTIFACTSDIRECTORY)\**\*.appxbundle
2019-02-22T20:45:45.7997017Z ==============================================================================
2019-02-22T20:45:45.7997119Z Task         : Windows Store - Publish
2019-02-22T20:45:45.7997204Z Description  : Publish your app to the Windows Store
2019-02-22T20:45:45.7997268Z Version      : 0.10.25
2019-02-22T20:45:45.7997343Z Author       : Microsoft Corporation
2019-02-22T20:45:45.7997403Z Help         : 
2019-02-22T20:45:45.7997489Z ==============================================================================
2019-02-22T20:45:46.6655027Z 5ccde424-942e-45f5-8d48-98a69ecd4af5 exists true
2019-02-22T20:45:46.6884803Z Authenticating...
2019-02-22T20:45:46.6886532Z Authenticating with server...
2019-02-22T20:45:46.9042429Z Obtaining app information...
2019-02-22T20:45:49.1417293Z Creating submission...
2019-02-22T20:45:49.5290819Z ##[error]Status 403:  CorrelationId: 09e77990-69de-460e-8c8e-9c34b80e96f1
2019-02-22T20:45:49.5357435Z ##[section]Finishing: Publish $(SYSTEM.ARTIFACTSDIRECTORY)\**\*.appxbundle

Any ideas how to start troubleshooting? I was not able to get it working at least once. Right now I can not distinguish if this is a bug or wrong configuration somewhere.

Status 401: error_description":"AADSTS7000216: 'client_assertion', 'client_secret' or 'request' is required for the 'client_credentials'

After the recent change on the endpoint used for the extension, some folks are hitting the issues of status 401. It will say something as:

Status 401: {"error":"invalid_client","error_description":"AADSTS7000216: 'client_assertion', 'client_secret' or 'request' is required for the 'client_credentials' grant type.\r\nTrace ID: 12ffdc87-bc07-42df-9c4f-b89c37f86900\r\nCorrelation ID: 088de9f2-872c-408c-b0b4-fa9f6b62bcad\r\nTimestamp: 2019-11-14 00:50:28Z","error_codes":[7000216],"timestamp":"2019-11-14 00:50:28Z","trace_id":"12ffdc87-bc07-42df-9c4f-b89c37f86900","correlation_id":"088de9f2-872c-408c-b0b4-fa9f6b62bcad","error_uri":"https://login.microsoftonline.com/error?code=7000216"}

If you are hitting this issue, please check if your client secret is expired. You need to create a new Windows Dev Center service connection. Also you need to go to app registration to create a new secret if it's expired. Make sure your service connection uses the app secret from the app registration.

Authorization: Account is not allowed to access this api

I am trying to deploy a build to the Dev Center using this extension on VSO, deploying the package via a release definition. Every time I attempt to deploy I get the following error after "Getting app information":

Status 401: {"code":"Unauthorized","message":"Authorization: Account is not allowed to access this api"}

I double checked all the Azure AD auth settings, and it seems to be fine, however the Azure AD that VSO is hosted on is not the same Azure AD that the Dev Center is linked to. Are there any additional steps that I need to do in order to get that to work?

Unexpected token =

I am receiving the error message:

Unexpected token =

This looks like a node.js issue to me, but I couldn't find anywhere that lists any node.js version requirements? This is an onsite TFS build server, it is running node 8.9.4.

I'm not sure what else to look at. I haven't been able to successfully complete a Publish or Flight task, they both end with the same error.

Below is the logging output of the build with system.debug = true

Thanks!

Matt

2018-09-19T14:20:26.4144173Z Set workingFolder to default: C:\agent2\tasks\store-flight\0.2.22\local

2018-09-19T14:20:27.2738000Z ##[debug]agent.workFolder=e:\builds\agent02

2018-09-19T14:20:27.2894236Z ##[debug]loading inputs and endpoints

2018-09-19T14:20:27.2894236Z ##[debug]loading ENDPOINT_AUTH_1143A35E-10B8-441C-9A05-6A20AB0120E7

2018-09-19T14:20:27.2894236Z ##[debug]loading ENDPOINT_AUTH_3306CACE-E67A-4512-AF8A-7D35E0E733D0

2018-09-19T14:20:27.2894236Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION

2018-09-19T14:20:27.2894236Z ##[debug]loading INPUT_APPID

2018-09-19T14:20:27.2894236Z ##[debug]loading INPUT_APPNAME

2018-09-19T14:20:27.2894236Z ##[debug]loading INPUT_DELETEPACKAGES

2018-09-19T14:20:27.2894236Z ##[debug]loading INPUT_FLIGHTNAME

2018-09-19T14:20:27.2894236Z ##[debug]loading INPUT_FORCE

2018-09-19T14:20:27.2894236Z ##[debug]loading INPUT_ISMANDATORYUPDATE

2018-09-19T14:20:27.3050516Z ##[debug]loading INPUT_MANDATORYUPDATEDIFFERHOURS

2018-09-19T14:20:27.3050516Z ##[debug]loading INPUT_NAMETYPE

2018-09-19T14:20:27.3050516Z ##[debug]loading INPUT_NUMBEROFPACKAGESTOKEEP

2018-09-19T14:20:27.3050516Z ##[debug]loading INPUT_PACKAGEPATH

2018-09-19T14:20:27.3050516Z ##[debug]loading INPUT_SERVICEENDPOINT

2018-09-19T14:20:27.3050516Z ##[debug]loading INPUT_SKIPPOLLING

2018-09-19T14:20:27.3050516Z ##[debug]loaded 15

2018-09-19T14:20:27.5394273Z ##[debug]task result: Failed

2018-09-19T14:20:27.5706754Z ##[error]Unhandled: Unexpected token =

Status 401 in Polling after ~1 hour

Hello,

I use the extension v0.9.30 in a release pipeline. It uploads sucessfull the package into a flight release but while polling the status after 1 hour I get an exception. Here is the part of the log:
2019-11-29T11:00:59.8279542Z Polling flight submission...
2019-11-29T11:01:03.8601292Z Submission status for "applications/[appid]/flights/ecbcd6eb-2f51-489f-a8dc-d9101dcaabdc/submissions/1152921505689249124"CommitStarted
2019-11-29T11:06:07.7943496Z Submission status for "applications/[appid]/flights/ecbcd6eb-2f51-489f-a8dc-d9101dcaabdc/submissions/1152921505689249124"PreProcessing
2019-11-29T11:11:11.5499602Z Submission status for "applications/[appid]/flights/ecbcd6eb-2f51-489f-a8dc-d9101dcaabdc/submissions/1152921505689249124"Certification
2019-11-29T11:16:14.7419333Z Submission status for "applications/[appid]/flights/ecbcd6eb-2f51-489f-a8dc-d9101dcaabdc/submissions/1152921505689249124"Certification
2019-11-29T11:21:19.3812218Z Submission status for "applications/[appid]/flights/ecbcd6eb-2f51-489f-a8dc-d9101dcaabdc/submissions/1152921505689249124"Release
2019-11-29T11:26:31.0332970Z Submission status for "applications/[appid]/flights/ecbcd6eb-2f51-489f-a8dc-d9101dcaabdc/submissions/1152921505689249124"Publishing
2019-11-29T11:31:34.7972109Z Submission status for "applications/[appid]/flights/ecbcd6eb-2f51-489f-a8dc-d9101dcaabdc/submissions/1152921505689249124"Publishing
2019-11-29T11:36:38.6782520Z Submission status for "applications/[appid]/flights/ecbcd6eb-2f51-489f-a8dc-d9101dcaabdc/submissions/1152921505689249124"Publishing
2019-11-29T11:41:44.0873562Z Submission status for "applications/[appid]/flights/ecbcd6eb-2f51-489f-a8dc-d9101dcaabdc/submissions/1152921505689249124"Publishing
2019-11-29T11:46:48.8169332Z Submission status for "applications/[appid]/flights/ecbcd6eb-2f51-489f-a8dc-d9101dcaabdc/submissions/1152921505689249124"Publishing
2019-11-29T11:51:52.8629082Z Submission status for "applications/[appid]/flights/ecbcd6eb-2f51-489f-a8dc-d9101dcaabdc/submissions/1152921505689249124"Publishing
2019-11-29T11:56:57.3762821Z Submission status for "applications/[appid]/flights/ecbcd6eb-2f51-489f-a8dc-d9101dcaabdc/submissions/1152921505689249124"Publishing
2019-11-29T12:01:57.8666261Z ##[error]Status 401: {"statusCode":401,"message":"APIM: Unauthorized. Access token is missing or invalid."}

I have tried that multiple times and it seems that it is always after 1 hour polling. Anybody else had seen that issue and perhaps solved it?

Best regards
Lorenz

##[error]TypeError: Cannot set property 'isMandatoryUpdate' of undefined

I'm getting the error Cannot set property 'isMandatoryUpdate' of undefined.
Any help appriciated

2019-06-13T12:28:39.2919284Z ##[debug]Evaluating condition for step: 'Publish to Windows Store'
2019-06-13T12:28:39.2919858Z ##[debug]Evaluating: succeeded()
2019-06-13T12:28:39.2920473Z ##[debug]Evaluating succeeded:
2019-06-13T12:28:39.2920982Z ##[debug]=> True
2019-06-13T12:28:39.2921308Z ##[debug]Result: True
2019-06-13T12:28:39.2921545Z ##[section]Starting: Publish to Windows Store
2019-06-13T12:28:39.3021338Z ==============================================================================
2019-06-13T12:28:39.3021476Z Task : Windows Store - Publish
2019-06-13T12:28:39.3021573Z Description : Publish your app to the Windows Store
2019-06-13T12:28:39.3021669Z Version : 0.10.25
2019-06-13T12:28:39.3021750Z Author : Microsoft Corporation
2019-06-13T12:28:39.3021842Z Help :
2019-06-13T12:28:39.3021951Z ==============================================================================
2019-06-13T12:28:39.5377290Z ##[debug]agent.workFolder=d:\a
2019-06-13T12:28:39.5406036Z ##[debug]loading inputs and endpoints
2019-06-13T12:28:39.5415557Z ##[debug]loading ENDPOINT_AUTH_095e1f2f-859d-4884-bb4f-11571067d058
2019-06-13T12:28:39.5426413Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_095e1f2f-859d-4884-bb4f-11571067d058_AUTHENTICATIONTYPE
2019-06-13T12:28:39.5428791Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_095e1f2f-859d-4884-bb4f-11571067d058_SERVICEPRINCIPALID
2019-06-13T12:28:39.5430851Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_095e1f2f-859d-4884-bb4f-11571067d058_SERVICEPRINCIPALKEY
2019-06-13T12:28:39.5432688Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_095e1f2f-859d-4884-bb4f-11571067d058_TENANTID
2019-06-13T12:28:39.5434385Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_095e1f2f-859d-4884-bb4f-11571067d058_URL
2019-06-13T12:28:39.5435730Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2019-06-13T12:28:39.5437135Z ##[debug]loading ENDPOINT_AUTH_SCHEME_095e1f2f-859d-4884-bb4f-11571067d058
2019-06-13T12:28:39.5438430Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2019-06-13T12:28:39.5440255Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2019-06-13T12:28:39.5442185Z ##[debug]loading INPUT_APPNAME
2019-06-13T12:28:39.5445062Z ##[debug]loading INPUT_DELETEPACKAGES
2019-06-13T12:28:39.5448663Z ##[debug]loading INPUT_FORCE
2019-06-13T12:28:39.5452996Z ##[debug]loading INPUT_ISMANDATORYUPDATE
2019-06-13T12:28:39.5456739Z ##[debug]loading INPUT_MANDATORYUPDATEDIFFERHOURS
2019-06-13T12:28:39.5459099Z ##[debug]loading INPUT_METADATAPATH
2019-06-13T12:28:39.5462716Z ##[debug]loading INPUT_METADATAUPDATEMETHOD
2019-06-13T12:28:39.5464700Z ##[debug]loading INPUT_NAMETYPE
2019-06-13T12:28:39.5468571Z ##[debug]loading INPUT_NUMBEROFPACKAGESTOKEEP
2019-06-13T12:28:39.5471111Z ##[debug]loading INPUT_PACKAGEPATH
2019-06-13T12:28:39.5478384Z ##[debug]loading INPUT_SERVICEENDPOINT
2019-06-13T12:28:39.5478876Z ##[debug]loading INPUT_SKIPPOLLING
2019-06-13T12:28:39.5479128Z ##[debug]loading INPUT_UPDATEIMAGES
2019-06-13T12:28:39.5488966Z ##[debug]loaded 23
2019-06-13T12:28:40.0727961Z ##[debug]serviceEndpoint=095e1f2f-859d-4884-bb4f-11571067d058
2019-06-13T12:28:40.0745434Z 095e1f2f-859d-4884-bb4f-11571067d058 exists true
2019-06-13T12:28:40.0745896Z ##[debug]095e1f2f-859d-4884-bb4f-11571067d058 exists true
2019-06-13T12:28:40.0748657Z ##[debug]force=false
2019-06-13T12:28:40.0750480Z ##[debug]metadataUpdateMethod=NoUpdate
2019-06-13T12:28:40.0751938Z ##[debug]updateImages=false
2019-06-13T12:28:40.0752634Z ##[debug]Agent.WorkFolder=d:\a
2019-06-13T12:28:40.0766334Z ##[debug]skipPolling=false
2019-06-13T12:28:40.0767116Z ##[debug]deletePackages=false
2019-06-13T12:28:40.0767523Z ##[debug]isMandatoryUpdate=false
2019-06-13T12:28:40.0770870Z ##[debug]packagePath=d:\a\r1\a_Production\drop\WeAdvise.Platform.UWP_1.0.30086.0_x64_bundle_Production.appxupload
2019-06-13T12:28:40.0771207Z ##[debug]Agent.ReleaseDirectory=d:\a\r1\a
2019-06-13T12:28:40.0773053Z ##[debug]packagePath=d:\a\r1\a_Production\drop\WeAdvise.Platform.UWP_1.0.30086.0_x64_bundle_Production.appxupload
2019-06-13T12:28:40.0821145Z ##[debug]additionalPackages=null
2019-06-13T12:28:40.0822684Z ##[debug]nameType=AppName
2019-06-13T12:28:40.0824047Z ##[debug]appName=BOSS paints Advies App
2019-06-13T12:28:40.0825721Z ##[debug]metadataPath=d:\a\r1\a_Production
2019-06-13T12:28:40.0834516Z ##[debug]App ID:
2019-06-13T12:28:40.0835021Z ##[debug]Endpoint: ***
2019-06-13T12:28:40.0835294Z ##[debug]Force delete: false
2019-06-13T12:28:40.0835768Z ##[debug]Metadata update type: 0
2019-06-13T12:28:40.0835987Z ##[debug]Update images: false
2019-06-13T12:28:40.0836209Z ##[debug]Metadata root: d:\a\r1\a_Production
2019-06-13T12:28:40.0836477Z ##[debug]Packages:
2019-06-13T12:28:40.0836694Z ##[debug]skipPolling: false
2019-06-13T12:28:40.0836896Z ##[debug]deletePackages: false
2019-06-13T12:28:40.0837116Z ##[debug]numberOfPackagesToKeep: null
2019-06-13T12:28:40.0837333Z ##[debug]isMandatoryUpdate: false
2019-06-13T12:28:40.0837554Z ##[debug]mandatoryUpdateDifferHours: null
2019-06-13T12:28:40.0842575Z Authenticating...
2019-06-13T12:28:40.0844466Z Authenticating with server...
2019-06-13T12:28:40.0852546Z ##[debug]Starting request with correlation id: 137f4b3f-ea96-444d-87a0-866d76b9074e
2019-06-13T12:28:40.2012468Z ##[debug]Finished request with correlation id: 137f4b3f-ea96-444d-87a0-866d76b9074e
2019-06-13T12:28:40.2018752Z Obtaining app information...
2019-06-13T12:28:40.2021981Z ##[debug]Getting app resource from ID
2019-06-13T12:28:40.2028358Z ##[debug]Starting request with correlation id: e4f67507-079c-4807-b70f-a6b0d49dc2c2
2019-06-13T12:28:41.2760646Z ##[debug]Finished request with correlation id: e4f67507-079c-4807-b70f-a6b0d49dc2c2
2019-06-13T12:28:41.2761339Z Creating submission...
2019-06-13T12:28:41.2762593Z ##[debug]Creating new submission
2019-06-13T12:28:41.2765026Z ##[debug]Starting request with correlation id: dc1799a6-8b57-45f5-9480-696757defea1
2019-06-13T12:28:41.4335535Z ##[debug]Finished request with correlation id: dc1799a6-8b57-45f5-9480-696757defea1
2019-06-13T12:28:41.4336047Z Submission https://developer.microsoft.com/en-us/dashboard/apps/undefined/submissions/undefined was created successfully
2019-06-13T12:28:41.4337046Z Updating package delivery options...
2019-06-13T12:28:41.4337691Z ##[debug]Setting isMandatoryUpdate to false
2019-06-13T12:28:41.4403696Z ##[error]TypeError: Cannot set property 'isMandatoryUpdate' of undefined
2019-06-13T12:28:41.4411698Z ##[debug]Processed: ##vso[task.issue type=error;]TypeError: Cannot set property 'isMandatoryUpdate' of undefined
2019-06-13T12:28:41.4411972Z at Object.updatePackageDeliveryOptions (d:\a_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.10.25\common\apiHelper.js:317:65)
2019-06-13T12:28:41.4412143Z at Object. (d:\a_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.10.25\local\publish.js:108:19)
2019-06-13T12:28:41.4412317Z at next (native)
2019-06-13T12:28:41.4412468Z at fulfilled (d:\a_tasks\store-publish_8e70da9d-532d-4416-a07f-5ec10f84339f\0.10.25\local\publish.js:8:58)
2019-06-13T12:28:41.4412611Z at process._tickCallback (internal/process/next_tick.js:109:7)
2019-06-13T12:28:41.4412839Z ##[debug]task result: Failed
2019-06-13T12:28:41.4413172Z ##[error]TypeError: Cannot set property 'isMandatoryUpdate' of undefined
2019-06-13T12:28:41.4413698Z ##[debug]Processed: ##vso[task.issue type=error;]TypeError: Cannot set property 'isMandatoryUpdate' of undefined
2019-06-13T12:28:41.4414092Z ##[debug]Processed: ##vso[task.complete result=Failed;]TypeError: Cannot set property 'isMandatoryUpdate' of undefined
2019-06-13T12:28:41.4450550Z ##[section]Finishing: Publish to Windows Store

Upload test flight package

My current approach to distribution is uploading a test flight (aka beta) package using continuous deployment from VSTS and later (after some manual QA testing) promoting the package to production release.
This works perfectly with the deployment extensions for Apple AppStore and Google Play. However this scenario seems unsupported in the Windows Dev Center extension, as it currently only allows uploading/creating production submissions.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.