Error Condition on rest service - Forum - OpenEdge Development - Progress Community
 Forum

Error Condition on rest service

This question is answered

windows 10.

OE 11.7

I was testing PASOE, but found that following procedure throws an error:

@openapi.openedge.export FILE(type="REST", executionMode="single-run", useReturnValue="false", writeDataSetBeforeImage="false").

/*------------------------------------------------------------------------
    File        : veh01001.p
    Purpose     : 

     Author(s)   : 
    Created     : Wed Jun 07 09:32:12 CDT 2017
    Notes       :
  ----------------------------------------------------------------------*/

/* ***************************  Definitions  ************************** */

BLOCK-LEVEL ON ERROR UNDO, THROW.

DEFINE TEMP-TABLE ttVehiculo LIKE Vehiculo.

/* **********************  Internal Procedures  *********************** */

@openapi.openedge.export(type="REST", useReturnValue="false", writeDataSetBeforeImage="false").
PROCEDURE leeVehiculos:
/*------------------------------------------------------------------------------
 Purpose:
 Notes:
------------------------------------------------------------------------------*/
    DEFINE OUTPUT PARAMETER TABLE FOR ttVehiculo.
    
    EMPTY TEMP-TABLE ttVehiculo.
    FOR EACH Vehiculo NO-LOCK:
        CREATE ttVehiculo.
        BUFFER-COPY Vehiculo TO ttVehiculo.
    END.
END PROCEDURE.

This is the error on the browser:

{"_errors":[{"_errorMsg":"ERROR condition: veh01001.p  Single-run main-block procedure ended with an ERROR condition. (8025) (7211)","_errorNum":8025}]}

And this is the definition of resource:

Any clue?

Thanks

Verified Answer
  • Have you checked the serverlog?
     
    //Geir Otto
     
    Fra: OctavioOlguin [mailto:bounce-OctavioOlguin@community.progress.com]
    Sendt: onsdag 7. juni 2017 17.05
    Til: TU.OE.Development@community.progress.com
    Emne: [Technical Users - OE Development] Error Condition on rest service
     
    Update from Progress Community
     

    windows 10.

    OE 11.7

    I was testing PASOE, but found that following procedure throws an error:

    @openapi.openedge.export FILE(type="REST", executionMode="single-run", useReturnValue="false", writeDataSetBeforeImage="false").
     
    /*------------------------------------------------------------------------
        File        : veh01001.p
        Purpose     : 
     
         Author(s)   : 
        Created     : Wed Jun 07 09:32:12 CDT 2017
        Notes       :
      ----------------------------------------------------------------------*/
     
    /* ***************************  Definitions  ************************** */
     
    BLOCK-LEVEL ON ERROR UNDO, THROW.
     
    DEFINE TEMP-TABLE ttVehiculo LIKE Vehiculo.
     
    /* **********************  Internal Procedures  *********************** */
     
    @openapi.openedge.export(type="REST", useReturnValue="false", writeDataSetBeforeImage="false").
    PROCEDURE leeVehiculos:
    /*------------------------------------------------------------------------------
     Purpose:
     Notes:
    ------------------------------------------------------------------------------*/
        DEFINE OUTPUT PARAMETER TABLE FOR ttVehiculo.
        
        EMPTY TEMP-TABLE ttVehiculo.
        FOR EACH Vehiculo NO-LOCK:
            CREATE ttVehiculo.
            BUFFER-COPY Vehiculo TO ttVehiculo.
        END.
    END PROCEDURE.

    This is the error on the browser:

    {"_errors":[{"_errorMsg":"ERROR condition: veh01001.p  Single-run main-block procedure ended with an ERROR condition. (8025) (7211)","_errorNum":8025}]}

    And this is the definition of resource:

    Any clue?

    Thanks

    View online

     

    You received this notification because you subscribed to the forum.  To stop receiving updates from only this thread, go here.

    Flag this post as spam/abuse.

     
All Replies
  • Have you checked the serverlog?
     
    //Geir Otto
     
    Fra: OctavioOlguin [mailto:bounce-OctavioOlguin@community.progress.com]
    Sendt: onsdag 7. juni 2017 17.05
    Til: TU.OE.Development@community.progress.com
    Emne: [Technical Users - OE Development] Error Condition on rest service
     
    Update from Progress Community
     

    windows 10.

    OE 11.7

    I was testing PASOE, but found that following procedure throws an error:

    @openapi.openedge.export FILE(type="REST", executionMode="single-run", useReturnValue="false", writeDataSetBeforeImage="false").
     
    /*------------------------------------------------------------------------
        File        : veh01001.p
        Purpose     : 
     
         Author(s)   : 
        Created     : Wed Jun 07 09:32:12 CDT 2017
        Notes       :
      ----------------------------------------------------------------------*/
     
    /* ***************************  Definitions  ************************** */
     
    BLOCK-LEVEL ON ERROR UNDO, THROW.
     
    DEFINE TEMP-TABLE ttVehiculo LIKE Vehiculo.
     
    /* **********************  Internal Procedures  *********************** */
     
    @openapi.openedge.export(type="REST", useReturnValue="false", writeDataSetBeforeImage="false").
    PROCEDURE leeVehiculos:
    /*------------------------------------------------------------------------------
     Purpose:
     Notes:
    ------------------------------------------------------------------------------*/
        DEFINE OUTPUT PARAMETER TABLE FOR ttVehiculo.
        
        EMPTY TEMP-TABLE ttVehiculo.
        FOR EACH Vehiculo NO-LOCK:
            CREATE ttVehiculo.
            BUFFER-COPY Vehiculo TO ttVehiculo.
        END.
    END PROCEDURE.

    This is the error on the browser:

    {"_errors":[{"_errorMsg":"ERROR condition: veh01001.p  Single-run main-block procedure ended with an ERROR condition. (8025) (7211)","_errorNum":8025}]}

    And this is the definition of resource:

    Any clue?

    Thanks

    View online

     

    You received this notification because you subscribed to the forum.  To stop receiving updates from only this thread, go here.

    Flag this post as spam/abuse.

     
  • Thanks Geir

    There was it!!!

    A no database connected!!!

    Sorry. Novice error