- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 03:54 AM
Hi all,
I have created a string field on " sn_sam_software_installation_task" table called as Name, I want to copy the variable called "device" value into Name field So I am using the flow designer but I am getting below error.
but when I tried to add logs I am getting the correct value.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 09:17 AM
if the field is on parent and you are creating record on child table then that field will be inherited so no issue in that.
I hope it's not the reverse
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
04-07-2025 03:59 AM
seems you are using toString() on a empty or null value and hence it gave this error.
Is that variable i.e. name an empty string?
share that detail, but you are not setting "name" field in your Field Values
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
04-07-2025 04:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 04:11 AM
so the variable "device" is reference type and you are dot walking and getting the name?
but where are you setting it in "sn_sam_software_installation_task" step in "Create Record"?
I couldn't see it in this below image
Did you hard-code name field and see if it creates that record?
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
04-07-2025 04:22 AM - edited 04-07-2025 04:26 AM
Hi @Ankur Bawiskar ,
yes device variable is reference field and I am setting the values in create task at last step as below:
also the same thing is working for some devices and throwing error for some other.