TN profile creation using WM flow service

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 ?

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

1 Like

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.