You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would expect that the property Timestamp which is a property maintained by the Storage Table server is included in the eventTable binding in the code and be accessible as a property of the array elements of the eventTable, i.e
Link the storage account associated with the table in your local settings.
Try to access the table row's in the timerTrigger function and see that Timestamp is inaccessible.
Expected behavior
Expected that Timestamp is accessible for use in the function code.
Actual behavior
Any attempts to access Timestamp returns undefined.
Known workarounds
None known so far. Although I did try adding a filter to the binding to limit by Timestamp and it throws an error. (Accessing other valid properties within the table were fine.)
Related information
The function was built in typescript with the only dependency being moment.js. The source for the function is copied below for fast reproduction of the issue.
Source
import{AzureFunction,Context}from'@azure/functions';importmomentfrom'moment';import{triggerStartMessage}from'../resources/constants';consttimerTrigger: AzureFunction=asyncfunction(context: Context,myTimer: any): Promise<void>{constnow=moment();consttimeStamp=now.toString();constfifteenMinutesAgo=now.subtract(15,'minutes');context.log(triggerStartMessage(timeStamp));context.log(context.bindings.eventTable);constcheckHeartbeat=(row,index)=>{constisOldHeartbeat=fifteenMinutesAgo.isAfter(row.Timestamp);context.log(`Row ${index} has timestamp of: ${row.Timestamp}`);if(isOldHeartbeat){context.log(`Row ${index} has old heartbeat`);}else{context.log(`Row ${index} has new heartbeat`);}}context.bindings.eventTable.map(checkHeartbeat);};exportdefaulttimerTrigger;
The text was updated successfully, but these errors were encountered:
I just bumped into this myself too. I thought about doing my custom backup solution for some data in Table Storage using a simple timed Azure Function in TS, but I will miss the timestamp field. It is not exactly a showstopper for me, but very strange indeed.
I was able to reproduce the issue in Javascript as well as in Python.
Probably it's related to Timestamp protopbuf type and it's truncated somehow during sending grpc messge from function host to language worker.
Investigative information
Upon retrieving the whole table via my bindings in a function that is triggered on a timer, (see below).
I would expect that the property Timestamp which is a property maintained by the Storage Table server is included in the eventTable binding in the code and be accessible as a property of the array elements of the eventTable, i.e
Instead it is undefined.
In the case of the storage table I am using a very basic set up like so,

And when I run the function locally, it is not deployed yet, I get the following output through context logging,
As this function is only local at the moment I do not have any function id information yet.
Reproduction steps
Expected behavior
Expected that Timestamp is accessible for use in the function code.
Actual behavior
Any attempts to access Timestamp returns undefined.
Known workarounds
None known so far. Although I did try adding a filter to the binding to limit by Timestamp and it throws an error. (Accessing other valid properties within the table were fine.)
Related information
The function was built in typescript with the only dependency being moment.js. The source for the function is copied below for fast reproduction of the issue.
Source
The text was updated successfully, but these errors were encountered: