Hello all i have some nulls in the transaction item
how to Skip or assign value if its null !
i have done this
string.IsNullOrEmpty(in_TransactionItem.SpecificContent[“REM_INFO”].ToString().ToString().Replace(“\r\n”, “”).Replace(“\n”, “”).Replace(“\r”, “”)) == false
but still facing same issue
Test with:
!String.IsNullOrWhiteSpace(in_TransactionItem.SpecificContent["REM_INFO"])
@Hazem_Saleh ,
You can check/skip the transaction item by this condition:
in_TransactionItem.SpecificContent Is Nothing
Thanks,
Ashok
Thanks all i replaces my query to avoid this,
But can someone tell why when assign global variable UiPath freez!
I have a variable want to assign one time! during the process !
RPA_Dev13
(RPA_Dev13)
April 29, 2024, 2:08pm
7
Hazem_Saleh:
Hello all i have some nulls in the transaction item
how to Skip or assign value if its null !
i have done this
string.IsNullOrEmpty(in_TransactionItem.SpecificContent[“REM_INFO”].ToString().ToString().Replace(“\r\n”, “”).Replace(“\n”, “”).Replace(“\r”, “”)) == false
Try this one :
remInfo(string) = in_TransactionItem.SpecificContent?[“REM_INFO”]?.ToString()?.Replace(“\r\n”, “”)?.Replace(“\n”, “”)?.Replace(“\r”, “”);
if (!string.IsNullOrEmpty(remInfo))
ppr
(Peter Preuss)
April 29, 2024, 2:11pm
8
We recommend to to scope 1Topic = 1 case
As the topic started with the question about the null check, so lets stay with this only
Hazem_Saleh:
assign global variable
have a look at the Data Manager and configure the variable settings e.g. the scope to Global
1 Like
I understand that,
I opened new Topic
system
(system)
Closed
May 2, 2024, 2:27pm
10
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.