Can DataBaseConnection type be passed as argument?


#1

Hello All,

Can DataBaseConnection type be passed as argument to other invoke file. I am getting the error Object reference not set to an instance error.

Currently i need to create the connection in a workflow and pass it as out argument to a main workflow file. Again the same has to be utilized by next workflows as in - argument.


#2

Yes , it can be passed as a in - argument .
Like this :

image


#3

Hello Takayosi,

I was able to pass as a in and also as out argument. But it was erroring out saying that the object reference as not initialized.

This message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, you should delete this message and any disclosure, copying, or distribution of this message, or the taking of any action based on it, by you is strictly prohibited.

v.E.1


#4

Hi @SaiLearning

Maybe show some details about what you did well be helpful.


#5

Hi lainh,

We can pass and work with it. I had too many arguments thus might have got jumbled. Today when I restarted the uipath it started working.


#6

@SaiLearning

That’s good for you.