Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

2295

July 12th, 2011 20:00

xam/field not found

I am new to XAM programming.  I just compile the sample query.c and retrieved some XUID from a test Centera device.  Then I complied the sample retrieveContent.c and tried to use the XUID.  I get the following error, xam/field not found.

here is my result:

./retrieveContent64 AAAEcwA9HcFFQUpPVEoxN08zTlYwZUNMNjRRQTlJNkk2OTlHNDE1TU1GRFJGVDBRMDY5TzZDNUZIOUg0VA abc.tmp
Connect to: snia-xam://centera_vim!171.202.34.134,171.202.34.135,171.202.34.253,171.202.34.254?/hosting/logs/ging/code/emc/rwe.pea...Connected
ERROR: [1013] "xam/field not found"

Can someone tell me what is wrong?  Thanks.

Ging

409 Posts

July 13th, 2011 09:00

The error is because the code is attempting to open a field that doesn't exist in that XSet

Download shXAM and open the XSet with that and use it to display all fields in the XSet that way you can figure out what fields are available and what type they are.  You should then be able to modify your code to read the xset better.

A question though: as the clips have been written by the centera sdk why not use that to access them.  However if XAM is what you want to use you can use it to open legacy clips.

409 Posts

July 13th, 2011 04:00

Hi

It's likely that if you have just queried a Centera and obtained some XUIDs from that Centera and then you have just run the retrieveContent sample code with those XUIDs that you would get this error.  This is because the retrieveContent code expects the XSet to have particular fields that don't exist in the XSets on the cluster.

What you need to do is write some XSets with a set of fields that you know about and then write some code that retrieves those fields.

Also you could write some code which rather than than attempt to read a field which may or may not exist in the XSet, instead it iterated through the fields in the XSet.  If you download the shXAM tool you can use this tool's CLI to "manually" open XSets and view all fields in the XSet 

9 Posts

July 13th, 2011 09:00

Paul,

Thanks.

My problem is I have a lot of legacy data in Centera writen with the Centera sdk.  I used the xam query.c sample program to list the legacy objects in XUID.  I tried to test one of the XUID with the retrieveContent.c sample.  It failed even after I get rid of the "Filename" field request.

retrieveContent64 AAAEcwA9ejM0TzBQN0w2M01FQjgwZUFDQkpPQzdUQkxDSktHNDE1TVY3MzlSQjA5N1JMUkJPQkNKREdHQQ== abc.tmp
Connect to: snia-xam://centera_vim!171.202.34.134,171.202.34.135,171.202.34.253,171.202.34.254?/hosting/logs/ging/code/emc/rwe.pea...Connected
ERROR: [1013] "xam/field not found"

True, I can retrieve any objects that was commited by the xam api using the xuid.  Is it a possible way to view the legacy data with the XAM api?  Thanks.

Ging

9 Posts

July 14th, 2011 13:00

Paul,

Thanks.  You are right, when I changed to the correct XSet parameter name, I got the legacy image.  The reason I want to use XAM is that it is a industry standard api.  I am saying that we are moving away from Centera.  Here is a few newby questions:

1.     is it an utility to convert Clipid and XUID?

2.     "SELECT \".xset.xuid\"" is a correct statement, but "SELECT \".xset.xuid where .xset.time.creation > date('2011-07-12T00:00:00.0')\"" is not.  Why?

Thank you for your helps.

Ging

No Events found!

Top