Jack

Can you please correct my loop settings in GEL script?

Discussion created by Jack on Oct 12, 2010
Latest reply on Nov 25, 2010 by Dave
Hi,
I'm receiving [color=#F01448]:0:0: element "Resource" is missing "resourceId" attribute[color]

Here is the error info and I have attached my source code as well. Please guide me to correct my loop settings. My goal is to read certain fields from db and wants to prepare an xml in memory and then to xog it through soap calls.

Please share with me if you have any sample scripts or you can correct my script error (see attachment).

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<SessionID xmlns="http://www.niku.com/xog">23566026__-24b2f517:12ab4136ef8:-7f151283176833042</SessionID>
<XOGOutput xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/status.xsd">
<Object type="resource"/>
<Status state="FAILURE"/>
<Statistics failureRecords="0" insertedRecords="0"
totalNumberOfRecords="0" updatedRecords="0"/>
<ErrorInformation>
<Severity>FATAL</Severity>
<Description>[Error] :0:0: element "Resource" is missing "resourceId" attribute
</Description>
<Exception type="java.lang.Exception"><![CDATA[
java.lang.Exception: Invalid xml data

Outcomes