wija
(Fredy Wijaya)
June 25, 2024, 1:33am
1
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?
vrdabberu
(Varunraj Dabberu)
June 25, 2024, 2:00am
2
Hi @wija
Try the below syntax
String.IsNullOrEmpty(in_TransactionItem.SpecificContent(“Status”).ToString) Or String.isnullorwhitespace(in_TransactionItem.SpecificContent(“Status”).ToString)
Regards
wija
(Fredy Wijaya)
June 25, 2024, 2:15am
3
weird, just works 2 transactions, the rest are same error again.
vrdabberu
(Varunraj Dabberu)
June 25, 2024, 2:17am
4
Hi @wija
Are you getting the same error. Can you share the screenshot of transaction item where you got the error.
Regards
wija
(Fredy Wijaya)
June 25, 2024, 2:18am
5
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
vrdabberu
(Varunraj Dabberu)
June 25, 2024, 2:22am
6
Hi @wija
Can you share the flow you are doing??
Regards
vrdabberu
(Varunraj Dabberu)
June 25, 2024, 2:31am
7
Hi @wija
Try the below syntax
in_TransactionItem.SpecificContent("Status") IsNot Nothing
Regards
wija
(Fredy Wijaya)
June 25, 2024, 2:33am
8
hey why u delete this, this syntax is working.
vrdabberu
(Varunraj Dabberu)
June 25, 2024, 2:46am
9
Is your query resolved @wija
system
(system)
Closed
June 28, 2024, 2:47am
10
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.