We are using SWIS REST API to set custom properties on various entities. After upgrading to SolarWinds 2022.4, the REST API call for setting Report custom properties started failing. Similar REST calls for setting Node and Group custom properties work OK. This was working in version 2020.2.4 and prior versions. Here are the deployment scenarios I've tried, the error is always the same:
- Upgrade from 2020.2.4 to 2022.4
- Fresh install 2022.4
- Upgrade from 2022.4 to 2022.4.1
Setting Report Comments custom property fails. Similar failure for other Report custom properties.
REST Request:
POST 192.168.5.21:17778/.../CustomProperties
{"Comments":"Set Custom Property Test"}
REST Response:
HTTP/1.1 400 Bad Request
{"Message":"Property Comments mapped to a storage defined by query cannot be modified.","ExceptionType":"System.NotImplementedException","FullException":"System.NotImplementedException: Property Comments mapped to a storage defined by query cannot be modified.\r\n at SolarWinds.InformationService.Core.CrudProcessor.ValidateMappingFragments(IQueryExecutionContext context, IEntityTypeMapping entityMapping, ICollection`1 properties, IMultiStorageCrudDataProvider& multiStorageCrudDataProvider)\r\n at SolarWinds.InformationService.Core.CrudProcessor.UpdateInternal(Boolean bulkMode, SwisUriResolver uriResolver, IDictionary`2 propertiesToUpdate, IQueryExecutionContext context)\r\n at SolarWinds.InformationService.Core.CrudProcessor.Update(SwisUri uri, IDictionary`2 propertiesToUpdate, IQueryExecutionContext context)\r\n at SolarWinds.InformationService.Core.InformationService.Update(String uri, IDictionary`2 propertiesToUpdate)"}
Setting Report Comments custom property using the bulk update endpoint fails with the same error:
REST Request:
POST 192.168.5.21:17778/.../BulkUpdate
{"uris":["swis://192.168.5.21./Orion/Orion.Report/ReportID=1/CustomProperties"],"properties":{"Comments":"TEST Comment"}}
REST Response:
HTTP/1.1 400 Bad Request
{"Message":"Property Comments mapped to a storage defined by query cannot be modified.","ExceptionType":"System.NotImplementedException","FullException":"System.NotImplementedException: Property Comments mapped to a storage defined by query cannot be modified.\r\n at SolarWinds.InformationService.Core.CrudProcessor.ValidateMappingFragments(IQueryExecutionContext context, IEntityTypeMapping entityMapping, ICollection`1 properties, IMultiStorageCrudDataProvider& multiStorageCrudDataProvider)\r\n at SolarWinds.InformationService.Core.CrudProcessor.UpdateInternal(Boolean bulkMode, SwisUriResolver uriResolver, IDictionary`2 propertiesToUpdate, IQueryExecutionContext context)\r\n at SolarWinds.InformationService.Core.CrudProcessor.BulkUpdate(IEnumerable`1 uris, IDictionary`2 propertiesToUpdate, IQueryExecutionContext context)\r\n at SolarWinds.InformationService.Core.InformationService.BulkUpdate(String[] uris, IDictionary`2 propertiesToUpdate)"}
Setting Node Comments custom property works OK.
REST Request:
POST 192.168.5.21:17778/.../CustomProperties
{"Comments":"Set Custom Property Test"}
REST Response:
HTTP/1.1 200 OK
Any help would be appreciated.