Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
CreateUser error
Geoff_Price
Here is my code:<%@ page import="com.opentext.api.*;" %><%try { LLSession llsession = null; llsession = new LLSession("namehere",2099, "livelink", "Admin",""); LLValue userAttr = ( new LLValue() ).setAssocNotSet(); LLValue userData = ( new LLValue() ).setAssocNotSet(); LLValue tempValue = ( new LLValue() ).setAssocNotSet(); LAPI_USERS users; users = new LAPI_USERS( llsession ); userData.setString( "hellow world <BR>" ); // set the user attributes userAttr.add( "FirstName", "Test" ); userAttr.add( "MiddleName", ""); userAttr.add( "LastName", "Account"); userAttr.add( "MailAddress", "Test.Account@test.com"); out.println("user attributes added
"); int retVal= users.CreateUser( "Testing","livelink", LAPI_USERS.PRIV_LOGIN | LAPI_USERS.PRIV_UAPI_SESSION | LAPI_USERS.PRIV_DAPI_SESSION | LAPI_USERS.PRIV_WAPI_SESSION | LAPI_USERS.PRIV_UAPI_ADMIN, userData, LAPI_USERS.GROUP, "DefaultGroup", userAttr, tempValue ); out.println("retVal = " + retVal + "
"); if (retVal == 0) { out.println( "\n User Created with -- userId:" + tempValue.toInteger()); out.println( "\n Output succeed -- CreateUser \n"); } else { out.println( "\n COULD NOT CREATE USER \n"); int ErrorNo = llsession.getStatus(); String StatusMessage = llsession.getStatusMessage(); String ErrMsg = llsession.getErrMsg(); String ApiError = llsession.getApiError(); out.println( "\n Output succeed -- retVal:" + retVal); out.println( "\n Output succeed -- ErrorNo:" + ErrorNo); out.println( "\n Output succeed -- StatusMessage:" + StatusMessage); out.println( "\n Output succeed -- ErrMsg:" + ErrMsg); out.println( "\n Output succeed -- ApiError:" + ApiError); }} catch(Throwable e) { out.println("error " + e.getMessage());}------This is the error i keep getting:error get(name) not implemented for this datatype I have looked at this for two days now with no success.
Find more posts tagged with
Comments
Carsten_Kulms
The code looks OK (and worked for me).Please check the LES server logs, it is very likely that an error occured during processing of the request.See e.g. and for some background information about "... not implemented for this datatype" error at LAPI client.