Symptom
You are trying to add a user on LMS using web services, however receives the message: "Currency ID cannot be null."
Environment
SuccessFactors Learning Management System - Web Services
Reproducing the Issue
- Create the payload similar to this:
- { "studentID": "userid", "firstName": "John", "lastName": "Smith", "studentPhones": [ { "phoneNumber": "111-123-4567", "phoneDescription": "cell" , "Currency ID" :"" } ] }
- Receives error "message": "Currency ID cannot be null."
Resolution
-
You should use the below format for the currency ID:
-
{ "studentID": "userid", "firstName": "John", "lastName": "Smith", "currencyID": "USD", "studentPhones": [ { "phoneNumber": "111-123-4567", "phoneDescription": "cell" ] }
- Note that in the first payload the CurrencyID was inside the studentphone list, not in the correct place. In addition, there was no data defined for currencyID.
See Also
2318897 - LMS Webservices Knowledge Support and Tips
2253249 - Error when running the Add/Update Rest Webservices - LMS
Keywords
Currency ID cannot be null, Web Service, API , KBA , LOD-SF-LMS , Learning Management System , LOD-SF-LMS-TLS , Web Services & Tools , Problem
Product
SAP SuccessFactors Learning all versions