Legacy Dev Forum Posts

 View Only

Sign Up

Export flow to YAML and import with Archy failed

  • 1.  Export flow to YAML and import with Archy failed

    Posted 06-05-2025 19:18

    sk_dk | 2023-02-23 10:52:10 UTC | #1

    Hi

    I just export flow as yaml from my org and try to import it again but it failed.

    Command: 'publish' could not find the 'queue' by name using the value 'SKTest2'. Error details: You are not authorized to perform the requested action. (not.authorized) Path: '/inboundCall/tasks/task[Soren Main12]/actions/dataTableLookup[_archydataTableLookup4_]/notFound/actions/transferToAcd[_archytransferToAcd8_]' Property name: 'targetQueue'

    I useed the command archy publish --recreate --file C:\Users\soren.kristiansen\Archy\archyHome\sabiodenmarkaps\SKMainv12-0.yaml

    I can publish other files without queue?


    jacobshaw | 2023-02-27 20:44:35 UTC | #2

    @sk_dk It looks like the flow has a dependency on a queue that is not found in your org. If the flow references a queue, that queue should exist in the org.

    Also make sure the credentials you pass to Archy have the appropriate permissions to create and publish a flow, including

    • architect:flow:add
    • architect:flow:unlock
    • architect:flow:publish

    sk_dk | 2023-02-28 07:36:34 UTC | #3

    I am testing with a flow I just export from the Org and now just import it again to the same Org, therefore the Queue are in the Org.

    On the permissions I have Architect:All set.

    That's why I think it's weird.


    John_Carnell | 2023-02-28 13:21:53 UTC | #4

    Hi Soren,

    Just one thing to check. Are you using divisions? If so, does the OAuth client have visibility to the division the queue and the flow are in? That is one thing I would check.

    Thanks, John Carnell Director, Developer Engagement


    sk_dk | 2023-02-28 13:23:18 UTC | #5

    No only Home division


    jon.vansteen | 2023-02-28 13:52:12 UTC | #6

    Hi @sk_dk,

    Does your oauth client have queue permissions? Such as Routing > Queue > All Permissions or maybe even just Routing > Queue > View. I wonder if the You are not authorized to perform the requested action error is coming back from trying to look up the queue.

    Thanks, Jon


    sk_dk | 2023-02-28 13:52:13 UTC | #7

    Thanks Jon

    The problem was Routing > Queue > View it was Routing > Queue > Search :frowning:

    Now it is working


    system | 2023-03-31 13:49:51 UTC | #8

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 18548