IfError(
ClearCollect(
UnpostedCounts,
UnpostedStockCountsUnits.Run(glCurrentStCode)
),
Clear(UnpostedCounts)
);In the code line above, I expect it to clear the UnpostedCounts collection if there is nothing returned from UnpostedStockCountsUnits.Run.
Instead, I get an error displayed on the top line of my App:
UnpostedStockCountsUnits.Run failed: The data returned in the response is invalid.
The whole reason I wrapped this is IfError was to get rid of this unwanted error message.
It doesn't do that.
How DO I get rid of the unwanted error message? No records in the dataset is NOT an invalid response.

Report
All responses (
Answers (