#[SOLVED] - creash when i try to use incrementRowColumn

30 messages · Page 1 of 1 (latest)

faint dagger
faint dagger
#

nice response team, i think now time to change the db

solar drift
solar drift
faint dagger
solar drift
#

@faint dagger debugged, looks like tableId is missing from the API response itself. i have alerted the db team about it, thanks for your paitence 🙏

faint dagger
solar drift
faint dagger
solar drift
#

update: fix is underday, PR has been raised

faint dagger
faint dagger
#

also check the https://appwrite.io/docs/products/databases/operators

tables.updateRow(
databaseId = databaseId, tableId = ownerTable, rowId = rowId, data = mapOf(
"area_count" to Operator.decrement(1)
)
)

with this also get the "Server Error" so make

Update multiple fields atomically without fetching the full row. Perform numeric, array, string, and date updates in a single, consistent workflow.

faint dagger
solar drift
rare heath
faint dagger
# rare heath Still getting the issue?

yes ,

2025-12-31 04:07:42.548 32487-5630 AndroidRuntime pid-32487 E FATAL EXCEPTION: OkHttp Dispatcher
Process: com.h2osupply.owner, PID: 32487
java.lang.NullPointerException: null cannot be cast to non-null type kotlin.String
at io.appwrite.models.Row$Companion.from(Row.kt:98)
at io.appwrite.services.TablesDB$incrementRowColumn$converter$1.invoke(TablesDB.kt:751)
at io.appwrite.services.TablesDB$incrementRowColumn$converter$1.invoke(TablesDB.kt:749)
at io.appwrite.Client$awaitResponse$2$1.onResponse(Client.kt:602)
at okhttp3.internal.connection.RealCall$AsyncCall.run(RealCall.kt:519)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1154)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:652)
at java.lang.Thread.run(Thread.java:1563)
sdkForAndroid = "11.4.0"
sdk-for1-android = { module = "io.appwrite:sdk-for-android", version.ref = "sdkForAndroid" }

faint dagger
#

also decrement not work

solar drift
faint dagger
faint dagger
faint dagger
#

at io.appwrite.models.Row$Companion.from(Row.kt:98) == databaseId = map["$databaseId"] as String,

from this :

companion object {
operator fun invoke(
id: String,
sequence: Long,
tableId: String,
databaseId: String,
createdAt: String,
updatedAt: String,
permissions: List<String>,
data: Map<String, Any>
) = Row<Map<String, Any>>(
id,
sequence,
tableId,
databaseId,
createdAt,
updatedAt,
permissions,
data
)

    @Suppress("UNCHECKED_CAST")
    fun <T> from(
        map: Map<String, Any>,
        nestedType: Class<T>
    ) = Row<T>(
        id = map["\$id"] as String,
        sequence = (map["\$sequence"] as Number).toLong(),
        tableId = map["\$tableId"] as String,
        databaseId = map["\$databaseId"] as String,
        createdAt = map["\$createdAt"] as String,
        updatedAt = map["\$updatedAt"] as String,
        permissions = map["\$permissions"] as List<String>,
        data = map["data"]?.jsonCast(to = nestedType) ?: map.jsonCast(to = nestedType)
    )
}

at io.appwrite.services.TablesDB$incrementRowColumn$converter$1.invoke(TablesDB.kt:751) at io.appwrite.services.TablesDB$incrementRowColumn$converter$1.invoke(TablesDB.kt:749) == val converter: (Any) -> io.appwrite.models.Row<T> = {
@Suppress("UNCHECKED_CAST")
io.appwrite.models.Row.from(map = it as Map<String, Any>, nestedType)
}

solar drift
#

@faint dagger we released another fix as noticed by @wary path that some responses were missing databaseId in them, can you please check if issue still persists?

solar drift
#

ah he created another thread

faint dagger