Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

TMap duplicated keys

Hello, I think I have found bug concerning TMap and DataTable. According to TMap documentation, its keys are unique, but when using data tables I can insert multiple elements of the same key (debugger shows the same key inserted more than once as well). I am using an enumerated type as the key, and the TMap is declared as follows:

UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = Attributes)

TMap<EAttribute, FAttributeStatImpact> AttributeStatImpact;

I wanted to use the TMap because of its functionality(unique keys) instead of TArray, even despite of the annoying problem when adding elements (cannot add a new element if there is an element with default key), but I guess that ship has sailed.

Version of the Unreal Engine: 4.17.2-3658906+++UE4+Release-4.17

Screenshot of the bug can be found below:alt text The bug can be reproduced simply by changing the keys of elements, but in case I am adding a video of the reproduction steps.

Product Version: UE 4.17
ue4-datatable.png (22.9 kB)
more ▼

asked Mar 05 '18 at 11:48 PM in Bug Reports

avatar image

57 1 4 6

avatar image Mahoukyou Mar 06 '18 at 12:22 AM

By restarting editor, the duplicated keys are removed, but can be added again and stay there until next editor restart.

avatar image Jeff A ♦♦ STAFF Mar 06 '18 at 04:09 PM


We've recently made a switch to a new bug reporting method using a more structured form. Please visit the link below for more details and report the issue using the new Bug Submission Form. Feel free to continue to use this thread for community discussion around the issue.



avatar image Mahoukyou Mar 06 '18 at 04:55 PM

Hello, Thanks for the response, I will report the issue using the new submission form as soon as I can. Cheers.

avatar image Mahoukyou Mar 07 '18 at 10:51 PM

The issue was reported and accepted, it can be found here UE-55886 if anyone wants to check the status in the future.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

0 answers: sort voted first
Be the first one to answer this question
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question