Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X
TLDR: Don't use a field name called "location" in your DataTable to save values of the datatype location. Just call it something else.
I have been trying to store some data in a DataTable and run into an issue where whenever I try to retrieve the location field, it would always be 0,0,0.
This was very confusing and I was clearly not the only person, here is an old post with a false solution:
The problem lies in the fact that when your datashape has a field definition called "location" of datatype location, then you are duplicating the internal field definition of a DataTable.
Below is a screenshot of the default field definitions and you will see that there is a "location" field in there.
Just change your DataShape to use a different field name (other than "location") and you should be fine.