Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Errors running on newer archy/gc cli #12

Open
jlttec opened this issue Oct 28, 2023 · 0 comments
Open

Errors running on newer archy/gc cli #12

jlttec opened this issue Oct 28, 2023 · 0 comments

Comments

@jlttec
Copy link

jlttec commented Oct 28, 2023

Using Archy 2.23.1, and gc.exe 85.0.0. Created oauth, ran archy setup, and then ran the deploy powershell script.
I've successfully imported it before, maybe a half year ago.

Some of the errors:

{
"message": "An attempt was made to create an invalid ResponseSet. Details: Name already exists, Flow :<> cannot be found",
"code": "invalid.create",
"status": 400,
"messageWithParams": "An attempt was made to create an invalid {entity}. Details: {DUPLICATE_NAME}, {INVALID_FLOW}",
"messageParams": {
"DUPLICATE_NAME": "Name already exists",
"entity": "ResponseSet",
"INVALID_FLOW": "Flow :<> cannot be found"
},
"contextId": "a067908e-2941-4c2b-b5fe-02b902fe5216",
"details": [],
"errors": []
}
{
"message": "An attempt was made to create an invalid Campaign. Details: Phone numbers in campaign do not match those in contact list, CONTACT_LIST_NOT_FOUND, EDGE_GROUP_NOT_FOUND, CALL_ANALYSIS_RESPONSE_SET_NOT_FOUND",
"code": "invalid.create",
"status": 400,
"messageWithParams": "An attempt was made to create an invalid {entity}. Details: {INVALID_CAMPAIGN_PHONE_COLUMNS}, {CONTACT_LIST_NOT_FOUND}, {EDGE_GROUP_NOT_FOUND}, {CALL_ANALYSIS_RESPONSE_SET_NOT_FOUND}",
"messageParams": {
"EDGE_GROUP_NOT_FOUND": "EDGE_GROUP_NOT_FOUND",
"CALL_ANALYSIS_RESPONSE_SET_NOT_FOUND": "CALL_ANALYSIS_RESPONSE_SET_NOT_FOUND",
"INVALID_CAMPAIGN_PHONE_COLUMNS": "Phone numbers in campaign do not match those in contact list",
"entity": "Campaign",
"CONTACT_LIST_NOT_FOUND": "CONTACT_LIST_NOT_FOUND"
},
"contextId": "15802ebf-6210-41df-b130-2d6d510fbde3",
"details": [],
"errors": []
}
You cannot call a method on a null-valued expression.
At C:\callbacks\automated-powershell-script\Deploy-ProactiveCallbacks.ps1:115 char:1

  • $campaign = $campaign.Replace("off","on")
  •   + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
      + FullyQualifiedErrorId : InvokeMethodOnNull
    
    

Error: accepts 1 arg(s), received 0

Usage:
gc outbound cam
archy-debug-2023-10-28T13.04.24.679Z - Copy.txt
paigns update [campaignId] [flags]

Flags:
-d, --directory string Directory path with files containing request bodies
-f, --file string File name containing the JSON body
-h, --help help for update
-b, --printrequestbody Print the request body format of the API.

Global Flags:
--accesstoken string accessToken override
--clientid string clientId override
--clientsecret string clientSecret override
--environment string environment override. E.g. mypurecloud.com.au or ap-southeast-2
-i, --indicateprogress Trace progress indicators to stderr
--inputformat string Data input format. Supported formats: YAML, JSON
--outputformat string Data output format. Supported formats: YAML, JSON
-p, --profile string Name of the profile to use for configuring the cli (default "DEFAULT")
--transform string Provide a Go template file for transforming output data
--transformstr string Provide a Go template string for transforming output data

Operation:
PUT /api/v2/outbound/campaigns/{campaignId}

Permissions:
outbound:campaign:edit

Documentation:
https://developer.genesys.cloud/api/rest/v2/outbound/#put-api-v2-outbound-campaigns--campaignId-

accepts 1 arg(s), received 0
Error: accepts 1 arg(s), received 0
Usage:
gc routing queues get [queueId] [flags]

Flags:
-h, --help help for get

Global Flags:
--accesstoken string accessToken override
--clientid string clientId override
--clientsecret string clientSecret override
--environment string environment override. E.g. mypurecloud.com.au or ap-southeast-2
-i, --indicateprogress Trace progress indicators to stderr
--inputformat string Data input format. Supported formats: YAML, JSON
--outputformat string Data output format. Supported formats: YAML, JSON
-p, --profile string Name of the profile to use for configuring the cli (default "DEFAULT")
--transform string Provide a Go template file for transforming output data
--transformstr string Provide a Go template string for transforming output data

Operation:
GET /api/v2/routing/queues/{queueId}

Permissions:
routing:queue:view

Documentation:
https://developer.genesys.cloud/api/rest/v2/routing/#get-api-v2-routing-queues--queueId-

accepts 1 arg(s), received 0
Error: accepts 1 arg(s), received 0
Usage:
gc routing queues update [queueId] [flags]

Flags:
-d, --directory string Directory path with files containing request bodies
-f, --file string File name containing the JSON body
-h, --help help for update
-b, --printrequestbody Print the request body format of the API.

Global Flags:
--accesstoken string accessToken override
--clientid string clientId override
--clientsecret string clientSecret override
--environment string environment override. E.g. mypurecloud.com.au or ap-southeast-2
-i, --indicateprogress Trace progress indicators to stderr
--inputformat string Data input format. Supported formats: YAML, JSON
--outputformat string Data output format. Supported formats: YAML, JSON
-p, --profile string Name of the profile to use for configuring the cli (default "DEFAULT")
--transform string Provide a Go template file for transforming output data
--transformstr string Provide a Go template string for transforming output data

Operation:
PUT /api/v2/routing/queues/{queueId}

Permissions:
routing:queue:edit

Documentation:
https://developer.genesys.cloud/api/rest/v2/routing/#put-api-v2-routing-queues--queueId-

accepts 1 arg(s), received 0
Script Completed.

archy-debug-2023-10-28T13.04.24.679Z - Copy.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant