{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-content/issues/4139","labels_url":"https://api.github.com/repos/Azure/azure-content/issues/4139/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-content/issues/4139/comments","events_url":"https://api.github.com/repos/Azure/azure-content/issues/4139/events","html_url":"https://github.com/Azure/azure-content/issues/4139","id":98621263,"number":4139,"title":"Text.Format() not producing valid Azure Table Storage query","user":{"login":"GuardRex","id":1622880,"avatar_url":"https://avatars.githubusercontent.com/u/1622880?v=3","gravatar_id":"","url":"https://api.github.com/users/GuardRex","html_url":"https://github.com/GuardRex","followers_url":"https://api.github.com/users/GuardRex/followers","following_url":"https://api.github.com/users/GuardRex/following{/other_user}","gists_url":"https://api.github.com/users/GuardRex/gists{/gist_id}","starred_url":"https://api.github.com/users/GuardRex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuardRex/subscriptions","organizations_url":"https://api.github.com/users/GuardRex/orgs","repos_url":"https://api.github.com/users/GuardRex/repos","events_url":"https://api.github.com/users/GuardRex/events{/privacy}","received_events_url":"https://api.github.com/users/GuardRex/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-02T16:49:17Z","updated_at":"2015-08-02T17:10:47Z","closed_at":null,"body":"I have a problem constructing an Azure Table Storage query using `Text.Format()` and `SliceStart`?\r\n\r\nAssume I start with a table that has keys like this ...\r\n```\r\nPartitionKey    RowKey\r\nAAA             2015-07-30 03:00:00\r\nAAA             2015-07-31 03:00:00\r\nAAA             2015-07-31 04:00:00\r\nAAA             2015-08-01 03:00:00\r\nAAA             2015-08-01 04:00:00\r\nBBB             2015-07-30 03:00:00\r\n```\r\nIf I use this query ...\r\n```\r\n\"azureTableSourceQuery\": \"PartitionKey eq 'AAA' and RowKey ge '2015-07-31 00:00:00' and RowKey le '2015-07-31 23:59:59'\"\r\n```\r\nI correctly get back these two entities ...\r\n```\r\nAAA             2015-07-31 03:00:00\r\nAAA             2015-07-31 04:00:00\r\n```\r\nIf I use `Text.Format()` and `SliceStart` but not actually interject the `SliceStart` ...\r\n```\r\n\"azureTableSourceQuery\": \"$$Text.Format('PartitionKey eq \\\\'AAA\\\\' and RowKey ge \\\\'2015-07-31 00:00:00\\\\' and RowKey le \\\\'2015-07-31 23:59:59\\\\'', SliceStart)\"\r\n```\r\n... that also works.\r\n\r\nHowever, as soon as I start using `Text.Format()` and attempt to interject the `SliceStart` into the query string ...\r\n```\r\n\"azureTableSourceQuery\": \"$$Text.Format('PartitionKey eq \\\\'AAA\\\\' and RowKey ge \\\\'{0:yyyy-MM-dd} 00:00:00\\\\' and RowKey le \\\\'{0:yyyy-MM-dd} 23:59:59\\\\'', SliceStart)\"\r\n```\r\n... it filters all of the entities and I get no entities back. I've tried a dozen variations but nothing seems to work. I think there is a bug in your parser. If not, what am I missing?\r\n"},"comment":{"url":"https://api.github.com/repos/Azure/azure-content/issues/comments/127046264","html_url":"https://github.com/Azure/azure-content/issues/4139#issuecomment-127046264","issue_url":"https://api.github.com/repos/Azure/azure-content/issues/4139","id":127046264,"user":{"login":"GuardRex","id":1622880,"avatar_url":"https://avatars.githubusercontent.com/u/1622880?v=3","gravatar_id":"","url":"https://api.github.com/users/GuardRex","html_url":"https://github.com/GuardRex","followers_url":"https://api.github.com/users/GuardRex/followers","following_url":"https://api.github.com/users/GuardRex/following{/other_user}","gists_url":"https://api.github.com/users/GuardRex/gists{/gist_id}","starred_url":"https://api.github.com/users/GuardRex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GuardRex/subscriptions","organizations_url":"https://api.github.com/users/GuardRex/orgs","repos_url":"https://api.github.com/users/GuardRex/repos","events_url":"https://api.github.com/users/GuardRex/events{/privacy}","received_events_url":"https://api.github.com/users/GuardRex/received_events","type":"User","site_admin":false},"created_at":"2015-08-02T17:10:46Z","updated_at":"2015-08-02T17:10:46Z","body":"btw - One of the problems with my debugging the query is that I can't see what your parser is producing out of the `Text.Fomat()` function. It would be helpful if you save and show the final query that is being used with the database somewhere in the UI."}}