Common Error Messages - quandis/qbo3-Documentation GitHub Wiki

Synchronous vs. Asynchronous methods

Unable to cast object of type 'System.Threading.Tasks.Task`1[System.Data.DataSet]' to type 'System.Data.DataSet'.

This occurs when a QBO async method name does not end with 'Async'; e.g.:

[DbDataSetMethod]
public async Task<DataSet> MyMethod(IDictionary<string, object> parameters)

should be:

[DbDataSetMethod]
public async Task<DataSet> MyMethodAsync(IDictionary<string, object> parameters)
⚠️ **GitHub.com Fallback** ⚠️