cancel
Showing results for 
Search instead for 
Did you mean: 

difference between control room and studio

KristianHolm1
Level 5
Hi blueprism I have found out that running some code in studio can result in a different output when you run the same code in the control room.

Example

Studio:
Today() = 08-10-2020

Control room:
Today() = 08\10\2020

Do you know if there is other examples on the difference between the control room and studio output.

Greetings


------------------------------
Kristian Holm
RPA programmer
PenSam (Pension Company)
Copenhagen Denmark
------------------------------
Kristian Holm RPA programmer PenSam (Pension Company) Copenhagen Denmark
8 REPLIES 8

lookman
Staff
Staff
Hi Kristian.

Are you running the process from studio on the same digital worker that the process is running on from the control room?

jack


------------------------------
Jack Look
Sr Product Consultant
Blue Prism
------------------------------

Hi Kristian,

Have you run scheduler from same machine ?

You can add below logic in your process

  1. if found "\" then replace with "_" or blank (input will be 23\10\2010 – Output will be 23_10_2010 or 23102010 according to your condition)
  2. If found "-" replace with "_" or blank (input will be 23-10-2010 – Output will be 23_10_2010 or 23102010 according to your condition)
Note - Use instr function with calculation stage

I hope it will help you.

Thanks
Nilesh

------------------------------
Nilesh Jadhav
Senior RPA Specialist
------------------------------
Nilesh Jadhav.
Consultant
ADP,India

​Hi Nilesh Jadhav

The question was more if the code is interpreted differently when you running it from studio than the control room

Same code but different output from the two blueprism environments.

greetings

------------------------------
Kristian Holm
RPA programmer
PenSam (Pension Company)
Copenhagen Denmark
------------------------------
Kristian Holm RPA programmer PenSam (Pension Company) Copenhagen Denmark

Hi Jack Look I am running with two different digital worker, but do digital workers have any influence on how blueprism interprets the code?


Example

Studio:
Today() = 08-10-2020

Control room:
Today() = 08\10\2020

Greetings



------------------------------
Kristian Holm
RPA programmer
PenSam (Pension Company)
Copenhagen Denmark
------------------------------
Kristian Holm RPA programmer PenSam (Pension Company) Copenhagen Denmark

Hi Kristian.

After some discussion with a learned colleague, I was reminded that Today() is requesting the date from Windows. If the configuration on one machine is different from the configuration on the other, that may explain it.

Have you tried running the process from the control room on the same machine that you ran it in studio? 

jack

------------------------------
Jack Look
Sr Product Consultant
Blue Prism
------------------------------

Hi Jack

Do you know if there is other examples on the difference between the control room and studio output.  ​Like the example Today(). Because when you now there is a difference then you can make the code correct. It's more if there is others issues like today() in Blueprism code you are not aware of.

Greetings

------------------------------
Kristian Holm
RPA programmer
PenSam (Pension Company)
Copenhagen Denmark
------------------------------
Kristian Holm RPA programmer PenSam (Pension Company) Copenhagen Denmark

Hi Krisitan.

I'm not aware of other issues offhand but this does bring up a good point. Some system commands will return information from Windows in whatever format that the runtime resource is on so you need to think about this when designing your process/object.

Apropos Today(), ss you know, there are many Date functions available so that you can specifically format the date to suit your needs. It is just something you'll have to keep in mind.

jack

------------------------------
Jack Look
Sr Product Consultant
Blue Prism
------------------------------

Jared.Rumball
Level 6
An old post, but thought I would add to the discussion in case it helps someone else...

As others have mentioned or alluded to, the date functions in Blue Prism return values according to the Regional Settings on the local machine. So whatever format you see the date displayed in the Windows Start bar on the bottom right for example is what will be returned to Blue Prism when it requests this from the Windows system. 

So, a few things to note on infrastructure:
  • Always ensure that your Runtime Resource VDI's are configured in a standard way across your environment (and across Dev, Test, Prod environments!);
  • If possible for you in your IT infrastructure, have a standard build template/image that all Runtime Resources are created from;
  • Ensure that any Developer machines are also configured to mirror (as closely as possible) the Runtime Resource build.

Finally, if you are hitting these date format issues across different machines I would recommend that when you use the Today() function, store this into a Date data item first - this is the data type that is returned from the function. By storing it into a Date data item you are assured that a date is a date is a date, and you can use other date manipulation functions more easily as well (DateAdd etc). You can then use the FormatDate function to format it in whatever presentation format you need at any point - to write a particular format into a target application, or to write the date into a report in a desired format for example.


------------------------------
Jared Rumball
Q4 Associates Ltd
https://www.q4associates.biz/
------------------------------