Flow Designer - Erro - Invalid pharmacy compound uuid: 4e536ea7-84ba-4819-bedb-344306fef337

Bruno Moreira
Tera Expert

 

  has anyone experienced this error when activating a Flow in the Flow designer?

 

BrunoMoreira_0-1721918324316.png

 

I can change and save my flow. I can test the flow, but I can't activate my flow.

I'm on the Washington DC version patch4-hotfix1

2 ACCEPTED SOLUTIONS

Bruno Moreira
Tera Expert

I removed the "Get catalog variables" component and inserted it again and the problem was solved

View solution in original post

Paul Sisson
Tera Expert

I didn't have a "Get Catalog Variables" action to delete, so I just deleted everything and re-did it. Worked like a charm!

View solution in original post

21 REPLIES 21

Blessing3
Tera Contributor

I had the same issue and I was very close to re-creating the entire flow but thankfully I found the issue after going through each Line action in the flow. The issue was due to a wrong entry in two of my data pill. See screenshot for an example of what was causing the issue. 

Once I deleted that entry and fixed the data pill, it worked. 

Blessing3_0-1740162632117.png

 

Edxavier Robert
Mega Sage

Please look at this KB from ServiceNow

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB1710698

 

As @Blessing3 mention this is due a data pill issue. Please go into each of your steps and verify one by one. 

Kelly Logan
Kilo Sage

It really seems like sometimes a reference of some type gets corrupted, but it's not clear what it is. It would be very helpful if we could translate these into a specific object or connection to look at and diagnose. So far the only solutions seems to be 'delete everything until it starts working'. 

danielanork
Tera Contributor

I also had this error and think i found a good way to troubleshoot and resolve it.

"Invalid pharmacy compound UUID:" refers to the table sys_hub_pill_compound, where the field "UI Unique ID" is the sys_id being referenced in the error.

Steps to Troubleshoot:

  1. Navigate to: sys_hub_pill_compound.list
  2. Filter by:
    UI Unique ID = [enter the sys_id from the error message
  3. This will return a list of pill compounds.
    In the "Pill Prescription" column, you'll see the sys_id and the name of the data pill.
    Go through your flow and remove any references to this data pill.
  4. Try activating your flow again.


This issue seems to happen when a copied flow tries to reference a data pill from the original flow. Since the reference is no longer valid in the new context, it throws the error. 

ViktoriaMikoova
Tera Contributor

I have run into the same issue, removing and replacing the Get Catalog variables action didn't help. It's a shame I didn't noticed solutions from @danielanork Blessing3 and newmanan as they would have saved me a lot of time and I think they should be the accepted solutions. 

Anyway, how I found the exact step that had the corrupted data pill instead of going through every step was this: 

I opened the System Diagnostics -> Session Debug -> Debug Log and then run test on the flow again. 
In the logs I got the "Invalida pharmacy compound uuid" error again but before it you can actually see which step was the last that was created OK - in my case step 20 so then it was easy to go to step 21 and find the corrupted pill there. By replacing the corrupted data pill the issue was fixed.

ViktoriaMikoova_0-1752743890483.png

ViktoriaMikoova_1-1752743924736.png