Can't assign queueItem.specificContent("Column Header").toString because the value is null

System exception.Can not assign ‘in_TransactionItem.SpecificContent(“Status”).ToString’ to ‘Status’. at Source: Throw

in_TransactionItem is Queue Item dataType in Argument
the error because the value is null in the orchestrator queue item, how to handle this?

i want if status = null then status = “”

using this in if is still not working:
String.isnullorwhitespace(in_TransactionItem.SpecificContent(“Status”).ToString)

i don’t want to use trycatch to handle this, any idea?

Hi @wija

Try the below syntax

String.IsNullOrEmpty(in_TransactionItem.SpecificContent(“Status”).ToString) Or String.isnullorwhitespace(in_TransactionItem.SpecificContent(“Status”).ToString)

Regards

weird, just works 2 transactions, the rest are same error again.

Hi @wija

Are you getting the same error. Can you share the screenshot of transaction item where you got the error.

Regards

now i re-run it again and all transaction are error again.

the error:
System exception.Object reference not set to an instance of an object. at Source: If

using your syntax above.

Status in orchestrator queue item = null

Hi @wija

Can you share the flow you are doing??

Regards

Hi @wija

Try the below syntax

in_TransactionItem.SpecificContent("Status") IsNot Nothing

Regards

hey why u delete this, this syntax is working.

Is your query resolved @wija

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.