Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.46k stars 4.8k forks source link

Unable touse GetDateTime method on an azure table entity #28062

Closed Jack-e-metron closed 2 years ago

Jack-e-metron commented 2 years ago

[Enter feedback here] Method does not function. 6 example = table_client.get_entity(partition_key='4_2022',row_key='1009764') ----> 7 example.GetDateTime()

causes error: AttributeError: 'TableEntity' object has no attribute 'GetDateTime'


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

jsquire commented 2 years ago

Hi @Jack-e-metron. Thank you for reaching out and we regret that you're experiencing difficulties. The code snippet that you've shared appears to be Python, as does the error message. The documentation that you're referencing is for the .NET client library. Python returns a dict when get_entity is called, as described in the Python docs. Because a dict does not have a GetDateTime method, attempting call one would surface the error that you're seeing.

Is it possible that you're referencing the API documentation for the wrong language?

ghost commented 2 years ago

Hi, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!