In SAS® Model Manager (on SAS® Viya®), you might encounter an error in the response when publishing a module to SAS Micro Analytics Service (MAS):
{"creationTimeStamp":"2019-12-18T12:48:08.495Z","modifiedTimeStamp":"2019-12-18T12:48:11.821Z","createdBy":"sasprovider","modifiedBy":"sasprovider","links":[{"method":"GET","rel":"up","href":"/modelPublish/models/cfd998d7-fe4c-4855-96b9-fff111ac2a87","uri":"/modelPublish/models/cfd998d7-fe4c-4855-96b9-fff111ac2a87","type":"application/vnd.sas.models.publishing.publish"},{"method":"GET","rel":"self","href":"/modelPublish/models/cfd998d7-fe4c-4855-96b9-fff111ac2a87/log","uri":"/modelPublish/models/cfd998d7-fe4c-4855-96b9-fff111ac2a87/log","type":"application/json"}],"version":1,"id":"43315af3-aaba-4faa-881c-e9c1d80017cb","publishName":"Rule set \"54_testy (1.0)\" was published by SAS Intelligent Decisioning.","destinationName":"maslocal","modelName":"54_testy1_0","log":"ERROR==={\"errorCode\":0,\"message\":\"Cannot create the module. The specified module ID \\\"<MODULE NAME>\\\" is already in use.\",\"links\":[],\"version\":2,\"httpStatusCode\":0}"}
The problem can occur when these conditions are true:
- You previously published the module with a name that begins with a number.
- You specified replace.
There are two workarounds:
- Delete the existing module and republish.
- Delete the existing module, change the name to begin with an alphabetic character, and publish.
A fix for this issue is planned for a future release.