if config file is delete from the folder by mistake, so what approach should i use so that that my bot is not stop UiPath ref
Hi @Arvind1 ,
If you are storing any data in config file, you should create a config file in same location and with same data.
if no data stored then just create a excel file within same location and same name.
Hi @Arvind1
You may stored all the information of assets or data in settings and constant sheet. which is useful in the worklfow too. Instead of doing that better to handle it as Business rule exception.
If you are using the RE Framework then I recommended to use the File Exist activity before the Intitallsettings.xaml in Initialization state. Give the path of the Config.xlsx file activity in File Exist and create a variable in the output. Then use the If activity to check the condition ‘FilExist_bool = True’, In then block insert the Initallsettings.xaml workflow in else block use the throw activity to throw the business rule exception that Config file is missing the location.
Hope you understand!!
@ yedukondaluaregala
Thanks for reply
hi @ mkankatala
Thanks and understand, please guide if we use any master file with same config file name in any other folder
First thing, why to over engineer the logic?
It’s a basic requirement to have the Config available be it in the package when published or over a network drive.
You can add a condition at the start to check if Config is available or not and if not, just fault the job saying Config file unavailable.
It will be very hard to add this auto healing Config kind of logic and it will be a non value added thing.
There is no option if you are using any data from config file, without config file your bot will thrown exception.
its better to recreate the file or you can add if condition whether if config file available read data from config file or else skip
hi @ All
Thanks for suggestion and its really helpful
Please mark it solution to close this topic
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.