appwrite / appwrite/console

🐛 Bug Report: Appwrite Dashboard -> Invalid max param: Value must be a valid integer & Attribute with the requested ID could not be found

Open
#1,473 2 comments 0 reactions 1 assignee Claimed by @TorstenDittmann View on GitHub
bug product / databases
Dominant language
Svelte
Stars
393
Forks
260
Avg merge
6h 53m
Merged PRs (30d)
24

Description

### 👟 Reproduction steps

When I try to update an document Attribute name (the attribute key from entryCount to contestEntryCount), I get this error on an Integer attribute:
`Invalid max param: Value must be a valid integer`

![Image](https://github.com/user-attachments/assets/b430a587-c5c2-47d9-a50e-22c2068eef4b)

If I reduce Max to a more realistic value, I get _another_ error when I try to Update:
`Attribute with the requested ID could not be found.`

![Image](https://github.com/user-attachments/assets/f8655bfa-1ff8-4a9a-8619-b125e7563b79)

Both are occurring in the same modal.

> Using Appwrite Self-Hosted Version 1.6.0

The Attribute was initially created from code (snippet):
```ts
databases.createIntegerAttribute(
databaseId,
contestCollectionId,
"entryCount",
true,
0,
),
```

### 👍 Expected behavior

I expect the Appwrite web GUI to handle this by itself, and not populate nonsensically high integer values by default when opening the Update Attribute window. I also expect Appwrite web GUI to not throw an error when you DO have a valid integer value.

### 👎 Actual Behavior

![Image](https://github.com/user-attachments/assets/b430a587-c5c2-47d9-a50e-22c2068eef4b)

![Image](https://github.com/user-attachments/assets/f8655bfa-1ff8-4a9a-8619-b125e7563b79)

### 🎲 Appwrite version

Version 1.6.x

### 💻 Operating system

Linux

### 🧱 Your Environment

Ubuntu Server
Self-Hosted Appwrite 1.6.0
Customization: Disabled rate limiting

### 👀 Have you spent some time to check if this issue has been raised before?

- [x] I checked and didn't find similar issue

### 🏢 Have you read the Code of Conduct?

- [x] I have read the [Code of Conduct](https://github.com/appwrite/.github/blob/main/CODE_OF_CONDUCT.md)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.