Skip to content

Operation /model/saveAs responds with an error code and success:false even though it has worked

When deployed as part of the ADOxxWeb API the /model/saveAs operation returns a failure message even though it has worked.

With the inputs 91215 for modelID, something copy for name and 90600 for dirID the response from the server was "success": false and even returned "ecode": "66":

{
  "success": false,
  "startDate": "22.09.2025,01:09:49",
  "endDate": "22.09.2025,01:09:50",
  "script": "CC \"Core\" UPDATE_MODEL_LIST \r\nCC \"Core\" LOAD_MODEL modelid:(91215) \r\nCC \"Core\" SAVE_MODEL_AS modelid:(91215) basename:\"something copy\" version:\"\" mgroupids:\"90600\" \r\nIF (ecode = 0) {\r\nCC \"Core\" DISCARD_MODEL modelid:(newmodelid) \r\n}\r\nCC \"Core\" DISCARD_MODEL modelid:(91215) \r\n\r\nSET adowsresponse:(STR newmodelid + \"@@@\" + STR ecode)",
  "duration": 621,
  "ecode": "66",
  "errorText": "MODEL_NOT_LOADED",
  "result": 97207
}

However, the original model (91215 -> "something 2025.09.17 11:19:27") has been correctly saved as something copy:
image