Circumstances that would cause incoming instance to be discarded by filter

Dear Sébastien and colleagues

I have an Orthanc installation from the Ubuntu 18.04 repositories, so it is fairly old (1.3.1).

We have a new modality sending images and radiation dose structured reports to the server. The RDSRs are coming through fine, but the images are being discarded.

I have tried starting the server with both --verbose and --trace, but the most I can find with either is “An incoming instance has been discarded by the filter”.

Would you please tell me the circumstances that this message is generated? I was hoping that with additional logging I might get a clue as to a SOP Class or transfer syntax that was being rejected or similar, but I don’t know what that message tells me.

I have a Lua script that passes the RDSR and some other image files to OpenREM, and saves any images with a ‘Physics’ patient name to a zip file. It is working correctly for images and RDSR from other modalities.

Is this message before or after any Lua processing?

I1214 13:31:56.309123 CommandDispatcher.cpp:491] Association Received from AET AZURION on IP 192.168.118.131
I1214 13:31:56.309470 main.cpp:187] Incoming connection from AET AZURION on IP 192.168.118.131, calling AET OPENREM
I1214 13:31:56.309531 CommandDispatcher.cpp:689] Association Acknowledged (Max Send PDV: 64222)
I1214 13:31:57.321794 main.cpp:200] Incoming Store request from AET AZURION on IP 192.168.118.131, calling AET OPENREM
I1214 13:32:00.491637 ServerContext.cpp:236] An incoming instance has been discarded by the filter
I1214 13:32:01.285163 main.cpp:200] Incoming Store request from AET AZURION on IP 192.168.118.131, calling AET OPENREM
I1214 13:32:04.222586 ServerContext.cpp:236] An incoming instance has been discarded by the filter
T1214 13:32:05.025978 Connection.cpp:388] SQLite::Connection::FlushToDisk
I1214 13:32:05.119690 main.cpp:200] Incoming Store request from AET AZURION on IP 192.168.118.131, calling AET OPENREM
I1214 13:32:09.444026 ServerContext.cpp:236] An incoming instance has been discarded by the filter
I1214 13:32:10.176592 main.cpp:200] Incoming Store request from AET AZURION on IP 192.168.118.131, calling AET OPENREM
I1214 13:32:12.374549 ServerContext.cpp:236] An incoming instance has been discarded by the filter
I1214 13:32:12.446650 CommandDispatcher.cpp:892] DUL Peer Requested Release
I1214 13:32:12.446701 CommandDispatcher.cpp:899] Association Release

Thank you for any advice you can give. I will of course attempt to chase this from the other end too.

Kind regards
Ed

I have established that in this case at least, that message is generated by the Lua ReceivedInstanceFilter function, and I have now amended my Lua script and resolved my issue.

Kind regards

Ed