cancel
Showing results for 
Search instead for 
Did you mean: 

Issue: Internal : Could not decrypt data: Padding is invalid and cannot be removed.

StefanJäger
Level 2
Dear all, We are rather new in using BluePrism and since one day we're getting the following error message when reading system credentials within a Blue Prism process using "Credentials" VBO "Get" method:   "Internal : Could not decrypt data: Padding is invalid and cannot be removed." I have assumed it may have something to do with the encryption scheme. Hence I created a new one, unfortunately with the same result.   Does anybody have any idea how to find the root cause of this? Stefan
2 REPLIES 2

david.l.morris
Level 15
Was it working before? It sounds like it's just using the wrong encryption scheme or maybe the wrong key, or both. Are you using an application server? The key will need to be stored on both application servers if you're storing the key there. Because of this, it's possible to accidentally have two different keys, one on each app server. Try creating a new Encryption Scheme. Then at the bottom, make sure that Encryption Scheme is selected as the Default Encryption Scheme. Then create a new set of credentials. And then try using Get  Credentials for those new credentials. If that test works, then you may just need to set up your encryption scheme and key again from scratch as well as re-set up your credentials with that scheme and key. And make sure that any app servers are using that same scheme and key.

Dave Morris, 3Ci at Southern Company

StefanJäger
Level 2
Hi David, What has happened is that we've exported the whole library (processes, objects, credentials etc.) as a release and right after this the encryption scheme hasn't worked anymore. To fix it we have created a new encryption scheme and created the credentials from scratch. That did the job. Thanks for your feedback.   Stefan