CSV Services Error - Not able to update my Entity with CSV file

0
Hello To load configuration data at runtime into my entities using CSV file, I am using CSVServices Module. I followed below steps from Documentation: Downloaded CSV Services Module from appstore and called MF_StartCSVServices from After Startup MF. Called ImportCSVResourceData JA from a new MF and called this New MF from Navigation. Passed all the required details to the JA (Read the CSV file from Resources folder) When I tried to execute New Mf, I am getting below error. com.mendix.core.CoreRuntimeException: Failed to commit     at com.mendix.basis.component.CommitHandler.commit(CommitHandler.scala:151) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: Object id: 12103423998559025, validation errors: (member: ShortDescription, message: )     at com.mendix.basis.actionmanagement.ActionManagerBase.executeInTransactionSync(ActionManagerBase.java:123) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: Object id: 12103423998559025, validation errors: (member: ShortDescription, message: )     at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:156) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: Object id: 12103423998559025, validation errors: (member: ShortDescription, message: )     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36) Caused by: com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: Object id: 12103423998559025, validation errors: (member: ShortDescription, message: )     at com.mendix.basis.actionmanagement.ActionManagerBase.executeSync(ActionManagerBase.java:156) Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: Object id: 12103423998559025, validation errors: (member: ShortDescription, message: )     at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:36) Caused by: com.mendix.systemwideinterfaces.core.UserException: Object id: 12103423998559025, validation errors: (member: ShortDescription, message: ) Not sure what is wrong with my ‘ShortDescription’ column. It is just a normal string field with size 200. When I set the log levels as Trace, below error can be seen:( I have set key attribute, not sure what is meant by unfinished string:false from my console) Please let me know if I am missing something. Any suggestions would be greatly appreciated.  Many thanks in advance! Edit: I am still not successful in updating my Entity with the CSV data. Even though I remove Validation rules for the attributes, the problem is, empty records get created but with no data and I get following errors on the console: Failed to get primitive for attribute:  # Errors during import: 36 Attribute  cannot be set Done importing: {"lines_processed":5,"objects_created":4,"errors":["Attribute  cannot be set","Attribute 1 cannot be set for row 1","Attribute 2 cannot be set for row 1"……… Any help is greatly appreciated!!  
asked
1 answers
0

Have you set some validation on the ShortDescription like must be unique or can not be empty? Because the error seems clear to me. It throws a validation error because the ShortDescription string coming in does not validate against the rules set in your domain model.

Regards,

Ronald

 

answered