Trailing whitespace in data table key
Hello everyone,
I noticed some "strange" behavior while trying to add entries into a data table.
I have a large JSON that I am converting into an infotable to do the entry.
However it seems like the key value that is in my datashape contains some duplicates.
The JSON looks something like this:
{array:[{key: 'A'}, {key: 'A '}]}Now, as you might be able to see, the second object in the array has a key value with a trailing blank space.
To me, these two are not equal, however it seems like when using the AddDataTableEntries service, it sees this as a duplicate.
And also when trying to add rows manually using the data tables "mashup", I can also not add both 'A ' and 'A'.
I'm not sure if this is caused by something on the platform side seeing this as equal, or if it is something on the DB side, so I wanted to ask here to see if someone has had similar issues.
It seems like it doesn't just skip the duplicate either, instead it just stops the addition of entries all together.
For now I will either add another key or make sure the JSON doesn't contain any duplicates.
Thanks,
Jens

