[ST Edge] Error packaging the driver with a different profile

When creating a new driver based on a previous one, if a profile is renamed, even if it does not have any device associated with that profile, when you do package error 400 appears, it says that a profile has been “xxxxxx” removed and don’t let continue.

PS C:\Users\Mariano\smartthings> .\smartthings edge:drivers:package C:\Users\Mariano\Documents\Mariano\VSC\SampleDrivers\zigbee-level-colortemperature-bulb-v3.5
    Error: Request failed with status code 400: 
    {"requestId":"E6CDFC10-0793-4EC0-AEE6-7755D323BEA3","error":{"code":"ConstraintViolationError","message":"The request is
    malformed.","details":[{"code":"ConstraintViolationError","target":"Profiles","message":"Profile(s) removed:

This is a mistake?
It has to do with this profile, does it have a VID created in API, although in this case it is not written in any profile of the new driver?

I’ve seen this error too, it can be solved by deleting the previous package (unpublish > uninstall > delete) and executing edge:drivers:package again. I’ll ask the engineering team about this to see if they can share more details about this behavior.


This worked fine!

1 Like

Awesome! The engineering team mentioned this behavior is normal because removing a device profile from the package is not currently supported. This is to avoid inconsistencies with the devices that could still be using this driver, removing the profile would leave them in a weird state.

1 Like