Stop googling SAP errors. Use our Free Essentials plan instead - no credit card needed. Start Now

Close

How To Fix WF_CONT059 - Specify a data type or an object type for the element


SAP Error Message - Details

  • Message type: E = Error

  • Message class: WF_CONT - Workflow Container, Definition Time and Runtime

  • Message number: 059

  • Message text: Specify a data type or an object type for the element

  • Show details Hide details


  • Self-Explanatory Message

    Since SAP believes that this specific error message is 'self-explanatory,' no more information has been given.The majority of messages in the SAP system have a message text, however this is frequently insufficient to comprehend or resolve the problem.

    To make things easier, more detailed information is frequently added to describe the issue, how to fix it, and the necessary steps or configuration modifications.

    Unfortunately, there isn't any extra information in this error notice.



    What else can you do?

    First, use our AnswerBot below to get a possible cause and solution (requires a premium subscription).

    Also, review the in-depth Common Questions & Answers listed below; you could discover a solution there or be able to connect with others who have faced similar challenges.

    You can also try searching the SAP support portal (support.sap.com) but you need a special user ID to access it. It is possible that an SAP support note exists that provides additional details about the mistake or even steps for fixing it.


Smart SAP Assistant

  • What is the cause and solution for SAP error message WF_CONT059 - Specify a data type or an object type for the element ?

    The SAP error message WF_CONT059: "Specify a data type or an object type for the element" typically occurs in the context of SAP Business Workflow when defining or modifying workflow container elements.


    Cause

    This error arises because a workflow container element has been created or referenced without specifying its data type or object type. Every container element in a workflow must have a clearly defined type so that the workflow engine knows what kind of data it will hold or process.

    Common scenarios causing this error:

    • When creating a new container element in the workflow builder, the data type or object type field is left blank.
    • When importing or copying workflows, container elements lose their type definitions.
    • When modifying container elements, the type is accidentally deleted or not maintained.
    • Using a container element in a step or method that expects a typed element, but the element is untyped.

    Solution

    To resolve the error:

    1. Open the Workflow Builder (transaction SWDD) for the workflow in question.

    2. Navigate to the Container tab.

    3. Locate the container element that triggers the error.

    4. Check the Data Type or Object Type field for that element.

    5. If it is empty, assign the correct data type or object type:

      • For simple data elements, specify the ABAP data type (e.g., CHAR10, I, SFLIGHT).
      • For object elements, specify the relevant business object type (e.g., BUS1001 for Purchase Order).
    6. Save and activate the workflow.

    7. Test the workflow again to confirm the error is resolved.


    Additional Information

    • Container Elements: These are variables or placeholders in workflows that hold data passed between steps or methods.

    • Data Type vs Object Type:

      • Data Type: Refers to ABAP dictionary types or elementary types.
      • Object Type: Refers to SAP Business Object Repository (BOR) objects.
    • Where to find types:

      • Use transaction SE11 to look up data types.
      • Use transaction SWO1 to look up business object types.
    • Best Practice: Always define container elements with explicit types to avoid runtime errors.

    • Related SAP Notes: Sometimes, SAP Notes provide patches or additional guidance if this error occurs due to system bugs or inconsistencies.


    Summary

    Aspect Description
    Error WF_CONT059: Specify a data type or object type for the element
    Cause Container element missing data type or object type
    Solution Assign the correct data type or object type in the workflow container
    Tools Workflow Builder (SWDD), Data Dictionary (SE11), BOR (SWO1)

    If you need help identifying the correct type, check the method or step where the container element is used, as it usually expects a specific type.

    • Do you have any question about this error?


      Upgrade now to chat with this error.


Instant HelpGet instant SAP help. Sign up for our Free Essentials Plan.


Related SAP Error Messages

Click the links below to see the following related messages:

Click on this link to search all SAP messages.


Rating
ERPlingo's SAP support assistant is amazing. Saves me countless hours trying to solve complex SAP issues myself. It's a real game changer!
Rate 1
Thomas Michael
SAP Consultant, Author & Speaker