WindowsAzure/azure-sdk-for-node — Issue #83: Table storage inserts with false boolean values fail
Author: pofallon
Created: 2012-02-18 19:17:28+00:00
State: open

A table storage insert with a true boolean value, such as:

```Javascript
{ one: 'uno',
two: { '@': { type: 'Edm.Double' }, '#': 2 },
three: { '@': { type: 'Edm.Boolean' }, '#': true },
four:
{ '@': { type: 'Edm.DateTime' },
'#': '2010-12-23T23:12:11.234Z' },
PartitionKey: 'foo',
RowKey: 'bar' }
```
works correctly. However, the same insert with a false value:

```Javascript
{ one: 'uno',
two: { '@': { type: 'Edm.Double' }, '#': 2 },
three: { '@': { type: 'Edm.Boolean' }, '#': false },
four:
{ '@': { type: 'Edm.DateTime' },
'#': '2010-12-23T23:12:11.234Z' },
PartitionKey: 'foo',
RowKey: 'bar' }
```
generates an error ("One of the request inputs is not valid"). When I dump the XML of this failing request, it shows an extra set of <#> tags around the false value:

```XML

uno
2
<#>false
2010-12-23T23:12:11.234Z
foo
bar

```
A work around is to enclose the false value in quotes:

```Javascript
{ one: 'uno',
two: { '@': { type: 'Edm.Double' }, '#': 2 },
three: { '@': { type: 'Edm.Boolean' }, '#': 'false' },
four:
{ '@': { type: 'Edm.DateTime' },
'#': '2010-12-23T23:12:11.234Z' },
PartitionKey: 'foo',
RowKey: 'bar' }
```
which causes the resulting XML to be generated correctly.