Strange "Unexpected type for data" error

  1. What do you want to achieve? Keep it simple and clear!

I would like to know what this means

  1. What is the issue? Include screenshots / videos if possible!

I am getting an error that says “Unexpected type for data, expected array got null”

  1. What solutions have you tried so far? Did you look for solutions on the Developer Hub?

I have looked for what the error means and I could not find anything

Here is how to replicate:

Avatar = game:GetService("AvatarEditorService")

CatalogParams = CatalogSearchParams.new()
CatalogParams.SearchKeyword = "a" -- Or any single character (the error does not occur if the string has a length greater than 1)

Avatar:SearchCatalog(CatalogParams)

I believe this is a problem with the Roblox engine, however, since I cant post anything in engine bugs, I am posting it here.

I believe this has something to do with the fact that you cant really search the catalog for a single character, since doing so replaces it with three hashtags.

1 Like