IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

TN profile creation using WM flow service

  • 1.  TN profile creation using WM flow service

    Posted Mon September 14, 2020 09:09 AM

    Hi,
    I’m getting the below error, while trying to create a TN profile using WMTN services,

    0003.4003
    Could not add partner profile for xxxx.

    java.lang.ClassCastException
    com.wm.data.ISMemDataImpl cannot be cast to com.wm.app.tn.profile.ID
    java.lang.ClassCastException: com.wm.data.ISMemDataImpl cannot be cast to com.wm.app.tn.profile.ID
    at com.wm.app.tn.profile.Validator.validateStandardProfile(Validator.java:197)

    Here are the steps followed for profile creation:

    pub.file:getFile (loading the file from back-end)
    wm.tn.profile.create:newExternalID (populated the value from my document)
    wm.tn.profile.create:newProfile
    wm.tn.profile:addProfile

    Could someone please provide a resolution for this error ?


    #webMethods
    #B2B-Integration
    #Flow-and-Java-services
    #Service-Designer
    #Integration-Server-and-ESB
    #webMethods-io-Integration


  • 2.  RE: TN profile creation using WM flow service

    Posted Mon September 14, 2020 10:41 AM

    Hi Venkatakrishnan,

    As per the error, there is some issue with the data you are passing to the TN services. Trace through the service and see what data is getting passed.

    Populating the value from your document is causing some issue here looks like
    The external ID should be of type - wm.tn.rec:ExternalID

    Refer to webMethods Trading Networks Built-In Services Reference for more details.

    Regards,
    Firoz N


    #webMethods
    #Integration-Server-and-ESB
    #webMethods-io-Integration
    #Flow-and-Java-services
    #Service-Designer
    #B2B-Integration


  • 3.  RE: TN profile creation using WM flow service

    Posted Mon September 21, 2020 07:06 AM

    Thanks Firoz for your reply.

    I’ve been following the mentioned in-built type ‘wm.tn.rec:ExternalID’ to populate the values. As per the reference guide,

    If you are adding the external ID to a new profile, leave the internal ID fields
    (InternalID and PartnerIDID empty. Trading Networks generates these internal IDs
    for you when you save the profile to the Trading Networks database.

    i have populated the values for the other three fields alone. But still i’m getting the same error as such.


    #webMethods
    #B2B-Integration
    #webMethods-io-Integration
    #Integration-Server-and-ESB
    #Flow-and-Java-services
    #Service-Designer