"No such attribute: name" When Using WebCenter Sites Asset API Query On Flex Assets (Doc ID 1531848.1)

Last updated on JUNE 29, 2017

Applies to:

Oracle WebCenter Sites - Version 11.1.1.6.1 and later
Information in this document applies to any platform.

Symptoms

When trying to query the name attribute on a Flex asset using the Asset API, assetDataManager.read(query) we get an AssetException:

com.openmarket.basic.interfaces.AssetException: No such attribute: name
  at com.openmarket.gator.assetset.AssetSet.FindAttribute(AssetSet.java:115)
  at com.openmarket.gator.assetset.AssetSet.Convert(AssetSet.java:137)
  at com.openmarket.gator.assetset.AssetSet.Convert(AssetSet.java:142)
  at com.openmarket.gator.assetset.AssetSet.ConvertSearchstateToIDs(AssetSet.java:123)
  at com.openmarket.gator.assetset.AssetSet.setSearchedAssets(AssetSet.java:210)
  at com.fatwire.assetapi.data.FlexAssetDataReadStrategy._getFlexAssets(FlexAssetDataReadStrategy.java:212)
  at com.fatwire.assetapi.data.FlexAssetDataReadStrategy.read(FlexAssetDataReadStrategy.java:89)
  at com.fatwire.assetapi.data.AssetDataManagerImpl.read(AssetDataManagerImpl.java:81)

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms