Failed to Get Feature Value For NEW licensesSolved

Hello, we are experiencing the following problem: For NEW licenses, when our product attempts to retrieve feature values, the response from LimeLM is “This feature does not exist.” 

However, OLD licenses still work normally. The features have not changed, nor have the values. Help! This is causing problems for all our new customers. 

Answer

Much more information is needed. It could be any one of a thousand things.

But, long story short: everything is working fine. No bugs in our systems.

Ensure you set the fields before they activate. Or, if you set it after they activate, have them -reactivate to get the field values. Covered in the custom license fields article.

I manually created a license and set the fields before attempting activation and got this message. I then tested an older license and it worked fine.

Ok, much more information is needed:

  1. What version of TA? If not the latest, start there.
  2. What function are you calling, with what parameters?
  3. What's the return code for the function.

In short, everything is working fine. If the field is there, and there when the license is activated, then use TA_GetFeatureValue() will retrieve said field.

I figured it out. The values in the string were too long. I shortened them and that fixed it. If there is a known max please let me know!

You'll get an error in LimeLM if the values are too long. So, make sure if you're using the web API you stop on errors (don't blindly set the field values and assume it will succeed)

I'm using TurboActivate.as via Adobe AIR. Can you please tell me the length limit?

It's not set in stone. You'll get an error in LimeLM if you try to set a too long value. I.e. this is an implementation detail.

Use the latest version of TA, and always stop on errors.

Can you please tell me the maximum value length for the Adobe AIR implementation? I don't understand how it is  “not set in stone.” What affects the limit?

A variety of factors including the implementation language.

Use short values. Don’t store data blobs in them. If you're asking what the maximum amount of data you can stuff into a license field is, then you're asking the wrong question (and using them incorrectly).

License fields are about control flow in your app (enable features, promotions, etc.). It's not about saving blobs of data.

, edited

Sorry for not being clearer. This is for “feature” values. After some trial and error it seems like the max length is 24 characters. 

Oh, no, It's definitely much longer than that. It can easily handle several kilobytes of data.

Are you using the latest TurboActivate and the latest Adobe AIR integration files?

I have not updated in a while.