Invoke GetCredentials workflow: System.Activities : This location is marked as const, so its value cannot be modified

orchestrator

#1

Hi I am facing the below error when trying to run Login function.
“Invoke GetCredentials workflow: System.Activities : This location is marked as const, so its value cannot be modified.”
Please help me on this


#2

Did you try to run workflow from System1_Login workflow or Main workflow.

check did you pass valid arguments to GetAppcredential workflow

thanks


#3

Try to run GetAppCredetials.xaml stand alone with dummy data and see where it is failing


#4

when I ran the GetAppCredentials.xaml file I get “Get Orchestrator Credential Faulted” … Any Help Please !

image
image.png1579x532 33.9 KB

image


#5

Hi,

It’s simple. You have made a variable in the said GetAppCredentials as Readonly and trying to modify it, you just need to change in the Modifiers property of the variable


#6

Instead of giving Credentials name from Config file give the name directly and see if it works


#7

The modifiers i have kept none only.
image


#8

Can you get your XAML uploaded here?


#9

@lakshmik123 is the asset System1_Credential created on the Orchestrator platform ?


#10

yes its created.


#11

Sorry i cannot upload the xaml. its blocked for me


#12

I tried to reproduce your issue. I removed the package, re-installed it and then tried to run. It faulted.
I guess you have installed the package after it threw error that ‘GetCredential is not a valid activity’
Can you close the workflow, restart and then try and run it again?


#13

Just try this: create a blank workflow with a variable say ‘A’ and mark it ReadOnly. Now using Assign activity try changing the variable’s value. This would throw error "This location is marked as const, so its value cannot be modified.”

Somewhere you have marked something Readonly which raising this Exception and nothing else…


#14

After retry also I am facing same issue. I have not kept anything in read only format.


#15

In the Finally section, is there anything being done?