You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

GetFileData: "The object does not have the specified file attachment?" What? Yes it does.

Accepted answer
edited Jun 8, 2022 12:01PM in General Technical Discussions 1 comment


I'm trying to use the CWSS method GetFileData to get the data of an incident file attachment. It's almost working, except I get the following exception:

System.ServiceModel.FaultException: "The object does not have the specified file attachment"

See attached screenshot for the (relevant) code. Incident ID 741 has FileAttachment ID 807, I can confirm this with a simple report, but nevertheless I keep getting this same error. The attachment is not marked as private. What am I missing? 

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!