Error creating a mashlet.

User offline. Last seen 1 year 11 weeks ago. Offline
Joined: 03/26/2009
Points: 30

Hi,  I am having problem creating mashlet based on this EMML for a mashup...

This is a simple mashup that reteives data based on elementID_20 from a MSSQL table...It works fine in  Wires environment, but returns error when I attempt to create a mashlet based on this mashup.

"Error execution Mashup Script : Variable not defined : elementId_23"

What am I doing wrong?

<mashup name="TestMetricsMall2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.jackbe.com/2008-03-01/EMMLSchema../src/schemas/EMMLSpec.xsd" xmlns="http://www.jackbe.com/2008-03-01/EMMLSchema" xmlns:macro="http://www.jackbe.com/2008-03-01/EMMLMacro" ><presto-meta name="created-using">Wires</presto-meta><operation name="runMashup" >
<variable name="limitRecords" type="number" default="-2"/>
<inputparam label="elementId" name="elementId_23" type="string" default="72" id="23">
                            </inputparam>
<variable label="Data" name="MetricsMall_20_out" type="document" default="" parentBlock="MetricsMall_20" id="22">
                            </variable>
<variable label="Data" name="elementId_20" type="integer" default="72" id="21">
                            </variable>
<outputparam label="Output" name="MashupOutput" type="MetricsValuesMonthly_Array" default="" parentBlock="MetricsMall_20" service="MetricsMall" id="2">
                            </outputparam>
<macro:ConditionalInvoke label="MetricsMall" description="Service Operation" name="MetricsMall_20" service="MetricsMall" operation="findMetricsValuesMonthlyWhereElementIdEquals" serviceVersion="" outputvariable="MashupOutput" onerror="continue" inputvariables="elementId_23" condition="true()" viewConfig="" limit="$limitRecords" id="20">
                            </macro:ConditionalInvoke>
</operation></mashup>

Please assist.

Murali

 

0
Your rating: None
User offline. Last seen 1 week 1 day ago. Offline
Joined: 09/22/2008
Points: 81

Hi Murali,

Can you try the following:

1) Go to http://server:port/presto/dev and run the above mashup using a JUMP request:

{
    "version": "1.1",
    "sid": "TestMetricsMall2",
    "oid": "runMashup",
    "svcVersion": "0.1",
    "params": [
        "<value for elementId_23>"
    ]
}

2) See what you get as the output. Please paste it here.

3) See the presto.log output and paste the stack trace here.

Thanks,

Kishore