Procedure Transformation not executing with a Mapping

I have a mapping that uses a number of procedure and function transformations.
Basically the flow is as follows source data from an external table, push into a funtion transformation for validation output from this is feed into a splitter.
Where validation fails flow from splitter is pushed into another function transformation and output from that get pushed into an error table.
Where validation passes output flow from splitter combined with flow from a procedure transformation is pushed into a target table.
The issue is where validation passes it appears not be execute the procedure - hence appropriate values to the target table is null, executing this procedure in SQLPLUS works fine.
The strange thing is where validation fails the data flows nicely to the error table.
Is there an issue in using procedure transformations in this way?
Thanks in advance for any help.
Message was edited by:
kayvic01

Hi,
The flow looks ok...when the validation passes the output attributes from the splitter outgroup are not properly taken in by the procedure. Since u have executed the procedure seperately you will manually give the IN attributes for the procedure...check whether ur manual IN for the procedure matches with the outgroup from the splitter. Generate an internediate script and check...it will give you the solution,
Regards
Bharath

Similar Messages

  • PROCEDURE IS NOT EXECUTED WITH IN THE DATABASE TRIGGER

    The follwing databse trigger works fine but the procedure lv_calc_pkg.p_orders_executed(:new.stock_code,:new.selling,:new.buying,:new.qty,:new.price); is not executed
    please help
    CREATE OR REPLACE TRIGGER SE.LV_SUMMARY_TRADE_TR
    AFTER INSERT
    ON SE.LV_DAILY_TRADES
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    vstock gn_stocks.stock_code%TYPE;
    CURSOR stock_cur
    IS
    SELECT stock_code
    FROM lv_trade_summary
    WHERE stock_code = :NEW.stock_code;
    BEGIN
    OPEN stock_cur;
    FETCH stock_cur
    INTO vstock;
    IF stock_cur%NOTFOUND
    THEN
    INSERT INTO lv_trade_summary(
         the_time,
         the_date,
         stock_code,
         stock_type_id,
         market_id,
         deals,
         price,
         qty,
         trade_value,
         le_value,
         buying,
         selling,
         rec_count,
         rec_serial,
         buying_count,
         close_price,
         coupon_value,
         currency,
         dividend_yield_perc,
         eps,
         free_stocks,
         hi_offer,
         hi_req,
         hi_req_qty,
         high_date,
         high_price,
         last_offer,
         last_request,
         last_trade_date,
         less_offer,
         less_offer_qty,
         less_request,
         liquid,
         low_date,
         low_price,
         market_cap,
         off_count,
         prev_close,
         prop_avg_ofr_10,
         prop_avg_rqst_10,
         prop_avg_ofr_5,
         prop_avg_rqst_5,
         prop_avg_offers,
         prop_avg_rqst,
         req_count,
         rqst_to_offers,
         sector_desc_a,
         sector_desc_e,
         selling_count,
         simple_avg_ofrs_10,
         simple_avg_rqst_10,
         simple_avg_ofr_5,
         simple_avg_rqst_5,
         simple_avg_offers,
         simple_avg_rqst,
         stock_count,
         stock_desc_a,
         stock_desc_e,
         sum_less_ofr_10,
         sum_less_rqst_10,
         sum_less_5_rqst,
         sum_offer,
         sum_volume_traded,
         trx_count,
         sum_request,
         last_request_qty,
         last_offer_qty )
    VALUES (
         :NEW.the_time,
         :NEW.the_date,
         :NEW.stock_code,
         :NEW.stock_type_id,
         :NEW.market_id,
         :NEW.deals,
         :NEW.price,
         :NEW.qty,
         :NEW.trade_value,
         :NEW.le_value,
         :NEW.buying,
         :NEW.selling,
         :NEW.rec_count,
         :NEW.rec_serial,
         lv_calc_pkg.f_buying_count (:NEW.stock_code),
         lv_calc_pkg.f_close_price (:NEW.stock_code),
         lv_calc_pkg.f_coupon_value (:NEW.stock_code),
         lv_calc_pkg.f_currency (:NEW.stock_code),
         lv_calc_pkg.f_dividend_yield_perc (:NEW.stock_code),
         lv_calc_pkg.f_eps (:NEW.stock_code),
         lv_calc_pkg.f_free_stocks (:NEW.stock_code),
         lv_calc_pkg.f_hi_offer (:NEW.stock_code),
         lv_calc_pkg.f_hi_request (:NEW.stock_code),
         lv_calc_pkg.f_hi_request_qty (:NEW.stock_code),
         lv_calc_pkg.F_HIGH_DATE (:new.stock_code),
         lv_calc_pkg.F_HIGH_price (:new.stock_code),
         lv_calc_pkg.f_last_offer (:NEW.stock_code),
         lv_calc_pkg.f_last_request (:NEW.stock_code),
         lv_calc_pkg. F_LAST_TRADE_DATE(:new.stock_code),
         lv_calc_pkg.f_less_offer (:NEW.stock_code),
         lv_calc_pkg.f_less_offer_qty (:NEW.stock_code),
         lv_calc_pkg.f_less_request (:NEW.stock_code),
         lv_calc_pkg.f_liquid (:NEW.stock_code),
         lv_calc_pkg.f_low_date(:new.stock_code),
         lv_calc_pkg.f_low_price(:new.stock_code),
         lv_calc_pkg.f_market_cap(:new.stock_code),
         lv_calc_pkg.f_off_count (:NEW.stock_code),
         lv_calc_pkg.f_prev_close (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_best_10_ofrs (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_best_10_rqst (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_best_5_ofrs (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_best_5_rqst (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_offers (:NEW.stock_code),
         lv_calc_pkg.f_prop_avg_rqst (:NEW.stock_code),
         lv_calc_pkg.f_req_count (:NEW.stock_code),
         lv_calc_pkg.f_rqst_to_offers (:NEW.stock_code),
         lv_calc_pkg.f_sector_desc_a(:new.stock_code),
         lv_calc_pkg.f_sector_desc_e(:new.stock_code),
         lv_calc_pkg.f_selling_count (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_best_10_ofrs (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_best_10_rqst (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_best_5_ofrs (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_best_5_rqst (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_offers (:NEW.stock_code),
         lv_calc_pkg.f_simple_avg_rqst (:NEW.stock_code),
         lv_calc_pkg.f_stock_count (:NEW.stock_code),
         lv_calc_pkg.f_stock_desc_a(:new.stock_code),
         lv_calc_pkg.f_stock_desc_e(:new.stock_code),
         lv_calc_pkg.f_sum_less_10_offers,
         lv_calc_pkg.f_sum_less_10_rqst,
         lv_calc_pkg.f_sum_less_5_rqst,
         lv_calc_pkg.f_sum_offerst (:NEW.stock_code),
         lv_calc_pkg.f_sum_volume_traded (:NEW.stock_code),
         lv_calc_pkg.f_trx_count (:NEW.stock_code),
         lv_calc_pkg.f_sum_request (:NEW.stock_code),
         lv_calc_pkg.f_last_request_qty (:NEW.stock_code),
         lv_calc_pkg.f_last_offer_qty (:NEW.stock_code) );
    ELSIF stock_cur%FOUND THEN
         UPDATE lv_trade_summary
         SET the_time = :NEW.the_time,
         deals = :NEW.deals,
         price = :NEW.price,
         qty = :NEW.qty,
         trade_value = :NEW.trade_value,
         le_value = :NEW.le_value,
         buying = :NEW.buying,
         selling = :NEW.selling,
         rec_count = :NEW.rec_count,
         rec_serial = :NEW.rec_serial,
         buying_count = lv_calc_pkg.f_buying_count (:NEW.stock_code),
         close_price = lv_calc_pkg.f_close_price (:NEW.stock_code),
         coupon_value = lv_calc_pkg.f_coupon_value (:NEW.stock_code),
         currency = lv_calc_pkg.f_currency (:NEW.stock_code),
         dividend_yield_perc =
         lv_calc_pkg.f_dividend_yield_perc (:NEW.stock_code),
         hi_offer = lv_calc_pkg.f_hi_offer (:NEW.stock_code),
         hi_req = lv_calc_pkg.f_hi_request (:NEW.stock_code),
         hi_req_qty = lv_calc_pkg.f_hi_request_qty (:NEW.stock_code),
         last_offer = lv_calc_pkg.f_last_offer (:NEW.stock_code),
         last_request = lv_calc_pkg.f_last_request (:NEW.stock_code),
         last_trade_date = lv_calc_pkg.f_last_trade_date (:NEW.stock_code),
         less_offer = lv_calc_pkg.f_less_offer (:NEW.stock_code),
         less_offer_qty = lv_calc_pkg.f_less_offer_qty (:NEW.stock_code),
         less_request = lv_calc_pkg.f_less_request (:NEW.stock_code),
         liquid = lv_calc_pkg.f_liquid (:NEW.stock_code),
         off_count = lv_calc_pkg.f_off_count (:NEW.stock_code),
         prev_close = lv_calc_pkg.f_prev_close (:NEW.stock_code),
         prop_avg_ofr_10 =
         lv_calc_pkg.f_prop_avg_best_10_ofrs (:NEW.stock_code),
         prop_avg_rqst_10 =
         lv_calc_pkg.f_prop_avg_best_10_rqst (:NEW.stock_code),
         prop_avg_ofr_5 =
         lv_calc_pkg.f_prop_avg_best_5_ofrs (:NEW.stock_code),
         prop_avg_rqst_5 =
         lv_calc_pkg.f_prop_avg_best_5_rqst (:NEW.stock_code),
         prop_avg_offers = lv_calc_pkg.f_prop_avg_offers (:NEW.stock_code),
         prop_avg_rqst = lv_calc_pkg.f_prop_avg_rqst (:NEW.stock_code),
         req_count = lv_calc_pkg.f_req_count (:NEW.stock_code),
         rqst_to_offers = lv_calc_pkg.f_rqst_to_offers (:NEW.stock_code),
         sector_desc_a = lv_calc_pkg.f_sector_desc_a (:NEW.stock_code),
         sector_desc_e = lv_calc_pkg.f_sector_desc_e (:NEW.stock_code),
         selling_count = lv_calc_pkg.f_selling_count (:NEW.stock_code),
         simple_avg_ofrs_10 =
         lv_calc_pkg.f_simple_avg_best_10_ofrs (:NEW.stock_code),
         simple_avg_rqst_10 =
         lv_calc_pkg.f_simple_avg_best_10_rqst (:NEW.stock_code),
         simple_avg_ofr_5 =
         lv_calc_pkg.f_simple_avg_best_5_ofrs (:NEW.stock_code),
         simple_avg_rqst_5 =
         lv_calc_pkg.f_simple_avg_best_5_rqst (:NEW.stock_code),
         simple_avg_offers =
         lv_calc_pkg.f_simple_avg_offers (:NEW.stock_code),
         simple_avg_rqst = lv_calc_pkg.f_simple_avg_rqst (:NEW.stock_code),
         stock_count = lv_calc_pkg.f_stock_count (:NEW.stock_code),
         stock_desc_a = lv_calc_pkg.f_stock_desc_a (:NEW.stock_code),
         stock_desc_e = lv_calc_pkg.f_stock_desc_e (:NEW.stock_code),
         sum_less_ofr_10 = lv_calc_pkg.f_sum_less_10_offers,
         sum_less_rqst_10 = lv_calc_pkg.f_sum_less_10_rqst,
         sum_less_5_rqst = lv_calc_pkg.f_sum_less_5_rqst,
         sum_offer = lv_calc_pkg.f_sum_offerst (:NEW.stock_code),
         sum_volume_traded =
         lv_calc_pkg.f_sum_volume_traded (:NEW.stock_code),
         trx_count = lv_calc_pkg.f_trx_count (:NEW.stock_code),
         sum_request = lv_calc_pkg.f_sum_request (:NEW.stock_code),
         last_request_qty = lv_calc_pkg.f_last_request_qty (:NEW.stock_code),
         last_offer_qty = lv_calc_pkg.f_last_offer_qty (:NEW.stock_code)
         WHERE stock_code = :NEW.stock_code;
    END IF;
    lv_calc_pkg.p_orders_executed(:new.stock_code,:new.selling,:new.buying,:new.qty,:new.price);
    CLOSE stock_cur;
    END;

    Well, you can use merge statement or exception :
    CREATE OR REPLACE TRIGGER SE.LV_SUMMARY_TRADE_TR
    AFTER INSERT
    ON SE.LV_DAILY_TRADES
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    BEGIN
         BEGIN
              UPDATE lv_trade_summary
              SET the_time = :NEW.the_time,
              deals = :NEW.deals,
              price = :NEW.price,
              qty = :NEW.qty,
              trade_value = :NEW.trade_value,
              le_value = :NEW.le_value,
              buying = :NEW.buying,
              selling = :NEW.selling,
              rec_count = :NEW.rec_count,
              rec_serial = :NEW.rec_serial,
              buying_count = lv_calc_pkg.f_buying_count (:NEW.stock_code),
              close_price = lv_calc_pkg.f_close_price (:NEW.stock_code),
              coupon_value = lv_calc_pkg.f_coupon_value (:NEW.stock_code),
              currency = lv_calc_pkg.f_currency (:NEW.stock_code),
              dividend_yield_perc =
              lv_calc_pkg.f_dividend_yield_perc (:NEW.stock_code),
              hi_offer = lv_calc_pkg.f_hi_offer (:NEW.stock_code),
              hi_req = lv_calc_pkg.f_hi_request (:NEW.stock_code),
              hi_req_qty = lv_calc_pkg.f_hi_request_qty (:NEW.stock_code),
              last_offer = lv_calc_pkg.f_last_offer (:NEW.stock_code),
              last_request = lv_calc_pkg.f_last_request (:NEW.stock_code),
              last_trade_date = lv_calc_pkg.f_last_trade_date (:NEW.stock_code),
              less_offer = lv_calc_pkg.f_less_offer (:NEW.stock_code),
              less_offer_qty = lv_calc_pkg.f_less_offer_qty (:NEW.stock_code),
              less_request = lv_calc_pkg.f_less_request (:NEW.stock_code),
              liquid = lv_calc_pkg.f_liquid (:NEW.stock_code),
              off_count = lv_calc_pkg.f_off_count (:NEW.stock_code),
              prev_close = lv_calc_pkg.f_prev_close (:NEW.stock_code),
              prop_avg_ofr_10 =
              lv_calc_pkg.f_prop_avg_best_10_ofrs (:NEW.stock_code),
              prop_avg_rqst_10 =
              lv_calc_pkg.f_prop_avg_best_10_rqst (:NEW.stock_code),
              prop_avg_ofr_5 =
              lv_calc_pkg.f_prop_avg_best_5_ofrs (:NEW.stock_code),
              prop_avg_rqst_5 =
              lv_calc_pkg.f_prop_avg_best_5_rqst (:NEW.stock_code),
              prop_avg_offers = lv_calc_pkg.f_prop_avg_offers (:NEW.stock_code),
              prop_avg_rqst = lv_calc_pkg.f_prop_avg_rqst (:NEW.stock_code),
              req_count = lv_calc_pkg.f_req_count (:NEW.stock_code),
              rqst_to_offers = lv_calc_pkg.f_rqst_to_offers (:NEW.stock_code),
              sector_desc_a = lv_calc_pkg.f_sector_desc_a (:NEW.stock_code),
              sector_desc_e = lv_calc_pkg.f_sector_desc_e (:NEW.stock_code),
              selling_count = lv_calc_pkg.f_selling_count (:NEW.stock_code),
              simple_avg_ofrs_10 =
              lv_calc_pkg.f_simple_avg_best_10_ofrs (:NEW.stock_code),
              simple_avg_rqst_10 =
              lv_calc_pkg.f_simple_avg_best_10_rqst (:NEW.stock_code),
              simple_avg_ofr_5 =
              lv_calc_pkg.f_simple_avg_best_5_ofrs (:NEW.stock_code),
              simple_avg_rqst_5 =
              lv_calc_pkg.f_simple_avg_best_5_rqst (:NEW.stock_code),
              simple_avg_offers =
              lv_calc_pkg.f_simple_avg_offers (:NEW.stock_code),
              simple_avg_rqst = lv_calc_pkg.f_simple_avg_rqst (:NEW.stock_code),
              stock_count = lv_calc_pkg.f_stock_count (:NEW.stock_code),
              stock_desc_a = lv_calc_pkg.f_stock_desc_a (:NEW.stock_code),
              stock_desc_e = lv_calc_pkg.f_stock_desc_e (:NEW.stock_code),
              sum_less_ofr_10 = lv_calc_pkg.f_sum_less_10_offers,
              sum_less_rqst_10 = lv_calc_pkg.f_sum_less_10_rqst,
              sum_less_5_rqst = lv_calc_pkg.f_sum_less_5_rqst,
              sum_offer = lv_calc_pkg.f_sum_offerst (:NEW.stock_code),
              sum_volume_traded =
              lv_calc_pkg.f_sum_volume_traded (:NEW.stock_code),
              trx_count = lv_calc_pkg.f_trx_count (:NEW.stock_code),
              sum_request = lv_calc_pkg.f_sum_request (:NEW.stock_code),
              last_request_qty = lv_calc_pkg.f_last_request_qty (:NEW.stock_code),
              last_offer_qty = lv_calc_pkg.f_last_offer_qty (:NEW.stock_code)
              WHERE stock_code = :NEW.stock_code;
         EXCEPTION WHEN OTHERS THEN
              INSERT INTO lv_trade_summary(
              the_time,
              the_date,
              stock_code,
              stock_type_id,
              market_id,
              deals,
              price,
              qty,
              trade_value,
              le_value,
              buying,
              selling,
              rec_count,
              rec_serial,
              buying_count,
              close_price,
              coupon_value,
              currency,
              dividend_yield_perc,
              eps,
              free_stocks,
              hi_offer,
              hi_req,
              hi_req_qty,
              high_date,
              high_price,
              last_offer,
              last_request,
              last_trade_date,
              less_offer,
              less_offer_qty,
              less_request,
              liquid,
              low_date,
              low_price,
              market_cap,
              off_count,
              prev_close,
              prop_avg_ofr_10,
              prop_avg_rqst_10,
              prop_avg_ofr_5,
              prop_avg_rqst_5,
              prop_avg_offers,
              prop_avg_rqst,
              req_count,
              rqst_to_offers,
              sector_desc_a,
              sector_desc_e,
              selling_count,
              simple_avg_ofrs_10,
              simple_avg_rqst_10,
              simple_avg_ofr_5,
              simple_avg_rqst_5,
              simple_avg_offers,
              simple_avg_rqst,
              stock_count,
              stock_desc_a,
              stock_desc_e,
              sum_less_ofr_10,
              sum_less_rqst_10,
              sum_less_5_rqst,
              sum_offer,
              sum_volume_traded,
              trx_count,
              sum_request,
              last_request_qty,
              last_offer_qty )
              VALUES (
              :NEW.the_time,
              :NEW.the_date,
              :NEW.stock_code,
              :NEW.stock_type_id,
              :NEW.market_id,
              :NEW.deals,
              :NEW.price,
              :NEW.qty,
              :NEW.trade_value,
              :NEW.le_value,
              :NEW.buying,
              :NEW.selling,
              :NEW.rec_count,
              :NEW.rec_serial,
              lv_calc_pkg.f_buying_count (:NEW.stock_code),
              lv_calc_pkg.f_close_price (:NEW.stock_code),
              lv_calc_pkg.f_coupon_value (:NEW.stock_code),
              lv_calc_pkg.f_currency (:NEW.stock_code),
              lv_calc_pkg.f_dividend_yield_perc (:NEW.stock_code),
              lv_calc_pkg.f_eps (:NEW.stock_code),
              lv_calc_pkg.f_free_stocks (:NEW.stock_code),
              lv_calc_pkg.f_hi_offer (:NEW.stock_code),
              lv_calc_pkg.f_hi_request (:NEW.stock_code),
              lv_calc_pkg.f_hi_request_qty (:NEW.stock_code),
              lv_calc_pkg.F_HIGH_DATE (:new.stock_code),
              lv_calc_pkg.F_HIGH_price (:new.stock_code),
              lv_calc_pkg.f_last_offer (:NEW.stock_code),
              lv_calc_pkg.f_last_request (:NEW.stock_code),
              lv_calc_pkg. F_LAST_TRADE_DATE(:new.stock_code),
              lv_calc_pkg.f_less_offer (:NEW.stock_code),
              lv_calc_pkg.f_less_offer_qty (:NEW.stock_code),
              lv_calc_pkg.f_less_request (:NEW.stock_code),
              lv_calc_pkg.f_liquid (:NEW.stock_code),
              lv_calc_pkg.f_low_date(:new.stock_code),
              lv_calc_pkg.f_low_price(:new.stock_code),
              lv_calc_pkg.f_market_cap(:new.stock_code),
              lv_calc_pkg.f_off_count (:NEW.stock_code),
              lv_calc_pkg.f_prev_close (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_best_10_ofrs (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_best_10_rqst (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_best_5_ofrs (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_best_5_rqst (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_offers (:NEW.stock_code),
              lv_calc_pkg.f_prop_avg_rqst (:NEW.stock_code),
              lv_calc_pkg.f_req_count (:NEW.stock_code),
              lv_calc_pkg.f_rqst_to_offers (:NEW.stock_code),
              lv_calc_pkg.f_sector_desc_a(:new.stock_code),
              lv_calc_pkg.f_sector_desc_e(:new.stock_code),
              lv_calc_pkg.f_selling_count (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_best_10_ofrs (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_best_10_rqst (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_best_5_ofrs (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_best_5_rqst (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_offers (:NEW.stock_code),
              lv_calc_pkg.f_simple_avg_rqst (:NEW.stock_code),
              lv_calc_pkg.f_stock_count (:NEW.stock_code),
              lv_calc_pkg.f_stock_desc_a(:new.stock_code),
              lv_calc_pkg.f_stock_desc_e(:new.stock_code),
              lv_calc_pkg.f_sum_less_10_offers,
              lv_calc_pkg.f_sum_less_10_rqst,
              lv_calc_pkg.f_sum_less_5_rqst,
              lv_calc_pkg.f_sum_offerst (:NEW.stock_code),
              lv_calc_pkg.f_sum_volume_traded (:NEW.stock_code),
              lv_calc_pkg.f_trx_count (:NEW.stock_code),
              lv_calc_pkg.f_sum_request (:NEW.stock_code),
              lv_calc_pkg.f_last_request_qty (:NEW.stock_code),
              lv_calc_pkg.f_last_offer_qty (:NEW.stock_code) );
         END;
         lv_calc_pkg.p_orders_executed(:new.stock_code,:new.selling,:new.buying,:new.qty,:new.price);
    END;
    /Nicolas.

  • How can I evaluate the count of a query I'd like to execute with a map...

    Hi. I have a problem with a query...
    I hava created a query which a execute with a Map (I use the
    executeWithMap(Map) method). The problem is that sometimes this query
    returns a large resultset. So, I would like to execute an other query
    (called query_count) before executing ther final query with the Map. If
    the query_count returns a count < 200, I execute the final query. How can
    I do ? There is an example I have read this in the documentation :
    Query query = pm.newQuery (Magazine.class, "price < 5");
    query.setResult ("count(this)");
    Long count = (Long) query.execute ();
    The problem in this example is that the query is not execute with a Map.
    So my question is : "How can we do the evalute the count of a query we
    would like to execute with a map ?". Thank you for any response.

    Hi John,
    You should be able to executeWithMap that query, too. Is that giving you
    problems?
    Note that there may be an easier solution. What do you do if there are more
    than 200 results? If, e.g., you just get the first N, then one option is to
    set the FetchBatchSize on the query to N (thus activating large result set
    support), and then call size () on the resulting Collection. This will
    issue a SELECT COUNT(*) to the database to determine the size automatically.
    Thanks,
    Greg
    "John" <[email protected]> wrote in message
    news:ctq9a8$4gr$[email protected]..
    >
    Hi. I have a problem with a query...
    I hava created a query which a execute with a Map (I use the
    executeWithMap(Map) method). The problem is that sometimes this query
    returns a large resultset. So, I would like to execute an other query
    (called query_count) before executing ther final query with the Map. If
    the query_count returns a count < 200, I execute the final query. How can
    I do ? There is an example I have read this in the documentation :
    Query query = pm.newQuery (Magazine.class, "price < 5");
    query.setResult ("count(this)");
    Long count = (Long) query.execute ();
    The problem in this example is that the query is not execute with a Map.
    So my question is : "How can we do the evalute the count of a query we
    would like to execute with a map ?". Thank you for any response.

  • Pl/sql Procedure is Not Creating With the CLOB data Type

    Hi,
    I am Using Oracle 10g Express Edition Release2.... My Doubt is While creating a table With CLOB Data Type the table is created successfully,but while Creating a Procedure With the CLOB Data type i am getting an Error Message
    2667/5 PL/SQL: Statement ignored
    2667/24 PLS-00382: expression is of wrong type
    then i tried With the Varchar2(30000) the Procedure is Created Successfully note i have not changed any thing in my code except the data type.
    I am Just Confused ......Why the Procedure is not Created with CLOB Data type?
    Please advice ...
    Thank U
    SHAN

    hi,
    Thanks for reply....Another Example
    CREATE TABLE USER_MAS (USER_ID     VARCHAR2 (20 Byte),MAIL_ID     VARCHAR2 (255 Byte));
    set serveroutput on
    declare
    atable varchar2(64) := 'USER_MAS';
    acolumn varchar2(64) := 'MAIL_ID';
    avalue varchar2(64) := 'NEWYORK' ;
    dyn_sql clob;
    begin
    dyn_sql := 'update '||atable||' set '||acolumn||' = '''||avalue|| '''' ;
    dbms_output.put_line(dyn_sql);
    execute immediate dyn_sql;
    end;
    commit ;
    Error at line 2
    ORA-06550: line 9, column 23:
    PLS-00382: expression is of wrong type
    ORA-06550: line 9, column 5:
    PL/SQL: Statement ignored
    When i Changed the Data type to varchar2(64)
    update USER_MAS set MAIL_ID = 'NEWYORK'
    PL/SQL procedure successfully completed.
    Commit complete.
    I like to Know the Reason Why the Procedure is Not Created in Oracle 10g XE DB
    Note :the Same Script i used in 11g DB the Procedure is Created Successfully....
    Why you need use CLOB or VARCHAR2 in your temp_num variable as you sending parameters as number?
    In the Procedure we are create some run time queries while executing the procedure. There are around 10 run time queries created.
    The size of each query is more than 4000 characters . We then add all the queries using union all after each query  to the clob variable as the normal varchar will not support.
    Please Advice
    Thank U
    SHAN

  • Interactive reports do not execute with Z business role

    Hi all,
    We have created interactive reports which are working fine and displaying results with a standard business role. However, the report does not even execute when we use a custom business role - no blank screen no error, but the report does not execute at all.
    What could be missing ? Need your inputs please.
    Regards.

    Compare the profile value for the function profile id REPORTING_PROF in Z business role with your std business role. To check this go to define business roles> select your ZBusiness role>double click on Assign function profiles.
    Hope this helps!
    Regards,
    Kumar

  • How to down load adobe since am  told that it is not executable with win32

    how do i download adode trial assistant since i get a notification that it is not compartible with win32

    What exactly are you trying to download on what system using what browser? you need to be more specific and provide more info.
    Mylenium

  • Custom public transformation not executed

    Hi i'm fairly new to OWB so bare with me.
    I've made a custom public transformation in the OWB repository:
    CREATE OR REPLACE FUNCTION DATA."DUMMY_STRING" (
    "P_AUDIT_ID" IN NUMBER,
    "P_PARENT_AUDIT_ID" IN NUMBER
    RETURN VARCHAR2
    IS
    BEGIN
    RETURN TO_CHAR (p_audit_id) || ' - ' || TO_CHAR (p_parent_audit_id);
    END;
    i use it in a process flow where i call it with AUDIT_ID and PARENT_AUDIT_ID and bind the returning value to a process flow variable V_EMAIL_MSG.
    i then call another stored procedure send_mail which is stored as a project transformation(works fine by the way) where i bind the input parameter of send_mail to V_EMAIL_MSG.
    all's fine so far.
    when i run the flow the dummy_string function isn't executed but the send_mail procedure is???.
    i've also tried to "move" dummy_string from custom public transformations into project transformations but with the same results.
    could it be something about execution privileges or such??
    any help would be greatly appreciated

    it seems that AUDIT_ID and PARENT_AUDIT_ID are strings inside the process flow, and the dummy_string function, takes two number parameters, so what i did was to make two assignment activities(ass1, ass2), and two process flow vaiables(v_audit_id, v_parent_audit_id) as integers.
    ass1 assigns AUDIT_ID to the V_AUDIT_ID variable with a to_number(AUDIT_ID) command
    ass2 assigns PARENT_AUDIT_ID to the V_PARENT_AUDIT_ID variable with a to_number(PARENT_AUDIT_ID) command
    in activity dummy_string i bind the v_audit_id and v_parent_audit_id variables to the two input parameters fo dummy_string, and the output of dummy_string to a v_mail_msg variable(string type) wich in tunr is bound to the input parameter of the email activity.
    Does anyone know is is't possible to include images in these posts, it would sure help in illustrating warehouse builder process flows.

  • White space not preserved with XSL Mapping

    Hello
    Is there a problem with preserving white space when using a XSL mapping? My schema has the following included:
                  <xs:element name="FileVersion" minOccurs="1" maxOccurs="1">
                    <xs:simpleType>
                      <xs:restriction base="xs:string">
                        <xs:length value="5"/>
                        <xs:whiteSpace value="preserve"/>
                      </xs:restriction>
                    </xs:simpleType>
                  </xs:element>             
    The whiteSpace attribute alone didn't do it, so I've added length as well which didn't help either.
    My imported XSL mapping writes a fix value of " 6.00" (having a leading space) into the field:
         <FileVersion>
              <xsl:value-of select="' 6.00'"/>
         </FileVersion>
    Processing the mapping with an external tool provides the correct output with a leading space.
    The leading space is missing in the output file or when I do testing in the integration builder. Looking at the target payload in sxmb_moni also shows me the value without leading space:
      <FileVersion>6.00</FileVersion>
    What do I miss? I haven't really found a posting regarding the issue, hence I assume it isn't really one!? Any feedback is appreciated.
    Thanks,
    Daniel

    My XSLT mapping does not have a preserve-space declaration. I am using Altova MapForce, and apparently preserve-space is not a declaration that is supported by MapForce. I would need to manually add it to the mapping after generating it in the tool. Nevertheless, isn't preserve-space the default anyway if nothing is declared, and therefore not necessary?.

  • Query not executing with "Insufficient Shared Objects Memory Available"

    Hi ,
    We have few Reports on a Multi provider, which are working fine earlier both in Web Analyzer and  Bex Analyzer.
    Now we have created an Entry in the MULTIPROVIDER  Hint table  as we have data based on Fiscal Year in 3 different cubes.
    This went fine in our quality system and even it is working now. The reports worked fine  in Production earlier.
    After the change( moving HInt tables entries) queries are not working and givig an error message.
    But if I exeute the reports in Production I get the above mentioned error message.
    1. Have regenerated the Queries already  in Production.
    2. No changes to the Reports.
    3. No changes to the Multi provider.
    Only change is introduction of an entry in Hint table.The same functaionality which is working in quality system is not working in Production.
    We have same amount of data both in our quality and Production for some set of selections.
    Please share your thoughts/experineces if anyone have worked on this.
    Regards,
    Ganesh Thota.

    Hi,
    Try to inrcrease paramenter abap/shared_objects_size_MB as described in SAP Note 972757.
    BR,
    Walter Oliveira

  • SSIS Catalog views are not executing from PROC calling from a service broker

    Hi Exprets,
    I have a package deployed on SSISDB (the new concept in MS SQL 2012, SSIS catalogs). I have t-sql code in which i will be able to execute SSIS package in SSISDB with no problems. But if i place the same t-sql code inside of a procedure which will be called
    by a service broker , the code is not executing.
    I am using the following code to execute a package in the SSISDB catalog
    Declare @execution_id bigint
    EXEC [SSISDB].[catalog].[create_execution] @package_name=N'LoadToABC.dtsx',
    @execution_id=@execution_id OUTPUT, @folder_name=N'ABC', @project_name=N'LoadToABC',
    @use32bitruntime=False, @reference_id=Null
    DECLARE @var0 NVARCHAR(200)
    = N'D:\MyData\SampleText20120830100001.txt'
    EXEC [SSISDB].[catalog].[set_execution_parameter_value] @execution_id, @object_type=30,
    @parameter_name=N'strFileName', @parameter_value=@var0
    EXEC [SSISDB].[catalog].[start_execution] @execution_id
    This code executes if run it alone or placed in a regular stored procedure , but not executes if i palce this same code inside of a procedure which is being called/executed by a service broker call like this:
    CREATE QUEUE dbo.SampleQueue
    WITH STATUS=ON, ACTIVATION
    (STATUS = ON, MAX_QUEUE_READERS
    = 1,
    PROCEDURE_NAME = spMessageProcSample,  
    EXECUTE AS OWNER);
    The problem occurs if we call the SSIS catalogs inside a proc which will be calling through a service broker queue.
    I am running all these steps on my local instance of SQL SERVER 2012 in which i am the administrator.
    Please advice where i am doing wrong ?
    Thanks,
    Jyodhu.

    Hi ArthurZ,
    Thanks for reply. What i ment was i tried with all the "EXECUTE AS" options. but no luck.
    Can you please explain step by step if you can ? That would be great help.
    This is the error message from server log.
    Message
    The activated proc '[dbo].[spMessageProcSample]' running on queue 'FileTableDB.dbo.SampleQueue' output the following:  'The server principal "USA\cccsat1nmg" is not able to access the database "SSISDB" under the current security context.'
    I logged in with WIndows authentication (Admin) and i created all the objects including Integration services Catalog.
    Thanks,
    Jyodhu.

  • Procedure won't execute after sql loader

    I have a procedure that uses DDE to call a bat file. The bat file uses sqlloader to load data from an excel sheet into Oracle. After the bat file is executed, I am doing a series of deletes and inserts.
    After this is done, I am calling another procedure. Whe I run the form, the second procedure is not executing. I put a message box and it does not pop up.
    When I comment the first procedure, only then the second procedure is called. Is this a sql loader issue or a DDE issue?
    thanks

    Thanks for the reply.
    There are no messages. Using Windows.
    As an example, C:\Program Files\Adobe\Adobe Lightroom 5.7.1 is the location for Lightroom 5.7.1. I have pinned it to the task bar. Click on the icon and 5.7.1 executes. If I double click on C:\Program Files\Adobe\Adobe Lightroom 5.7.1\lightroom.exe I can execute LR 5.7.1, just as I would expect.
    However, if I try the same with LR 6, which is located in C:\Program Files\Adobe\Adobe Lightroom, nothing happens. It is also pinned to the task bar. Click on the icon on the task bar, or on the desk top, and nothing happens. No message, nothing.
    Task Manager indicates the only program running is Firefox, my browser.

  • Job not executing through database link

    hello all,
    we have a database server with oracle 10g enterprise edition on RHEL 5.3 64-bit , we have created a procedure which pulls data from a remote server using a procedure. that procedure collect data in cursor ..both server are connected using RF connectivity..
    but after every 2 or 3 days i saw that data is not pulled and job is marked as broken .... and when i mark that job as unbroken and try to rexecute that procedure it hangs for long.....
    i don't understand whats going on....i have also seen large number of sessions in my database..is possible that huge number of session are consuming resources and that's why oracle is unable to execute the job??? i have check network also but it is fine...i can access that remote server using VNC or team viewer..so network is definitely not an issue...
    i also set SQLNET.EXPIRE_TIME=10 in sqlnet.ora file and also created a profile for idle_time to get rid of excess inactive sessions....what might be issue??? any suggestion is appreciable...
    thanks and regards
    VD

    hello sir,
    actually it is not about the job, i am sure that procedure is causing problem..... because when i try to execute that procedure , it also hangs, i check all requirements need to be checked..... i think lots of inactive sessions causing this issue, but even after adding sqlnet and profile i is not removing those sesions and hence i think that procedure is not executing....
    coz the database i am connecting is having already connections and doing lots of transactions...so i it possible that it might be an issue.??
    sometime i also got timeout error while connection to that remote server but it is not issue because at the same time i am connected to it from another machine..
    thanks and regards
    VD

  • Filters not working with Tomcat 5

    Hi,
    I've attempted to implement a filter in my JSP program. Below is the web.xml I'm using and the filter implementation.
    The problem is doFilter simply isn't being called. init is called because when I do an ant reload it print my error into the log but doPost never prints anything anywhere. Please help!!! I'm completely foxed.
    I thought it might be something to do with the FilterConfig as I don't understand how its set or called but as I don't understand, I don't know?
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
        <description>themoves.co.uk Content Management System</description>
        <display-name>themoves.co.uk CMS</display-name>
        <filter>
             <filter-name>authFilter</filter-name>
             <filter-class>uk.co.themoves.AuthenticationFilter</filter-class>
        </filter>
        <filter-mapper>
             <filter-name>authFilter</filter-name>
             <url-pattern>/Controller</url-pattern>
        </filter-mapper>
        <servlet>
            <servlet-name>Controller</servlet-name>
            <servlet-class>uk.co.themoves.Controller</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>Controller</servlet-name>
            <url-pattern>/Controller</url-pattern>
        </servlet-mapping>   
        <session-config>
            <session-timeout>15</session-timeout>
        </session-config>
        <welcome-file-list>
            <welcome-file>/WEB-INF/welcome.jsp</welcome-file>
        </welcome-file-list>
        <taglib>
          <taglib-uri>http://java.sun.com/jstl/fmt</taglib-uri>
          <taglib-location>/WEB-INF/fmt.tld</taglib-location>
        </taglib>
        <taglib>
          <taglib-uri>http://java.sun.com/jstl/fmt-rt</taglib-uri>
          <taglib-location>/WEB-INF/fmt-rt.tld</taglib-location>
        </taglib>
        <taglib>
          <taglib-uri>http://java.sun.com/jstl/core</taglib-uri>
          <taglib-location>/WEB-INF/c.tld</taglib-location>
        </taglib>
        <taglib>
          <taglib-uri>http://java.sun.com/jstl/core-rt</taglib-uri>
          <taglib-location>/WEB-INF/c-rt.tld</taglib-location>
        </taglib>
        <taglib>
          <taglib-uri>http://java.sun.com/jstl/sql</taglib-uri>
          <taglib-location>/WEB-INF/sql.tld</taglib-location>
        </taglib>
        <taglib>
          <taglib-uri>http://java.sun.com/jstl/sql-rt</taglib-uri>
          <taglib-location>/WEB-INF/sql-rt.tld</taglib-location>
        </taglib>
        <taglib>
          <taglib-uri>http://java.sun.com/jstl/x</taglib-uri>
          <taglib-location>/WEB-INF/x.tld</taglib-location>
        </taglib>
        <taglib>
          <taglib-uri>http://java.sun.com/jstl/x-rt</taglib-uri>
          <taglib-location>/WEB-INF/x-rt.tld</taglib-location>
        </taglib>
    </web-app>Filter implementation
    package uk.co.themoves;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.sql.*;
    import java.io.IOException;
    public class AuthenticationFilter implements Filter{
         private static final String LOGIN_PAGE = "/login.jsp";
         private FilterConfig config = null;
         private Connection db = null;
         public void init(FilterConfig _config) throws ServletException{
              System.err.println("init successful");
              this.config = _config;
              //do a database connection here
              if(db == null){
                   try{
                        Class.forName("org.gjt.mm.mysql.Driver");
                        this.db = DriverManager.getConnection("jdbc:mysql://localhost:3306/themoves", "cwaig", "UUyGiRPE");
                   } catch (Exception e){
                        System.out.println("error Connecting to themoves DB: " + e.toString());
         public void doFilter(ServletRequest _req, ServletResponse _res, FilterChain _chain) throws IOException, ServletException{
              System.err.println("doFilter");
              //cast the Servlet to a httpServlet
              HttpServletRequest httpReq = (HttpServletRequest) _req;
              HttpSession session = httpReq.getSession();
              String uid = httpReq.getParameter("uid");
              String password = httpReq.getParameter("pass");
              //if action is login then login else check
              String action = (String) httpReq.getParameter("action");
              if(action.equals("login")){
                   //check the username and password
                   UserManager userManager = new UserManager(this.db, uid, password);
                   if(userManager.auth()){
                        //set session variable and carry on
                        session.setAttribute("uid", uid);
                        _chain.doFilter(_req, _res);
                   } else {
                        //go back to the login page
                        RequestDispatcher rd = httpReq.getRequestDispatcher(LOGIN_PAGE);
                        rd.forward(_req, _res);
              } else {
                   //check the session to make sure they are logged in
                   String session_uid = (String) session.getAttribute("uid");
                   if(session_uid == null){
                        RequestDispatcher rd = httpReq.getRequestDispatcher(LOGIN_PAGE);
                        rd.forward(_req, _res);     
                   } else {
                        //set session variable and carry on
                        session.setAttribute("uid", uid);
                        _chain.doFilter(_req, _res);
         public void destroy(){
              this.config = null;
              //clean up the database connection here
    }

    First of all this is not correct:
    <filter-mapper>
             <filter-name>authFilter</filter-name>
             <url-pattern>/Controller</url-pattern>
    </filter-mapper>It is:
    <filter-mapping>
             <filter-name>authFilter</filter-name>
             <url-pattern>/Controller</url-pattern>
    </filter-mapping>
    Also note that with this mapping configured onlt Servlets/JSPs called using the URL <your_domain>/<your_context>/Controller will be called.
    Any other urls will not be subject to the filter.
    I don't know all there is to know about filters, but I would be concerned that maybe your connection object is not thread safe being defined in the scope that it is.

  • One Procedure is not running in the Package

    In my package i have
    Variable assignment - > Procedure -> Interface ( a loop )
    When i am running it , the Procedure is not executing.
    I do not know why .
    Can you help me in this.
    Thanks

    That's right. You need to specify the first step, that'll be fist to execute. Also you could run direct step (helpful for debugging).

  • Database migration query not executing in database

    We moved over our SQL database to another server. We have a few .cfm template files that have queries to get 'content' from our database. These queries in the .cfm template files work fine and execute properly. However, for some reason, since we moved over our database, the queries in the actual database don't execute/run anymore. In the old server we didn't have this problem. Our queries in the database would run properly then. The data would display correctly on the webpages.
    Is there some kind of properties setup that was overlooked when migrating over our database?
    The output we now see when viewing our pages is the actual query code.
    Example:
    SELECT lname
    FROM table
    This is actually displayed on the website and therefore the query is not executing/running. Our code was never changed. So why is it not outputting the same?
    Thanks for any help provided.

    Sorry for the confusion.
    The coldfusion templates and database queries both worked fine on the previous old server.
    Now since the migration onto the new server, only the coldfusion templates work fine, but not the queries in the database.
    So for example, a query in the coldfusion template will run fine, and execute the intial pull of data. But once the content is pulled from the database, the queries inside the database (including stored procedures) don't execute.
    We do get the expected results when we run our stored procedure in Management Studio and if we put the stored procedure on a standalone web page we do see the records. 
    We only see the sql code when we have the stored procedure inside of our w_content table of our database, and its being called by the first query in the template.  For some odd reason the stored procedure does not execute if it is inside the database.  
    Hopefully that clarifies our problem.
    Thank you for helping!

Maybe you are looking for

  • Why won't some music sync from iTunes to my iPhone 5?

    I have purchased several items from the iTunes store with no trouble syncing and playing on my iPhone 4. Recently I purchased two iPhone 5's for myself and my son. His phone is synced to my iTunes account and can play all content. My phone initially

  • Can you "lock" a flash drive so that it can't be written to - on XP too?

    Hello! I've got a 2 GB flash drive full of music, numbered and in playlist order, which I like to use with the school lab computers when I don't have my Powerbook or iPod with me. The lab computers run both Windows XP (mostly) and Mac OS X 10.4.X Tig

  • How to use a table to fill an array

    I have a cFP 2110 with a couple of relay modules I'm using to automate a process.  I'm  using an array of a cluster of elements to turn the relays on and off with a time delay for each step.  This was the first version I started with and I have since

  • Can't install client on one computer

    This is a new Lenovo ThinkPad with Windows 8.1 Professional. Our SCCM 2012R2 has successfully installed clients on hundreds of our computers. It doesn't work on this one. Also, manual installation fails. the push client installation always creates th

  • Not able to deploy HumanTask and Decision service using ant file

    Hi all, I am using ant file to complile and deploy a bpel process. Currently i am able to compile the bpel process and deploy it. But when it come to deploying humantask and decesion services I am getting a message. [deployDecisionServices] There are