Currently I have a process builder flow that is built to assign a task to the case owner when a case comment is added by someone other than the case owner. 90% of the time this works great, but when the case is owned by a queue rather than a user, my process builder breaks when attempting to assign the task, as it sees the queue id as an incorrect ID when expecting a user ID.
Given that this is a process builder and not an apex function, I am not sure if there is a good way to dynamically check each case and somehow differentiate between the owner being a queue vs the owner being a user. I had considered making another block on my process builder, one for assigning to user and one for assigning to queues, but I am not sure how to differentiate between them and I am also not sure if you can even assign a task to a queue at all.
Any help would be appreciated. I've posted a couple screenshots of the process builder below.