ATTACHMENT_SCHEMA_NOT_CONFIGURED
Call CreateRoomMaintenance with an image and the order is created, but the image disappears; the image-delete operation can’t be tested either. The cause is how the OPERA database stores attachments, not the call itself.
- Message
ATTACHMENT_SCHEMA_NOT_CONFIGURED- Seen in
CreateRoomMaintenance(images),DeleteRoomMaintenanceImages- Root cause
- Attachment storage in BFILE mode; image path needs a database attachment schema
- Status
- Root cause found; the fix changes the database and hasn’t been applied in our lab
- Lab status
- Lab-tested
What we saw
- Creating, changing, resolving and deleting maintenance orders all work;
- Images sent with the order are silently dropped, with
ATTACHMENT_SCHEMA_NOT_CONFIGUREDin the response; DeleteRoomMaintenanceImagescan’t be verified because there’s nothing to delete.
Root cause
OPERA’s ATTACHMENT STORAGE parameter is BFILE (file-system storage). The maintenance-image code path checks for a real attachment schema in the database whatever the storage mode, and drops the image if there isn’t one.
Fix
An OPERA administrator has to create the attachment schema with OPERA’s database administration tooling. It’s a database-level change; do it with the hotel’s IT and Oracle support, with a backup first.
Advice for projects
