A simple example that reproduces the error goes a long way. I can't follow your description. Please include a description of your environment (OS, compiler, etc.) The error message suggests that you are using MPI. Are you using parallel HDF5? If so, how?
G. -----Original Message----- From: Hdf-forum [mailto:hdf-forum-boun...@lists.hdfgroup.org] On Behalf Of gmail Sent: Wednesday, January 10, 2018 7:09 PM To: hdf-forum@lists.hdfgroup.org Subject: [Hdf-forum] xml string attribute write error Greetings all, A colleague and I are getting an error when trying to write a string, which is fully formed xml snippet, as an attribute in a hdf5 file. Checks we have done: 1 - manually write the string and with .compare, this manual string matches exactly the string we have read from an xml buffer. 1a - the manual string can be written to an attribute 1b - the original string raises an error when we write 2 - we have used .copy to make a new copy of the string from the xml buffer 2a - this copy also fails to write with the same error 3 - we removed all new-line characters from the string - this did not help 4 - we tried the .substr method to chop the string to small pieces, this also did not help (all pieces failed to write) 5 - we tried the first 5 characters of the string, which do not have any special characters - still fails The fact that 1a succeeds means we are probably missing something simple. The error is HDF5-DIAG: Error detected in HDF5 (1.8.16) MPI-process 1: #000: H5A.c line 334 in H5Acreate_by_name(): no attribute name major: Invalid arguments to routine minor: Bad value I am hoping someone here has had and fixed the same problem, as we are very stuck. Thanks, Andre _______________________________________________ Hdf-forum is for HDF software users discussion. Hdf-forum@lists.hdfgroup.org http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5 _______________________________________________ Hdf-forum is for HDF software users discussion. Hdf-forum@lists.hdfgroup.org http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org Twitter: https://twitter.com/hdf5