a!dynamicLink( value: 1, saveInto: { a!writeToMultipleDataStoreEntities( valuesToStore: { a!entityData( entity: cons!ENTITY, data: { 'type!{urn:com:url}Entity'( ID: 5 ) } ) }, onSuccess: { a!save( local!step, 1 ) }, onError: { a!save( local!error, "An error has occured while saving. Please try again or email getHelp." ) } ) } )
We are trying to do a record link to save data into the database but we want to have some way to support the user if the save fails for some reason. When we are mocking the case where bad data is input, we are getting an error notice but it is not putting an entry in the server-logs. we figured that when it errors it would write into the server-logs but it is not. Anyone have any ideas on how we could do logging other than a generic error message showing to the user?
In the interface designer we are getting this error message before showing the error message on the usual interface but this is not showing in the server logs:
Interface Definition: Expression evaluation error: An error occurred while executing a smart service: An error occurred while trying to write to the data store [Transactional]. No values have been written. Details: not-null property references a null or transient value:Entity.typeID (APNX-1-4208-004) This error will not be displayed to the user viewing this form. Click here to dismiss the error message and see the resulting interface.
Thanks,
Seth
Code we are using:
a!dynamicLink( value: 1, saveInto: { a!writeToMultipleDataStoreEntities( valuesToStore: { a!entityData( entity: cons!ENTITY, data: { 'type!{urn:com:url}Entity'( ID: 5 ) } ) }, onSuccess: { a!save( local!step, 1 ) }, onError: { a!save( local!error, "An error has occured while saving. Please try again or email getITHelp." ) } ) } )
Discussion posts and replies are publicly visible