2.9 KiB
2.9 KiB
Workorder Collection Attribute beheben
Der Fehler "Unknown attribute: 'status'" bedeutet, dass das Attribut status in deiner workorders Collection fehlt.
Problem
Die Collection workorders (ID: 6943bf7d001901baa60c) hat nicht alle benötigten Attribute.
Lösung: Attribute hinzufügen
- Gehe zu
https://appwrite.webklar.com - Öffne dein Projekt woms
- Gehe zu Databases → woms-database → workorders
- Klicke auf Attributes Tab
- Füge die fehlenden Attribute hinzu:
Erforderliche Attribute (Required):
| Attribut Name | Typ | Größe | Required | Default |
|---|---|---|---|---|
topic |
string | 255 | ✓ | - |
status |
string | 50 | ✓ | Open |
priority |
integer | - | ✓ | 1 |
Optionale Attribute:
| Attribut Name | Typ | Größe | Required |
|---|---|---|---|
type |
string | 50 | - |
systemType |
string | 50 | - |
responseLevel |
string | 50 | - |
serviceType |
string | 50 | - |
customerId |
string | 50 | - |
customerName |
string | 255 | - |
customerLocation |
string | 255 | - |
requestedBy |
string | 255 | - |
requestedFor |
string | 255 | - |
startDate |
string | 50 | - |
startTime |
string | 10 | - |
deadline |
string | 50 | - |
endTime |
string | 10 | - |
estimate |
string | 50 | - |
mailCopyTo |
string | 255 | - |
sendNotification |
boolean | - | - |
details |
string | 10000 | - |
assignedTo |
string | 50 | - |
assignedName |
string | 255 | - |
approvalStatus |
string | 50 | - |
woid |
string | 50 | - |
createdAt |
datetime | - | - |
Schritt-für-Schritt
1. Status hinzufügen (wichtig!)
- Klicke auf Create Attribute
- Key:
status - Type:
String - Size:
50 - Required: ✓ (aktivieren)
- Default:
Open - Array: Nein
- Klicke auf Create
2. Priority hinzufügen (wichtig!)
- Klicke auf Create Attribute
- Key:
priority - Type:
Integer - Required: ✓ (aktivieren)
- Default:
1 - Klicke auf Create
3. Topic hinzufügen (wichtig!)
- Klicke auf Create Attribute
- Key:
topic - Type:
String - Size:
255 - Required: ✓ (aktivieren)
- Klicke auf Create
4. Weitere Attribute hinzufügen
Wiederhole den Prozess für alle anderen Attribute aus der Liste oben.
Überprüfung
Nach dem Hinzufügen aller Attribute:
-
Stelle sicher, dass mindestens diese drei Attribute existieren:
- ✓
topic(string, required) - ✓
status(string, required, default: "Open") - ✓
priority(integer, required, default: 1)
- ✓
-
Versuche erneut, ein Ticket zu erstellen
Wenn Attribute bereits existieren
Falls die Attribute bereits existieren, aber andere Namen haben:
- Überprüfe die Attributnamen in Appwrite
- Teile mir die tatsächlichen Attributnamen mit
- Ich passe den Code entsprechend an
Viel Erfolg! 🚀