Skip to main content

Hello,

I am trying to delete an attachment from a document revision via workflow, but I am getting this error:

 

 

Unfortunately the general error message is not really helpful.

 

When I run the same in postman everything works fine. Basically it is the same REST-Call the Aurena Client uses when an attachemnt is deleted from the document revision.

 

Any ideas why id does not work via workflow?

Hi,

My theory, but it's probably hard to trouble shoot this, is that the resulting HTTP request doesn't look like it should. I haven't worked with workflows much but is there a way to see exactly how the HTTP request looks like? Does the log show any such details?

Longshot: should there have been any quotes (single or double) around "ORIGINAL" there? 🤔 
 


@Mathias Dahl 

Hi Mathias,

usually no quotes are needed. When I change the parameter to a non-existing file (like the DocType to “XYZ”), I don’t get an error but - of course - the file is not getting deleted.

Therefore, it seems the system tries to delete the file but for some reason it throws an error.

 

/Stefan


@FleStefSc 

That's probably a good conclusion... It's hard to say what could be wrong without more details. A long-shot: Could it be that the user that executes the workflow transaction doesn't have Edit or Admin access on the document?


@Mathias Dahl 

I am using the same user for workflow and Postman. But anyway, I will try to find another solution. Thank you!


Reply