Skip to content

llGetExperienceErrorMessage

functionRequires an experience
Function syntax
string llGetExperienceErrorMessage(
  1. integer error// XP_ERROR_* error code constant to translate. Values: ExperienceError
);
Returns
string
Energy
10

Returns a text description of a particular Experience LSL error constant.

Returns a string describing the error code passed or the string corresponding to error. Returns XP_ERROR_UNKNOWN_ERROR if the error is not a valid error code.

How to use
string result = llGetExperienceErrorMessage(0);

Errors fall into two families. Permission requests (llRequestExperiencePermissions, reported through experience_permissions_denied) depend on the avatar and on whether the experience is allowed on the land, so they can fail with XP_ERROR_NOT_PERMITTED_LAND. Key-value store calls (llCreateKeyValue and the rest, reported through dataserver) only need the script compiled with an experience and do not depend on the land1. Errors about the experience itself can come from either.

LSL ConstantMessage returned via llGetExperienceErrorMessageDescriptionReturned by
XP_ERROR_NONE0no errorNo error was detected.Any experience call
XP_ERROR_THROTTLED1exceeded throttleThe call failed due to too many recent calls.Key-value store
XP_ERROR_EXPERIENCES_DISABLED2experiences are disabledThe region currently has experiences disabled.Any experience call
XP_ERROR_INVALID_PARAMETERS3invalid parametersOne of the string arguments was too big to fit in the key-value store.Key-value store
XP_ERROR_NOT_PERMITTED4operation not permittedExperience permissions were denied by the user.Permission requests
XP_ERROR_NO_EXPERIENCE5script not associated with an experienceThis script is not associated with an experience.Any experience call
XP_ERROR_NOT_FOUND6not foundThe sim was unable to verify the validity of the experience. Retrying after a short wait is advised.Any experience call
XP_ERROR_INVALID_EXPERIENCE7invalid experienceThe script is associated with an experience that no longer exists.Any experience call
XP_ERROR_EXPERIENCE_DISABLED8experience is disabledThe experience owner has temporarily disabled the experience.Any experience call
XP_ERROR_EXPERIENCE_SUSPENDED9experience is suspendedThe experience has been suspended by Linden Lab customer support.Any experience call
XP_ERROR_UNKNOWN_ERROR10unknown errorAn unknown error not covered by any of the other predetermined error states.Any experience call
XP_ERROR_QUOTA_EXCEEDED11experience data quota exceededAn attempt to write data to the key-value store failed due to the data quota being met.Key-value store
XP_ERROR_STORE_DISABLED12key-value store is disabledThey key-value store is currently disabled on this region.Key-value store
XP_ERROR_STORAGE_EXCEPTION13key-value store communication failedUnable to communicate with the key-value store, or attempted to create key that already existsKey-value store
XP_ERROR_KEY_NOT_FOUND14key doesn’t existThey requested key does not exist.Key-value store
XP_ERROR_RETRY_UPDATE15retry updateA checked update failed due to an out of date request.Key-value store
XP_ERROR_MATURITY_EXCEEDED16experience content rating too highThe content rating of the experience exceeds that of the region.Permission requests
XP_ERROR_NOT_PERMITTED_LAND17not allowed to run on this landThe experience is blocked or not enabled for this land.Permission requests
XP_ERROR_REQUEST_PERM_TIMEOUT18experience permissions request timed outThe request for experience permissions was ignored.Permission requests
Example 1
default
{
state_entry()
{
llOwnerSay(llGetExperienceErrorMessage(XP_ERROR_NONE));
}
}
Original wiki source

Some wiki templates and tables need their original context. View this article on the Second Life Wiki. Technical wording and examples are retained from the source; historical guidance may differ from current behavior.

  1. Confirmed in-world by Nexii Malthus (October 2026). The wiki and the LSL definitions do not say which calls return each error; the Returned by column follows the error descriptions and that in-world check ↩