CloudTable CreateIfNotExists throws exception

Hi,

I have the following code in a managed C++ class:

mStorageAccount = CloudStorageAccount::Parse(connectionString);
mTableClient = mStorageAccount->CreateCloudTableClient();
mOutputResults = mTableClient->GetTableReference("outputResults");

bool test = mOutputResults ->CreateIfNotExists(nullptr, nullptr);

This code always throws the following exception:

A first chance exception of type 'System.IO.FileNotFoundException' occurred in Microsoft.WindowsAzure.Storage.dll
A first chance exception of type 'Microsoft.WindowsAzure.Storage.StorageException' occurred in Microsoft.WindowsAzure.Storage.dll
Step into: Stepping over method without symbols 'Microsoft.WindowsAzure.Storage.Core.Executor.Executor.ExecuteSync<Microsoft.WindowsAzure.Storage.Table.TableResult>'

I am at a loss as to why this is happening.  This code is almost exactly the same as for the C#, and accessing Blob storage with the storage account works fine.  

Any help here would be greatly appreciated.

Regards,

July 27th, 2015 10:06am

Hi,

Thank you for reaching out to us.
I am currently researching to gather more information with regards to your request.
I shall revert back to you with an update at the earliest.
Sincerely appreciate your patience.

Regards,
Shirisha Paderu

Free Windows Admin Tool Kit Click here and download it now
July 28th, 2015 8:35am

Hello Ronan Mac Laverty,

As per the documentation the exception which youre getting is known issue in Windows Azure Storage Client Library 2.0 and it does not support null values for CreateIfNotExists (nullptr, nullptr);
so I suggest you to update your Azure storage client Library 2.0 to 2.0.3  if you are using 2.0 version and try.

Please check the below link for details:

http://blogs.msdn.com/b/windowsazurestorage/archive/2012/12/10/updated-known-issues-for-windows-azure-storage-client-library-2-0-for-net-and-windows-runtime.aspx

Hope it helps.

Regards,
Sunil.HP

July 31st, 2015 10:21am

Hello Ronan Mac Laverty,

As per the documentation the exception which youre getting is known issue in Windows Azure Storage Client Library 2.0 and it does not support null values for CreateIfNotExists (nullptr, nullptr);
so I suggest you to update your Azure storage client Library 2.0 to 2.0.3  if you are using 2.0 version and try.

Please check the below link for details:

http://blogs.msdn.com/b/windowsazurestorage/archive/2012/12/10/updated-known-issues-for-windows-azure-storage-client-library-2-0-for-net-and-windows-runtime.aspx

Hope it helps.

Regards,
Sunil.HP

Free Windows Admin Tool Kit Click here and download it now
July 31st, 2015 2:21pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics