Quantcast
Channel: Silk Performer
Viewing all articles
Browse latest Browse all 4084

Wiki Page: Why might I get a "RT: 30 - Attribute access failed, no attributes set" error at Try Script?

$
0
0
The error message "RT: 30 - Attribute access failed, no attributes set" will be thrown during replay if a BDF script contains the function "AttributeGetString" when no actual Project Attributes have been assigned to that project. For example, consider the following sample code which we performs a straightforward encryption/decryption of a regular string ("sFirstName"): transaction TMain      var     sFirstName  : string;     sEncrypted : string;   begin      AttributeGetString("FirstName", sFirstName  );      sEncrypted := Encrypt(sFirstName);      Print("encrypted firstname: "  + sEncrypted);           sFirstName   := Decrypt(sEncrypted);      Print ("decrypted firstname: " + sFirstName  );          end TMain; If no project attributes have been set in the Silk Performer setting "PROJECT | PROJECT ATTRIBUTES", then the AttributeGetString function will not locate a value for the string "sFirstName" and therefore the following error will occur during replay: AttributeGetString RT: 30 - Attribute access failed, no attributes set If, however, Project Attributes have correctly been declared the function "AttributeGetString" will reference a string and the error will not occur. Old KB# 17280

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>