[Orchestration] Custom/AD related activities may fail with an error "input variable password is not password2 type"Issue <!-- div.margin { padding: 10px 40px 40px 30px; } table.tocTable { border: 1px solid; border-color: #e0e0e0; background-color: #fff; } .title { color: #d1232b; font-weight: normal; font-size: 28px; } h1 { color: #d1232b; font-weight: normal; font-size: 21px; margin-bottom: 5px; border-bottom-width: 2px; border-bottom-style: solid; border-bottom-color: #cccccc; } h2 { color: #646464; font-weight: bold; font-size: 18px; } h3 { color: #000000; font-weight: bold; font-size: 16px; } h4 { color: #666666; font-weight: bold; font-size: 15px; } h5 { color: #000000; font-weight: bold; font-size: 13px; } h6 { color: #000000; font-weight: bold; font-size:14px; } ul, ol { margin-left: 0; list-style-position: outside; } --> Symptoms Sometimes we may see some errors like below within Orchestration related activities especially AD-related or custom activities. input variable password is not password2 type Release Any release. Environment All Cause This issue occurs when there is a mismatch between the passing variable and the input variable. For example when we try to pass a plain text string variable to an input variable (of type: password) of activity then this leads to an issue. Example: workflow.scratchpad.xyz_variable -- String type (plain text) Activity input variable -- Password2 type. Resolution Option#1: Make sure we pass the same type as the target variable/input. Option #2: Convert the variable to password2 type by encrypting the variable as below. Based on the above workflow scratchpad variable please see the code below: Sometimes we may see some errors like below within Orchestration related activities especially AD-related or custom activities. workflow.scratchpad.xyz_variable = new GlideEncrypter().encrypt(workflow.scratchpad.xyz_variable);// And pass the scratchpad to the activity input variable (whose type password2 type) Additional Information GlideEncrypter - Global