Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 63 Insurance
- 536.4K On-Premises Infrastructure
- 138.3K Analytics Software
- 38.6K Application Development Software
- 5.8K Cloud Platform
- 109.5K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.3K Integration
- 41.6K Security Software
OWCS Flex Asset assetset:getattributevaluesTag gives Error No : -4

Hi All,
After seven years I am trying to make my hands dirty in OWCS technology.
I am trying retrieve flex asset FirstSite values using the below code snippet.
But it returns me error no -4.
---------------------------------------------------------------------------
code snippet:
---------------
<%@ taglib prefix="cs" uri="futuretense_cs/ftcs1_0.tld" %><%@ taglib prefix="ics" uri="futuretense_cs/ics.tld" %><%@ taglib prefix="render" uri="futuretense_cs/render.tld" %><%@ taglib prefix="fragment" uri="futuretense_cs/fragment.tld" %><cs:ftcs><%-- /PlsFlexAsset --%> <%-- Record dependencies for the Template --%> <ics:if condition='<%=ics.GetVar("tid")!=null%>'><ics:then><render:logdep cid='<%=ics.GetVar("tid")%>' c="Template"/></ics:then></ics:if> <assetset:setasset name="flexAsset" type='Product_C' id='1114083739596' /> <assetset:getattributevalues name="flexAsset" typename="Product_A" attribute="FSIIPrice" listvarname="AbstractList"/> <assetset:getattributevalues name="flexAsset" typename="Product_A" attribute="FSIISKU" listvarname="bodyTextList"/> <ics:listloop listname="AbstractList"> <ics:listget listname="AbstractList" fieldname="value" /> </ics:listloop> <ics:listloop listname="bodyTextList"> <ics:listget listname="bodyTextList" fieldname="value" /> </ics:listloop> Error Single Value : <ics:geterrno />
-------------------------------------------------------------------------------
The above mentioned code snippet gives error code -4
Sites.log displays the below error.
Highly appreciate your help in fixing this issue.
[2021-02-02T14:12:16.070+00:00] [wcsites] [ERROR] [] [oracle.wcsites.jsp] [tid: 689] [ecid: 0000NTZ0VZqFw005zzp2iW1W6H^U00000L,0] ics:listloop tag failure: list 'AbstractList' not found! pagename: TestFlexAsset element: TestFlexAsset
[2021-02-02T14:12:16.071+00:00] [wcsites] [ERROR] [] [oracle.wcsites.jsp] [tid: 689] [ecid: 0000NTZ0VZqFw005zzp2iW1W6H^U00000L,0] ics:listloop tag failure: list 'bodyTextList' not found! pagename: TestFlexAsset element: TestFlexAsset
Thx
Dhaya
Answers
-
turn on TRACE for oracle.wcsites and you would know it.
possibly either assettype is wrong or id is wrong or both
-
Add the following taglib to the above code, which will help executing assetset tags and provide result.
%><%@ taglib prefix="assetset" uri="futuretense_cs/assetset.tld"
Thanks,
Sekhar.