Roy Solberg
Roy Solberg

Reputation: 19643

Getting error code 204144647 with message "The new service has can't be edited service,which can't be updated" from AppGallery Connect API

I've used the sample code of Huawei AppGallery's Connect API as base for automating app publishing. This is mainly going well, but is failing when trying to set an uploaded app bundle as draft.

These are the steps we are doing:

  1. Getting a token
  2. Getting app info
  3. Uploading app bundle
  4. This step fails: Updating "app file info"

The sample code's model classes seemed to miss a field for the fileName according to the documentation for updating app file information when uploading an app package, so I have added that.

When updating the file info I get the following error message back: {"code":204144647,"msg":"[cds]update service failed, additional msg is [The new service has can't be edited service,which can't be updated!]"}

The common result codes only describes this as "Failed to update the service."

What could the underlying problem be? And how can it be fixed?

Upvotes: 2

Views: 608

Answers (1)

Roy Solberg
Roy Solberg

Reputation: 19643

It turns out the operation of updating the file info was blocked by another app bundle being in review.

The same error is still present when the app has been approved, but is in a phased roll-out. The moment the app is set to "Full release" and then get status "Released" it should be possible to update the file info and get a new app bundle into draft. Hopefully this will change so that it would be possible to have both an app in staged roll-out and preparing a new draft.

Update: The same day as I got that error code the list of software packages didn't update, the after the phased roll-out was at 100% all the uploads I thought to have failed was there in the list.

Upvotes: 3

Related Questions