Keep getting attempt to index number with 'Name'?

I Don’t have any variables that should be causing this but everytime I try to make a query in my script I keep getting this error. Does anyone know what could be causing this issue?

			for _,UData in pairs(FactionData:GetAsync("main")) do
				for i,v in pairs(FactionData:GetAsync(tostring(UData.UID))) do
					print(i,v,UData)
					local Frame = script.Faction:Clone()
					Frame.Parent = Framework.ViewFactions.ScrollingFrame
					Frame.FactionName.Text = v.Name

Console:
image

When I look it up myself in database it seems normal and fine.
image

Data being created:

local ID = tostring(HttpService:GenerateGUID(false))
				local SharedData = {
					DateCreated = os.time(),
					UID = ID,
				}

				local Data = {
					Name = Filter:FilterText(Player, args[3]),
					Description = "This is a description edit this in faction settings! Tell users about your faction here!",
					Owner = Player.UserId,
					Users = {
						-- [ID] = Rank
						-- Ranks: Leader, Officer, Member
						[Player.UserId] = "Leader",
					},
					Public = true,
					Verified = false,
					Logo = 5078542682,
					Suspended = false,
					SuspendReason = "",
					DateCreated = os.time(),
					UpdatedDate = os.time(),
					UID = ID,
				}

				local Factions = FactionData:GetAsync("main")
				table.insert(Factions, SharedData)
				FactionData:SetAsync("main", Factions)
				FactionData:SetAsync(ID, Data)

				_G.PlayerData[Player.Name].InFaction = true
				_G.PlayerData[Player.Name].FactionUID = ID
1 Like

I did some further testing around I found it loads it properly but I don’t know why but when starts loop it breaks?

image

image

I solved the issue, I realized second for i,v loop was not needed. I’m too tired to even notice that.