Showing results for 
Search instead for 
Did you mean: 
New Member

Argument 'Text' Must be 'Encrypted value' populate textfield from Variable.

Hello guys,

Facing error when trying to populate textfield from Variable.


Error: Argument 'Text' Must be 'Encrypted value'.


I am able fill the text field with direct number '20134687', But when i try to fill it with value from variable %Output[6]% . I get the above error.









Accepted Solutions
New Member


Thank you for your help, I found that the input type accepts only number because of that it was not able to enter the value, so I tried converting it as txt to number, then it was able to enter the value into the field.

View solution in original post

Solution Specialist
Solution Specialist

Hi Ikhan,


This works fine for me, which version of PAD are you using now? 

Have you double checked the data of the datatable, from your picture %OutputData[6]% ? Does it have value or not? 


Thanks anpopulate.pngd hope it can help you. 



Did I answer your question? Please consider to Mark my post as a solution! to guide others

New Member

I am using the latest version.

I did print the value inside the variable before the statement to check it has the value.  

Solution Specialist
Solution Specialist

Which browsers & versions are you using now? Are you using private mode or protected mode? 


I think PAD is having issues with these modes and it has not fixed yet. The PAD version is still unstable and having issues.






New Member


Thank you for your help, I found that the input type accepts only number because of that it was not able to enter the value, so I tried converting it as txt to number, then it was able to enter the value into the field.

Regular Visitor

Hi, i have only recently found this error as well since we upgraded to the latest version of Power Automate Desktop. We have a list of numbers (as a variable) that we need to enter through a loop into a website. We have tried converting text to number but that has not worked and we continue to get the error message of Encrypted value, is it a bug in the latest release? It was working before i upgraded.

New Member

I am having a similar issue: after migrating a process created in Softmotive WinAutomation, when the process attempts to enter a text value (file names with full paths) into a web form's field as the process iterates through a list of the file names, I get the following error message: Argument 'Text' must be 'Encrypted value'.


I don't get the error if the file name with its full path is hardcoded into the text input item of the PAD script, only if that string of text is represented as a variable in the item--and that variable's value has been set dynamically as the process iterates through a list of file names.


I am not using the 'sensitive text' setting in the PAD script, and I am not entering text into a password field on the web form.  


Not sure how to proceed to debug this--and it seems to be a show-stopper.  I have to be able to iterate through the list of file names so that the flow can run unattended.  


OS is Windows 10 Pro

Seeing same issue whether using current version of Chrome or Firefox.


Any pointers would be appreciated.

Frequent Visitor

I had the same error when sending text variable into a web page element. Fixed it by encrypting and then decrypting the variable before the actual action. Strange, but it worked.



This looks very promising.  Managing AES encryption keys is way outside my scope though.  What is the most straightforward way to provide the AES function in PAD with an encryption key (that I'll need to create) and any other required fields?  I'm assuming Microsoft has a doc on this somewhere, but I can't seem to find it--probably just don't know enough to know exactly what to look for.

New Member

Success!!! The workaround to the form field's demand for encrypted text was successful--encrypting and then immediately decrypting the text before passing it to the insert function appears to resolve whatever the underlying matter may be.  I no longer get the error as the process loops through my list of file/path names.


Regarding AES, I just kept all the defaults provided by PAD in place (no salt, no IV, etc.), simply providing a 128-bit password.


I'm assuming that for the purpose of a workaround it doesn't really make sense to go to greater lengths on the security per se--but am open to advice otherwise. 


I'm also assuming that this minimalist approach keeps the burden of this workaround as low as possible on the overall process.

Thank you so much, this worked for me!

Frequent Visitor

this worked!  crazy.

New Member

Does anybody know how to generate a encryption key / what should be inputted into the Encryption key: dialog box?

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Top Solution Authors
Top Kudoed Authors
Users online (4,376)