Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-AppSourceSubmission failed, but didn't return error #3586

Open
iti-arkadiusz-maciejewski opened this issue Jun 27, 2024 · 1 comment
Open

Comments

@iti-arkadiusz-maciejewski

PLEASE DO NOT INCLUDE ANY PASSWORDS OR TOKENS IN YOUR ISSUE!!!

Describe the issue
Hello,
Could you add parameter that throws error after App Source Submission fails (substate value "Failed")? I would like to get fail status when it happens, but I only have "failed" info when I find it in logs and pipeline end with "success" status.
I may be wrong but it's only another if between 305-307 lines in New-AppSourceSubmission.ps1 (I am aware that someone would like to have it just as it is now, so I suggest parameter)

Scripts used to create container and cause the issue

write-host "Uploading an app"
New-AppSourceSubmission -authContext $authcontext -productId $productID -appFile $appfile -Verbose -force -autoPromote

Full output of scripts

2024-06-24T14:10:13.8417888Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'D:\a\_temp\7f994381-603d-4e37-b957-72cf765f19cf.ps1'"
2024-06-24T14:10:30.4627442Z Name of product: D:\a\r1\a\SourceObjects\3.0.3.3\Applications\***APP***.app
2024-06-24T14:10:30.8390169Z BcContainerHelper version 6.0.18
2024-06-24T14:10:33.6262909Z BC.HelperFunctions emits usage statistics telemetry to Microsoft
2024-06-24T14:10:33.7584466Z Running on Windows, PowerShell 5.1.20348.2400
2024-06-24T14:10:36.3443561Z Attempting authentication to https://api.partner.microsoft.com/.default using clientCredentials...
2024-06-24T14:10:36.4964303Z Authenticated as app ***
2024-06-24T14:10:41.4239941Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/setup
2024-06-24T14:10:41.7058234Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/branches/getByModule(module=Availability)
2024-06-24T14:10:43.3779604Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/productavailabilities/getByInstanceID(instanceID=2152924500014935998)
2024-06-24T14:10:44.1043525Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/featureavailabilities/getByInstanceID(instanceID=2152924500014935998)
2024-06-24T14:10:44.8309929Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/branches/getByModule(module=Property)
2024-06-24T14:10:45.3035597Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/properties/getByInstanceID(instanceID=9f2ea6d0-862d-8d5a-ecda-b4d1740b2f49)
2024-06-24T14:10:45.6065772Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/branches/getByModule(module=Listing)
2024-06-24T14:10:45.9637897Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/listings/getByInstanceID(instanceID=4ec8a8ab-2bc2-4f8c-c209-9cef0f1713d4)
2024-06-24T14:10:46.3008783Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/listings/22bfcc42-0ab2-e32a-8d63-609dded6a79e/assets
2024-06-24T14:10:46.8211923Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/listings/22bfcc42-0ab2-e32a-8d63-609dded6a79e/images
2024-06-24T14:10:47.2958833Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/listings/22bfcc42-0ab2-e32a-8d63-609dded6a79e/videos
2024-06-24T14:10:47.6221681Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/branches/getByModule(module=Package)
2024-06-24T14:10:48.1491309Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/packageconfigurations/getByInstanceID(instanceID=27499ed2-9d21-4111-b3d8-03b4f1c5c25b)
2024-06-24T14:10:48.5947494Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/packages/b97a38af-50fb-4e09-86fa-56b0e1bf9009
2024-06-24T14:10:49.6328344Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc
2024-06-24T14:10:49.9320858Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/branches/getByModule(module=Package)
2024-06-24T14:10:50.4873159Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/packageconfigurations/getByInstanceID(instanceID=27499ed2-9d21-4111-b3d8-03b4f1c5c25b)
2024-06-24T14:10:50.9174088Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/packages/b97a38af-50fb-4e09-86fa-56b0e1bf9009
2024-06-24T14:10:51.7528021Z 
2024-06-24T14:10:51.7528755Z 
2024-06-24T14:10:51.7532291Z resourceType                                    : Dynamics365BusinessCentralPackageConfiguration
2024-06-24T14:10:51.7532687Z packageType                                     : AddOn
2024-06-24T14:10:51.7533844Z packageReferences                               : {@{type=Dynamics365BusinessCentralAddOnExtensionPackage; 
2024-06-24T14:10:51.7534932Z                                                   value=b97a38af-50fb-4e09-86fa-56b0e1bf9009}}
2024-06-24T14:10:51.7535556Z @odata.etag                                     : "0900e9f0-0000-0800-0000-6675bd140000"
2024-06-24T14:10:51.7535963Z id                                              : 27499ed2-9d21-4111-b3d8-03b4f1c5c25b
2024-06-24T14:10:51.7537030Z Dynamics365BusinessCentralAddOnExtensionPackage : @{resourceType=; fileName=***APP***.app; 
2024-06-24T14:10:51.7539060Z                                                   state=Processed; @odata.etag="2e00280b-0000-0800-0000-6675bd0d0000"; 
2024-06-24T14:10:51.7539497Z                                                   id=APPID}
2024-06-24T14:10:51.7539664Z 
2024-06-24T14:10:51.7547490Z Uploading an app
2024-06-24T14:10:51.8641587Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc
2024-06-24T14:10:51.8647605Z VERBOSE: GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc with 0-byte
2024-06-24T14:10:51.8648716Z  payload
2024-06-24T14:10:52.1531509Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:10:52.1566080Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/setup
2024-06-24T14:10:52.1574923Z VERBOSE: GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/setup with 
2024-06-24T14:10:52.1575588Z 0-byte payload
2024-06-24T14:10:52.4736902Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:10:52.4892612Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions
2024-06-24T14:10:52.4900488Z VERBOSE: GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions
2024-06-24T14:10:52.4900982Z  with 0-byte payload
2024-06-24T14:10:53.3979928Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:10:53.4027396Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/1152921505697914941
2024-06-24T14:10:53.4037318Z VERBOSE: GET 
2024-06-24T14:10:53.4038066Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:10:53.4038581Z 7914941 with 0-byte payload
2024-06-24T14:10:53.8511494Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:10:53.8583800Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/branches/getByModule(module=Package)
2024-06-24T14:10:53.8589344Z VERBOSE: GET 
2024-06-24T14:10:53.8590222Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/branches/getByModule(mod
2024-06-24T14:10:53.8594218Z ule=Package) with 0-byte payload
2024-06-24T14:10:54.3651893Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:10:54.4253516Z VERBOSE: POST https://marketplace.visualstudio.com/_apis/public/gallery/extensionquery?api-version=3.0-preview.1 with 
2024-06-24T14:10:54.4254384Z -1-byte payload
2024-06-24T14:10:54.5737740Z VERBOSE: received 421933-byte response of content type application/json; charset=utf-8; api-version=3.0-preview.1
2024-06-24T14:10:55.1037494Z Downloading AL Language Extension (Prerelease) to C:\ProgramData\BcContainerHelper\alLanguageExtension\14.0.1055126.zip
2024-06-24T14:10:57.1203716Z using 7zip
2024-06-24T14:11:09.0725569Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/packageConfigurations/getByInstanceID(instanceID=27499ed2-9d21-4111-b3d8-03b4f1c5c25b)
2024-06-24T14:11:09.0737128Z VERBOSE: GET 
2024-06-24T14:11:09.0737856Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/packageConfigurations/ge
2024-06-24T14:11:09.0738545Z tByInstanceID(instanceID=27499ed2-9d21-4111-b3d8-03b4f1c5c25b) with 0-byte payload
2024-06-24T14:11:09.5344228Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:11:09.5620947Z POST https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/packages
2024-06-24T14:11:09.5634900Z {
2024-06-24T14:11:09.5635215Z     "fileName":  "***APP***.app",
2024-06-24T14:11:09.5636488Z     "resourceType":  "Dynamics365BusinessCentralAddOnExtensionPackage"
2024-06-24T14:11:09.5637220Z }
2024-06-24T14:11:09.5648197Z VERBOSE: POST https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/packages 
2024-06-24T14:11:09.5648724Z with -1-byte payload
2024-06-24T14:11:10.4180005Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:11:17.0460101Z VERBOSE: Transfer Summary
2024-06-24T14:11:17.0462032Z 
2024-06-24T14:11:17.0462680Z --------------------------------
2024-06-24T14:11:17.0462784Z 
2024-06-24T14:11:17.0462977Z Total:  1.
2024-06-24T14:11:17.0463100Z 
2024-06-24T14:11:17.0463294Z Successful: 1.
2024-06-24T14:11:17.0463414Z 
2024-06-24T14:11:17.0463781Z Failed: 0.
2024-06-24T14:11:17.1003651Z PUT https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/packages/184f3253-badd-4bd6-a140-eb820ccf45c9
2024-06-24T14:11:17.1005156Z {
2024-06-24T14:11:17.1007458Z     "id":  "184f3253-badd-4bd6-a140-eb820ccf45c9",
2024-06-24T14:11:17.1007964Z     "fileName":  "***APP***.app",
2024-06-24T14:11:17.1009002Z     "fileSasUri":  "https://ingestionpackagesprod1.blob.core.windows.net/file/3028914190253625407?sv=2018-03-28\u0026sr=b\u0026sig=jynrOxfEy9a7Njc3llhZ%2Bj%2FDiuZwVL40lkw%2FTNOkrKE%3D\u0026se=2024-06-25T14%3A26%3A10Z\u0026sp=rwl",
2024-06-24T14:11:17.1009718Z     "resourceType":  "Dynamics365BusinessCentralAddOnExtensionPackage",
2024-06-24T14:11:17.1010148Z     "state":  "Uploaded",
2024-06-24T14:11:17.1011288Z     "@odata.etag":  "\"4a00b961-0000-0800-0000-66797e7e0000\""
2024-06-24T14:11:17.1011770Z }
2024-06-24T14:11:17.1015668Z VERBOSE: PUT 
2024-06-24T14:11:17.1016319Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/packages/184f3253-badd-4
2024-06-24T14:11:17.1016837Z bd6-a140-eb820ccf45c9 with -1-byte payload
2024-06-24T14:11:19.0347916Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:11:19.0446623Z PUT https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/packageConfigurations/27499ed2-9d21-4111-b3d8-03b4f1c5c25b
2024-06-24T14:11:19.0448097Z {
2024-06-24T14:11:19.0449548Z     "resourceType":  "Dynamics365BusinessCentralPackageConfiguration",
2024-06-24T14:11:19.0450280Z     "@odata.etag":  "\"0900e9f0-0000-0800-0000-6675bd140000\"",
2024-06-24T14:11:19.0450761Z     "packageType":  "AddOn",
2024-06-24T14:11:19.0451287Z     "id":  "27499ed2-9d21-4111-b3d8-03b4f1c5c25b",
2024-06-24T14:11:19.0451696Z     "packageReferences":  [
2024-06-24T14:11:19.0452180Z                               {
2024-06-24T14:11:19.0452711Z                                   "value":  "184f3253-badd-4bd6-a140-eb820ccf45c9",
2024-06-24T14:11:19.0453062Z                                   "type":  "Dynamics365BusinessCentralAddOnExtensionPackage"
2024-06-24T14:11:19.0453698Z                               }
2024-06-24T14:11:19.0453924Z                           ]
2024-06-24T14:11:19.0454469Z }
2024-06-24T14:11:19.0456361Z VERBOSE: PUT 
2024-06-24T14:11:19.0457191Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/packageConfigurations/27
2024-06-24T14:11:19.0457867Z 499ed2-9d21-4111-b3d8-03b4f1c5c25b with -1-byte payload
2024-06-24T14:11:19.9230402Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:11:19.9295140Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/branches/getByModule(module=Property)
2024-06-24T14:11:19.9302329Z VERBOSE: GET 
2024-06-24T14:11:19.9303234Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/branches/getByModule(mod
2024-06-24T14:11:19.9303977Z ule=Property) with 0-byte payload
2024-06-24T14:11:20.2657498Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:11:20.2700107Z GET https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/properties/getByInstanceID(instanceID=9f2ea6d0-862d-8d5a-ecda-b4d1740b2f49)
2024-06-24T14:11:20.2709332Z VERBOSE: GET 
2024-06-24T14:11:20.2709859Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/properties/getByInstance
2024-06-24T14:11:20.2711381Z ID(instanceID=9f2ea6d0-862d-8d5a-ecda-b4d1740b2f49) with 0-byte payload
2024-06-24T14:11:20.5854777Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:11:20.6075358Z PUT https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/properties/9f2ea6d0-862d-8d5a-ecda-b4d1740b2f49
2024-06-24T14:11:20.6083113Z {
2024-06-24T14:11:20.6083846Z     "resourceType":  "AzureProperty",
2024-06-24T14:11:20.6084486Z     "hideKeys":  [
2024-06-24T14:11:20.6084871Z 
2024-06-24T14:11:20.6085392Z                  ],
2024-06-24T14:11:20.6085878Z     "categories":  [
2024-06-24T14:11:20.6086260Z 
2024-06-24T14:11:20.6086718Z                    ],
2024-06-24T14:11:20.6087233Z     "leveledCategories":  {
2024-06-24T14:11:20.6087783Z                               "HumanResources":  [
2024-06-24T14:11:20.6088624Z                                                      "hr-operations"
2024-06-24T14:11:20.6089123Z                                                  ]
2024-06-24T14:11:20.6089689Z                           },
2024-06-24T14:11:20.6090241Z     "extendedProperties":  [
2024-06-24T14:11:20.6090587Z 
2024-06-24T14:11:20.6091052Z                            ],
2024-06-24T14:11:20.6091760Z     "@odata.etag":  "\"4000bb96-0000-0800-0000-6675bd130000\"",
2024-06-24T14:11:20.6092313Z     "useEnterpriseContract":  false,
2024-06-24T14:11:20.6092840Z     "globalAmendmentTerms":  "",
2024-06-24T14:11:20.6093530Z     "id":  "9f2ea6d0-862d-8d5a-ecda-b4d1740b2f49",
2024-06-24T14:11:20.6094077Z     "leveledIndustries":  {
2024-06-24T14:11:20.6094403Z 
2024-06-24T14:11:20.6094937Z                           },
2024-06-24T14:11:20.6095421Z     "termsOfUse":  "",
2024-06-24T14:11:20.6096090Z     "applicableProducts":  [
2024-06-24T14:11:20.6096458Z 
2024-06-24T14:11:20.6097020Z                            ],
2024-06-24T14:11:20.6097514Z     "industries":  [
2024-06-24T14:11:20.6097932Z 
2024-06-24T14:11:20.6098396Z                    ],
2024-06-24T14:11:20.6098879Z     "productTags":  [
2024-06-24T14:11:20.6099254Z 
2024-06-24T14:11:20.6099764Z                     ],
2024-06-24T14:11:20.6100370Z     "marketingOnlyChange":  false,
2024-06-24T14:11:20.6100897Z     "additionalCategories":  [
2024-06-24T14:11:20.6101282Z 
2024-06-24T14:11:20.6101749Z                              ],
2024-06-24T14:11:20.6102230Z     "appVersion":  "3.0.3.3",
2024-06-24T14:11:20.6102810Z     "submissionVersion":  "",
2024-06-24T14:11:20.6103362Z     "customAmendments":  [
2024-06-24T14:11:20.6103696Z 
2024-06-24T14:11:20.6104182Z                          ]
2024-06-24T14:11:20.6104709Z }
2024-06-24T14:11:20.6105229Z VERBOSE: PUT 
2024-06-24T14:11:20.6106064Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/properties/9f2ea6d0-862d
2024-06-24T14:11:20.6108345Z -8d5a-ecda-b4d1740b2f49 with -1-byte payload
2024-06-24T14:11:21.3272614Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:11:21.3342031Z POST https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions
2024-06-24T14:11:21.3342705Z {
2024-06-24T14:11:21.3343239Z     "resources":  [
2024-06-24T14:11:21.3344664Z                       {
2024-06-24T14:11:21.3345262Z                           "type":  "Package",
2024-06-24T14:11:21.3346021Z                           "value":  "27499ed2-9d21-4111-b3d8-03b4f1c5c25b"
2024-06-24T14:11:21.3347176Z                       },
2024-06-24T14:11:21.3347667Z                       {
2024-06-24T14:11:21.3348427Z                           "type":  "Property",
2024-06-24T14:11:21.3349393Z                           "value":  "9f2ea6d0-862d-8d5a-ecda-b4d1740b2f49"
2024-06-24T14:11:21.3349717Z                       }
2024-06-24T14:11:21.3350214Z                   ],
2024-06-24T14:11:21.3350455Z     "targets":  [
2024-06-24T14:11:21.3353610Z                     {
2024-06-24T14:11:21.3354592Z                         "type":  "Scope",
2024-06-24T14:11:21.3355025Z                         "value":  "preview"
2024-06-24T14:11:21.3355279Z                     }
2024-06-24T14:11:21.3355578Z                 ],
2024-06-24T14:11:21.3355853Z     "resourceType":  "SubmissionCreationRequest"
2024-06-24T14:11:21.3356117Z }
2024-06-24T14:11:21.3356341Z VERBOSE: POST 
2024-06-24T14:11:21.3357009Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions with -1-byte
2024-06-24T14:11:21.3357449Z  payload
2024-06-24T14:11:23.0937505Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:11:53.0944278Z VERBOSE: GET 
2024-06-24T14:11:53.0945356Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:11:53.0945962Z 7921375/workflowdetails with 0-byte payload
2024-06-24T14:11:53.5870664Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:11:53.6115272Z Automated validation.VERBOSE: GET 
2024-06-24T14:11:53.6116003Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:11:53.6116457Z 7921375 with 0-byte payload
2024-06-24T14:11:54.0490247Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:12:24.0567481Z VERBOSE: GET 
2024-06-24T14:12:24.0568464Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:12:24.0568939Z 7921375/workflowdetails with 0-byte payload
2024-06-24T14:12:25.3446266Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:12:25.3495242Z .VERBOSE: GET 
2024-06-24T14:12:25.3496121Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:12:25.3496626Z 7921375 with 0-byte payload
2024-06-24T14:12:25.7701703Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:12:55.7633339Z VERBOSE: GET 
2024-06-24T14:12:55.7634366Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:12:55.7634856Z 7921375/workflowdetails with 0-byte payload
2024-06-24T14:12:56.2087187Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:12:56.2135476Z .VERBOSE: GET 
2024-06-24T14:12:56.2136322Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:12:56.2138389Z 7921375 with 0-byte payload
2024-06-24T14:12:56.6541757Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:13:26.6608605Z VERBOSE: GET 
2024-06-24T14:13:26.6609659Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:13:26.6610147Z 7921375/workflowdetails with 0-byte payload
2024-06-24T14:13:27.1714184Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:13:27.1768550Z .VERBOSE: GET 
2024-06-24T14:13:27.1769484Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:13:27.1770184Z 7921375 with 0-byte payload
2024-06-24T14:13:27.6264967Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:13:57.6398395Z VERBOSE: GET 
2024-06-24T14:13:57.6399220Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:13:57.6399714Z 7921375/workflowdetails with 0-byte payload
2024-06-24T14:13:58.0729604Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:13:58.0780388Z .VERBOSE: GET 
2024-06-24T14:13:58.0781239Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:13:58.0781705Z 7921375 with 0-byte payload
2024-06-24T14:13:58.5198588Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:14:28.5272619Z VERBOSE: GET 
2024-06-24T14:14:28.5273679Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:14:28.5274317Z 7921375/workflowdetails with 0-byte payload
2024-06-24T14:14:28.9753557Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:14:28.9802755Z .VERBOSE: GET 
2024-06-24T14:14:28.9803589Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:14:28.9805870Z 7921375 with 0-byte payload
2024-06-24T14:14:29.4930302Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:14:59.5075699Z VERBOSE: GET 
2024-06-24T14:14:59.5076893Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:14:59.5077462Z 7921375/workflowdetails with 0-byte payload
2024-06-24T14:14:59.9622273Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:14:59.9671545Z .VERBOSE: GET 
2024-06-24T14:14:59.9672598Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:14:59.9676387Z 7921375 with 0-byte payload
2024-06-24T14:15:01.1927807Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:15:31.2043046Z VERBOSE: GET 
2024-06-24T14:15:31.2044331Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:15:31.2044827Z 7921375/workflowdetails with 0-byte payload
2024-06-24T14:15:31.6983955Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:15:31.7036361Z .VERBOSE: GET 
2024-06-24T14:15:31.7037287Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:15:31.7037853Z 7921375 with 0-byte payload
2024-06-24T14:15:32.2724753Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:16:02.2782285Z VERBOSE: GET 
2024-06-24T14:16:02.2783372Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:16:02.2783926Z 7921375/workflowdetails with 0-byte payload
2024-06-24T14:16:02.7596710Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:16:02.7621671Z  Failure
2024-06-24T14:16:02.7650255Z VERBOSE: GET 
2024-06-24T14:16:02.7651074Z https://api.partner.microsoft.com/v1.0/ingestion/products/67358f61-fa6c-46e7-a03f-7a8294bfa4dc/submissions/115292150569
2024-06-24T14:16:02.7651557Z 7921375 with 0-byte payload
2024-06-24T14:16:03.2281010Z VERBOSE: received -1-byte response of content type application/json; charset=utf-8
2024-06-24T14:16:03.2297751Z New AppSource submission failed
2024-06-24T14:16:03.2310035Z resourceType       : Submission
2024-06-24T14:16:03.2310876Z state              : InProgress
2024-06-24T14:16:03.2311474Z substate           : Failed
2024-06-24T14:16:03.2312189Z targets            : {@{type=Scope; value=Preview}}
2024-06-24T14:16:03.2316157Z resources          : {@{type=Availability; value=cf2f3781-0af6-f5cc-0365-51a9bdb1e6b7}, @{type=Listing; 
2024-06-24T14:16:03.2316813Z                      value=fdb2d2ba-a4ed-e90d-14f8-3f08c026f100}, @{type=Package; 
2024-06-24T14:16:03.2317339Z                      value=27499ed2-9d21-4111-b3d8-03b4f1c5c25b}, @{type=Property; 
2024-06-24T14:16:03.2317823Z                      value=9f2ea6d0-862d-8d5a-ecda-b4d1740b2f49}...}
2024-06-24T14:16:03.2318351Z publishedTimeInUtc : 1601-01-01T00:00:00Z
2024-06-24T14:16:03.2318723Z pendingUpdateInfo  : @{updateType=Create; status=Completed}
2024-06-24T14:16:03.2319050Z releaseNumber      : 38
2024-06-24T14:16:03.2319340Z friendlyName       : Submission 38
2024-06-24T14:16:03.2319679Z areResourcesReady  : True
2024-06-24T14:16:03.2320261Z id                 : 1152921505697921375
2024-06-24T14:16:03.2320420Z 
2024-06-24T14:16:04.0103836Z 
2024-06-24T14:16:04.0107781Z 
2024-06-24T14:16:04.1380444Z ##[section]Finishing: Publish app to appsource

Screenshots
image

Additional context

  • does it happen all the time? - Usually, apps are published without errors, but when there are some, it should fail
  • did it use to work? - No

Thank you in advance :)

@freddydk
Copy link
Contributor

freddydk commented Jun 28, 2024

New-AppSourceSubmission doesn't throw an error - it returns the submission object where you can see the status.

It does throw if it cannot create the appsource submission - it does not throw if there are validation errors.

In most cases, the app submission is done async and I cannot return the error anyway.

The implementation in AL-Go for GitHub does it like this: https://github.com/microsoft/AL-Go/blob/3ecb65a53dfa9187e7b329bebdc443e42c6dde51/Actions/Deliver/Deliver.ps1#L486

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants