Skip to main content
Question

Problem with Log File

  • November 19, 2025
  • 1 reply
  • 24 views

Forum|alt.badge.img

Hi I created a directory named "C:\\RPA\\MeuBot\\Log" and a file named "Bernardo.Log" on my computer and added a JSON with the path of it in the Config of my Control Room. I also have created a dictionary directing both paths. However, when I try to call the open the log file with this dictionary it always creates an error message , that is how I am writing the path to the log file $p_dicConfig{DIRETORIO_LOG}$/$p_dicConfig{NOME_ARQUIVO_LOG}$ . I need to access the log file by using the dictionary I was ordered to not access it by using "C:\\RPA\\MeuBot\\Log\\Bernardo.Log” this way 

 

1 reply

Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • November 20, 2025

Hi ​@bernardocavalcante,

 

In A360, when you read a JSON into a Dictionary and want to reference its values:

  • Use quotes around the key:

               p_dicConfig{"DIRETORIO_LOG"} - Correct
               not p_dicConfig{DIRETORIO_LOG} - Wrong

  • Use the Windows path separator \ (or \\ inside JSON), not /.
  • Ensure your JSON paths have escaped backslashes:

               "DIRETORIO_LOG": "C:\\RPA\\MeuBot\\Log",
               "NOME_ARQUIVO_LOG": "Bernardo.Log"

$p_dicConfig{"DIRETORIO_LOG"}$ + "\" + $p_dicConfig{"NOME_ARQUIVO_LOG"}$

  • JSON keys have escaped backslashes:
  • "DIRETORIO_LOG": "C:\\RPA\\MeuBot\\Log"
  • Dictionary keys use quotes: {"KEY"}
  • Use \ (not /) for Windows paths.

This will resolve the error.