Hi Team, I have created a custom utility like bel...
# best-practices
s
Hi Team, I have created a custom utility like below.
Copy code
- name: salesforce-discover
      namespace: salesforce_discover
      commands:
        hello:
            executable: echo
            args: ["Hello World"]
        verify:
            executable: python
            args: ["bin/salesforce_discover.py", "$CONFIG_PATH", "verify"]
The requirement is I want to override the discovery output for salesforce instead of using the existing "--discover" functionality. But when I am executing these commands, I am getting the error.
Copy code
(sibaVenv) PS C:\Siba_\Work\LocalSetup\Backend\backend_05062025\backend_2304> meltano invoke salesforce-discover:hello
2025-07-15T16:09:16.508600Z [warning  ] Failed to create symlink to 'meltano.exe': administrator privilege required
2025-07-15T16:09:16.536909Z [info     ] Environment 'dev' is active   
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.

'CommentedSeq' object has no attribute 'read'
(sibaVenv) PS C:\Siba_\Work\LocalSetup\Backend\backend_05062025\backend_2304> meltano invoke salesforce-discover:verify
2025-07-15T16:17:59.700345Z [warning  ] Failed to create symlink to 'meltano.exe': administrator privilege required
2025-07-15T16:17:59.743028Z [info     ] Environment 'dev' is active   
Need help fixing this problem? Visit <http://melta.no/> for troubleshooting steps, or to
join our friendly Slack community.

'CommentedSeq' object has no attribute 'read'
(sibaVenv) PS C:\Siba_\Work\LocalSetup\Backend\backend_05062025\backend_2304>
From quick search on internet, it seems there is some issue with parsing the YAML file but not sure where exactly. If anyone has any idea on this, can you please help.
e
Double check your indendation
s
yeah indentation was fine. but I could narrow down the issue to the "args". When I am giving a list like
Copy code
args: ["bin/salesforce_discover.py", "$CONFIG_PATH", "verify"]
Then its causing this error -
'CommentedSeq' object has no attribute 'read'
Even with meltano 3.8.0, I am facing the same issue. Is the list not supported under "args" ?
Note : I corrected the indentation in my previous message.
a
I think you can provide the args just as a simple string, not an array. See example here: https://docs.meltano.com/reference/plugin-definition-syntax/#commandscommand_namecontainer_spec
👍 2
e
Yeah,
args
needs to be a string
s
Thanks @Andy Carter @Edgar Ramírez (Arch.dev)