Error with setRequestBodyFromAttachment in REST message

Erdogan _zdemir
Giga Contributor

Hi,

When using the  setRequestBodyFromAttachment method for sending an attachment, I have an error.

In the Outbound Http log, I received a "[ERROR CODE: -1] attachment does not exist with sys_id: 9ad8e2a74b4a4110ffa2d68dbce058f8" message. I verify the attachment sys_id and it is correct.

In Google I did not find anything about this error. Maybe in the community, someone could help me.

Thanks,

Erdogan

1 ACCEPTED SOLUTION

Erdogan _zdemir
Giga Contributor

Hi all,

I found the problem of the message "[ERROR CODE: -1] attachment does not exist with sys_id:".

The mid user has no enough right on the sys_attachment table. I added the mid users role in the "read" ACLs  and it fixed the issue.

View solution in original post

5 REPLIES 5

Erdogan _zdemir
Giga Contributor

Hi all,

I found the problem of the message "[ERROR CODE: -1] attachment does not exist with sys_id:".

The mid user has no enough right on the sys_attachment table. I added the mid users role in the "read" ACLs  and it fixed the issue.