New error

getting this error

Argument ‘Condition’: BC30574: Option Strict On disallows late binding.
Argument ‘Condition’: BC30574: Option Strict On disallows late binding.
One or more children have validation errors or warnings.

how to rectify it

Hi @Pooja_Kanwar,
Please share the code that’s causing the error.

Hi @Pooja_Kanwar

Sometimes you can correct this error as below:

  • Modify the object declaration to use an explicit type.
  • or -
  • Modify the late-bound expression to specify an explicit type.
  • or -
  • Let the compiler infer a specific type.
  • or -
  • Turn Option Strict off by removing the word On after it or by explicitly specifying Off.

Cheers!

not String.IsNullOrWhiteSpace(in_TransactionItem(0)(“First Name”).tostring) Andalso Not String.IsNullOrWhiteSpace(in_TransactionItem(1)(“Last Name”).ToString)

Can you explain , what condition you need?

@Pooja_Kanwar,

You are missing to mention SpecificContent if your transaction item is Queue Item. Use below code snippet and you should be fine.

not String.IsNullOrWhiteSpace(in_TransactionItem(0).SpecificContent(“First Name”).tostring) Andalso Not String.IsNullOrWhiteSpace(in_TransactionItem(1).SpecificContent(“Last Name”).ToString)

Thanks,
Ashok :slight_smile:

@Pooja_Kanwar

What is the type of in_transactionitem

Cheers

Hi @Pooja_Kanwar ,
Please try as below:

not String.IsNullOrWhiteSpace(in_TransactionItem.SpecificContent(“First Name”).tostring.Trim) Andalso Not String.IsNullOrWhiteSpace(in_TransactionItem.SpecificContent(“Last Name”).ToString.Trim)

NOTE: I am assuming that the in_TransactionItem type is UiPath.Core.QueueItem.

Cheers!