Error: Cannot read property "_meta" from null

DamienT
Tera Contributor

Hi everyone,

 

I'm new to the forums and to service now so go easy!

 

I'm creating a flow behind a catalogue item which creates a ticket in a queue and then calls a subflow which generates a pdf document of the request. The subflow is very basic - it receives a sys is for a ticket, verifies that the ticket exists, generates a pdf via the API, then attaches the pdf to the ticket.

 

However I'm running into this error when the subflow runs:

Error: Cannot read property "_meta" from null,Detail: Cannot read property "_meta" from null

The logs seem to hint that the error is with the script, however I don't know where to begin troubleshooting this as the script doesn't include any variables called _meta.

Could anyone give me some hints or insight? 

 

Cheers!

2 REPLIES 2

Ankur Bawiskar
Tera Patron

@DamienT 

it clearly looks like input is not passed to that subflow and hence the error

check that

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

Tanushree Maiti
Tera Patron

Hi @DamienT 

 

Check you script here.  A script in flow or a Flow Designer action is attempting to access metadata or internal tracking data from an object, a record, or an API payload that is completely empty.

 

You can refer : 

"Cannot read properties of null" errors

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti