microsoft / StoreBroker

A PowerShell module that leverages the Windows Store Submission API to allow easy automation of application submissions to the Windows Store. The master branch is stable and the v2 branch is under active development.
Other
97 stars 40 forks source link

Update-InAppProductSubmission fails with size of Listings must be 1 or more error #225

Open Viciousu opened 2 years ago

Viciousu commented 2 years ago

Environment: ModuleVersion 1.21.0 PSVersion 5.1.22000.613 Windows 11 Home 21H2 22000.613

Performing Update-InAppProductSubmission -IapId -SubmissionDataPath ".\submission.json" -PackagePath ".\package.zip" -UpdatePricingAndAvailability -UpdateProperties -Force without parameter UpdateListings returns response

The remote server returned an error: (400) Bad Request.
InvalidParameterValue : The size of Listings must be 1 or more
MS-CorrelationId: 22f9c02f-bc36-4b2b-9412-f3f95bc06b8d
At C:\Program Files\WindowsPowerShell\Modules\StoreBroker\1.21.0\StoreBroker\StoreIngestionApi.psm1:2116 char:17

used submission.json package:

{
    "iapId": "",
    "targetPublishMode": "Manual",
    "targetPublishDate": "1601-01-01T02:00:00.0000000+02:00",
    "visibility": "Public",
    "lifetime": "Forever",
    "contentType": "OnlineDownload",
    "keywords": [
        "keywrd"
    ],
    "pricing": {
        "priceId": "Tier1012",
        "marketSpecificPricings": {
            "LB": "NotAvailable",
            "BS": "Tier1015",
            "EH": "NotAvailable"
        }
    },
    "notesForCertification": "",
    "listings": {
        "en": {
            "title": "test eng title",
            "description": "test eng desc"
        }
    },
    "sbSchema": 2
}

Expected result: submission added without errors