'call: argument fn is undefined' subflow error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2025 11:18 PM - edited 07-06-2025 11:18 PM
Hi Team,
I am getting the following error 'call: argument fn is undefined' when I am trying to convert some flow actions to a subflow.
Has anyone encountered such issue before?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-06-2025 11:34 PM
Hi @ShAn21,
never experienced this myself, from the error message it indicates some issue with "fn" and the more similar what I can get to is on the IF conditions (or any other condition builders), when you go to the leftmost bubble and hover over to the end of the right side, you can get there a function bubble, it is the (+fx) from my screenshot:
Please review the actions/steps that you are converting whether they contains this, if so, the colour would be darker, as following one:
Not sure if it helps but at least you can try..
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2025 12:11 AM
please share the complete subflow actions you added
It's definitely some step is using something which is not available or not declared.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-07-2025 12:16 AM
Hi @ShAn21 ,
Can you please the entire subflow screenshot and the error screenshot.