'Set Assets' doesn't seem to be working?

Hi all, apologies if this is an obvious question, I’m still quite new to UiP.

I am working on a bot that has a ‘set asset’ activity which will change a bool value in the orchestrator to true or false. When I run the bot, it errors when it gets to this part and will say ‘True is not available’.

Does anyone know why this might happen? I am essentially trying to set a value to true or false based on a path which will determine the next steps of the process.

@dr1992

Try as Convert.ToBoolean(“True”) under the value

Hope this may help you

Thanks

Hi

The reason why it was not reflecting in asset of orchestrator the value type been passed

The type needs to coincide with the type of asset you want to update

So mention the value as
Convert.ToBoolean(“True”)

Cheers @dr1992

So, this bot was built by someone else, so I just want to understand.

The set asset has the asset name linked in the config file and the value of this (in properties) is ‘True’. Would this not be enough to change it?

Yeah just change the value passed in property panel of set asset

Like this

Convert.ToBoolean(“True”)

Early it was passed as string but it is of Boolean type in asset

That’s why it didn’t change in orchestrator

Make sure you have the access for orchestrator

Cheers @dr1992

@dr1992

As “True” is as String and you need to pass the boolean value

So that’s the reason we have to convert that into boolean first

Hope this may help you

Thanks

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