Support Questions
Find answers, ask questions, and share your expertise

I am getting "{"error":"Null value not allowed for multiplicty {lower=1, upper=1, isUnique=false} " while adding row for new type ?


Hi Team,

I created new type in Atlas , It was reflected in Atlas UI also

While adding new record for that type i am getting below error

"{"error":"Null value not allowed for multiplicty {lower=1, upper=1, isUnique=false} "

I am using below curl command

curl -i -X POST -H 'Content-Type: application/json' -H 'Accept: application/json' -u admin:admin '' -d @Datsetload1.json ;

[{ "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Reference", "id": { "jsonClass": "org.apache.atlas.typesystem.json.InstanceSerialization$_Id", "version": 0.5, "typeName": "SQLDataset3" }, "typeName": "SQLDataset3", "values": { "Name": "EBIA_Test", "Desc": "Analytics", "dataSet": "datast_dtl_Test", "dataSetType": "Peas_rr.datast_dtl", "Location": "This is the main Target table", "Criteria": "Normal", "rules": "Joining" , "InputFiles": "Primary Key" }, "traitNames": [], "traits": {} }]

All are i declarerd as a String

Can you please help

Thanks in advance...!!!


Hi @Satya Nittala

I think normally the error you posted is followed by another message complaining about a value that is missing. Ex ;

{"error":"Null value not allowed for multiplicty {lower=1, upper=1, isUnique=false} . Message  Value expected for required attribute <XXXX>

Can you share how you created your type? That would help in reproducing your issue.

Otherwise, a good example of creating a type and then adding entities is shown here;


Thanks @Jonathan Sneep for quick response

I gave all fields which i declare in creation time

Now , I am getting below response form CURL command

Expires: Thu, 01 Jan 1970 00:00:00 GMT X-Frame-Options: DENY Content-Type: application/json; charset=UTF-8 Transfer-Encoding: chunked Server: Jetty(8.1.19.v20160209) {"error":"Unable to deserialize json"}

I am using Atlas 0.8 Version , this issue resolved in 0.7-incubating , But still i am getting same issue

Can you please help on this ?

Reference link :

Expert Contributor

@Satya Nittala

As error message says , "{"error":"Null value not allowed for multiplicty {lower=1, upper=1, isUnique=false} " , the attribute is created with upper = 1 , lower = 1 , meaning , maximum and minimum number of values the attribute can have is 1. Hence, when no value is provided , Atlas throws exception.

Can you please share the type definition ( JSON posted to create the type) and the entity defintion (JSON posted to create the entity) ?

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.