You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Create Account through C# resulting in Data Element is NULL

Accepted answer
edited Jun 8, 2022 12:01PM in General Technical Discussions 11 comments


I'm getting the dreaded data element is null error when attempting to create a new account in OSvC. This code worked on a previous version of OSvC, so I'm wondering if something has changed, but I can't seem to find out what. I'm checking the various required fields and they all SEEM good...can anyone see anything wrong below?

Code Snippet

    base: {WindowsFormsApplication1.RightnowService.Account}
    AccountHierarchy: null
    accountHierarchyField: null
    Attributes: {WindowsFormsApplication1.RightnowService.AccountOptions}
    attributesField: {WindowsFormsApplication1.RightnowService.AccountOptions}
    Country: null
    countryField: null
    CustomFields: null
    customFieldsField: null
    DisplayName: "US"
    displayNameField: "US"
    DisplayOrder: 0
    displayOrderField: 0
    displayOrderFieldSpecified: false
    DisplayOrderSpecified: false
    EmailNotification: null
    emailNotificationField: null

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!