I am using PHP with Eclipse in compute and storage emulator and I am trying to store error data (I am writing Windows Azure storage table appender for log4php) and I don't understand why it has a problem with some data saved using Microsoft_WindowsAzure_Storage_DynamicTableEntity
and batch.
This works:
Microsoft_WindowsAzure_Storage_DynamicTableEntity(5) {
_dynamicProperties protected => array(9) {
timestamp => stdClass(3) {
Name => "timestamp" (9)
Type => "Edm.String" (10)
Value => "2012 04 20 09:33:11 Europe/London" (33)
}
level => stdClass(3) {
Name => "level" (5)
Type => "Edm.String" (10)
Value => "ERROR" (5)
}
thread => stdClass(3) {
Name => "thread" (6)
Type => "Edm.Int32" (9)
Value => 2236
}
message => stdClass(3) {
Name => "message" (7)
Type => "Edm.String" (10)
Value => "test error - nothing actually happened" (38)
}
loggername => stdClass(3) {
Name => "loggerName" (10)
Type => "Edm.String" (10)
Value => "errors" (6)
}
filename => stdClass(3) {
Name => "fileName" (8)
Type => "Edm.String" (10)
Value => "C:\Users\Ragnar\workspace\CelebrioLocalDev\ServiceDefinition.csx\roles\CelebrioLocalDevRole\approot\app\bootstrap.php" (117)
}
method => stdClass(3) {
Name => "method" (6)
Type => "Edm.String" (10)
Value => "main" (4)
}
linenumber => stdClass(3) {
Name => "lineNumber" (10)
Type => "Edm.Int32" (9)
Value => 90
}
classname => stdClass(3) {
Name => "className" (9)
Type => "Edm.String" (10)
Value => "main" (4)
}
}
_partitionKey protected => "20120420" (8)
_rowKey protected => 1334910791.3827
_timestamp protected => NULL
_etag protected => ""
}
This doesnt:
Microsoft_WindowsAzure_Storage_DynamicTableEntity(5) {
_dynamicProperties protected => array(12) {
timestamp => stdClass(3) {
Name => "timestamp" (9)
Type => "Edm.String" (10)
Value => "2012 04 20 09:29:57 Europe/London" (33)
}
level => stdClass(3) {
Name => "level" (5)
Type => "Edm.String" (10)
Value => "ERROR" (5)
}
thread => stdClass(3) {
Name => "thread" (6)
Type => "Edm.Int32" (9)
Value => 5164
}
message => stdClass(3) {
Name => "message" (7)
Type => "Edm.String" (10)
Value => "test error - nothing actually happened" (38)
}
loggername => stdClass(3) {
Name => "loggerName" (10)
Type => "Edm.String" (10)
Value => "errors" (6)
}
filename => stdClass(3) {
Name => "fileName" (8)
Type => "Edm.String" (10)
Value => "C:\Users\Ragnar\workspace\CelebrioLocalDev\ServiceDefinition.csx\roles\CelebrioLocalDevRole\approot\app\bootstrap.php" (117)
}
method => stdClass(3) {
Name => "method" (6)
Type => "Edm.String" (10)
Value => "main" (4)
}
linenumber => stdClass(3) {
Name => "lineNumber" (10)
Type => "Edm.Int32" (9)
Value => 90
}
classname => stdClass(3) {
Name => "className" (9)
Type => "Edm.String" (10)
Value => "main" (4)
}
exceptionmessage => stdClass(3) {
Name => "exceptionMessage" (16)
Type => "Edm.String" (10)
Value => "testing exception" (17)
}
exceptioncode => stdClass(3) {
Name => "exceptionCode" (13)
Type => "Edm.Int32" (9)
Value => 0
}
exceptionstacktrace => stdClass(3) {
Name => "exceptionStackTrace" (19)
Type => "Edm.String" (10)
Value => "#0 C:\Users\Ragnar\workspace\CelebrioLocalDev\ServiceDefinition.csx\roles\CelebrioLocalDevRole\approot\document_root\index.php(11): require()
#1 {main ... " (151)
}
}
_partitionKey protected => "20120420" (8)
_rowKey protected => 1334910597.0864
_timestamp protected => NULL
_etag protected => ""
}
Why is there a problem with the second entity?
The error message is:
Microsoft_WindowsAzure_Exception
An error has occured while committing a batch: 0:One of the request inputs is not valid.