Forum Discussion
j_angelevski
3 years agoContributor III
SnapCompletionService
com.snaplogic.snap.api.SnapDataException: Public key: asdasd is undefined.  Perhaps you meant: task, Base64, parseFloat, parseInt
	at com.snaplogic.snap.api.impl.PropertyValuesImpl$ValidatingExpressionProperty.eval(PropertyValuesImpl.java:1056)
	at com.snaplogic.snap.api.impl.PropertyValuesImpl$ValidatingExpressionProperty.eval(PropertyValuesImpl.java:993)
	at com.iwconnect.snaps.GPGAccount.getPublicKey(GPGAccount.java:124)
	at com.iwconnect.snaps.GPGEncrypt$1.write(GPGEncrypt.java:112)
	at com.snaplogic.cc.snap.view.binary.BinaryOutputViewImpl.write(BinaryOutputViewImpl.java:239)
	at com.snaplogic.snap.api.OutBoundViewsImpl.write(OutBoundViewsImpl.java:287)
	at com.iwconnect.snaps.GPGEncrypt.process(GPGEncrypt.java:94)
	at com.iwconnect.snaps.GPGEncrypt.doWork(GPGEncrypt.java:81)
	at com.snaplogic.snap.api.SimpleBinarySnap.execute(SimpleBinarySnap.java:57)
	at com.snaplogic.cc.snap.common.SnapRunnableImpl.executeSnap(SnapRunnableImpl.java:812)
	at com.snaplogic.cc.snap.common.SnapRunnableImpl.execute(SnapRunnableImpl.java:586)
	at com.snaplogic.cc.snap.common.SnapRunnableImpl.doRun(SnapRunnableImpl.java:877)
	at com.snaplogic.cc.snap.common.SnapRunnableImpl.call(SnapRunnableImpl.java:436)
	at com.snaplogic.cc.snap.common.SnapRunnableImpl.call(SnapRunnableImpl.java:120)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.base/java.lang.Thread.run(Unknown Source)
Resolution: Check the spelling of the variable
Error Fingerprint[0] = efp:com.snaplogic.snap.api.impl.lsG7vC2t
    @Override
    public void configure(PropertyValues propertyValues) {
        passphrase = propertyValues.getAsExpression(PASSPHRASE);
        privateKey = propertyValues.get(PRIVATE_KEY);
        publicKey = propertyValues.get(PUBLIC_KEY);
        symmetricAlgorithmType = propertyValues.get(ALGORITHM);
    }
The passphrase/symmetrycAlgorithmType are successfully parsed as strings. The privateKey, publicKey work fine if I remove the .uiRowCount(int) and parse them as String values for example. I am not sure if .uiRowCount(int) is the issue ?