YAML Parsing Error When Running sam run in Solace Agent Mesh Project

Hello,

I’m new to using Solace Agent Mesh and I’m currently trying to create a project following the documentation.

After creating the virtual environment and project folder, I ran the following commands:

sam init
sam run

The initialization completed successfully, but when I try to run the project using sam run, I get the following error:

Starting Solace Application Run...
Loading environment variables from: C:\Users\shereen\Desktop\AgentMesh-Project-Demo\agentmeshdemo\.env
No specific files provided. Discovering YAML files...
Skipping discovery: shared_config.yaml
Final list of configuration files:
  - configs\agents\main_orchestrator.yaml
  - configs\gateways\webui.yaml

Error parsing YAML file 'main_orchestrator.yaml':  unacceptable character #x0007: special characters are not allowed
  in "<unicode string>", position 5350

It seems there’s a parsing issue with the main_orchestrator.yaml file, but I’ve checked the file contents and indentation, and everything appears correct. Could you please advise what might be causing this and how to resolve it?

Hi Shereen,

I can see you are using the window operating system and that why you are getting this error

in your .env files replace these two properties

WEB_UI_GATEWAY_DATABASE_URL=“sqlite:///C:\Workspace\sam\data\webui_gateway.db”
ORCHESTRATOR_DATABASE_URL=“sqlite:///C:\Workspace\sam\data\orchestratoragent.db”

with this

WEB_UI_GATEWAY_DATABASE_URL=“sqlite:///C:/Workspace/sam/data/webui_gateway.db”
ORCHESTRATOR_DATABASE_URL=“sqlite:///C:/Workspace/sam/data/orchestratoragent.db”

and let me know if you are still getting the issue.

1 Like

It worked, thank you so much Sahaj!

1 Like

Hey Shereen ! Just want to let you know this bug has been fixed, you can see it in the next release :slight_smile:

1 Like

Awesome! thanks for letting me know :grinning_face: