Hello,
I have created a discovery rule that generates 2 macros as output for further item prototype-creating purpose. The discovery rule works correctly and item prototypes are creating items but I am having an error icon on the list with discovery rules saying:
Cannot create item: item with the same key "foo_bar_[{#MACRO_CODES_SEP}]" already exists.
Cannot create item: item with the same key "foo_bar_[{#MACRO_CODES_SEP}]" already exists.
Cannot create item: item with the same key "foo_bar_[{#MACRO_CODES_SEP}]" already exists.
Cannot create item: item with the same key "foo_bar_[{#MACRO_CODES_SEP}]" already exists.
Cannot create item: item with the same key "foo_bar_[{#MACRO_CODES_SEP}]" already exists.
Cannot create item: item with the same key "foo_bar_[{#MACRO_CODES_SEP}]" already exists.
Cannot create item: item with the same key "foo_bar_[{#MACRO_CODES_SEP}]" already exists.
Cannot create item: item with the same key "foo_bar_[{#MACRO_CODES_SEP}]" already exists.
Originally I created JSON that has for each [HASHTAG="t5"]macro[/HASHTAG] corresponding several #MACRO_CODES:
{"data":[{"{#MACRO}":"GROUP1","{#MACRO_CODES}":"666","{# MACRO_CODES}" :"777"},{"{#MACRO}":"GROUP2","{#MACRO_CODES}":" 666 ","{# MACRO_CODES}":"777"},{"{#MACRO}":"GROUP3","{#MACRO _CODES}":" 666","{#MACRO_CODES}":"777"},{"{#MACRO}":"GROUP4" , "{#MACRO_CODES}":"666","{#MACRO_CODES}":"777"}]}
It works very well for all combinations of prototypes except of using only MACRO_CODES as key/name:
foo_bar_[{#MACRO_CODES}]
Other combinations do not return error, ex.:
foo_bar_[{#MACRO}_{#MACRO_CODES}]
I did testing as well with creating additional object with seperated {#MACRO_CODES_SEP} but it still returns an error:
{"data":[{"{#MACRO}":"GROUP1","{#MACRO_CODES}":"666","{# MACRO_CODES}":"777"},{"{#MACRO}":"GROUP2","{#MACRO _CO DES}":"666","{#MACRO_CODES}":"777"},{"{#MACRO}":"G ROUP3","{#MACRO_CODES}":"666","{#MACRO_CODES}":"77 7"},{"{#MACRO}":"GROUP4","{#MACRO_CODES}":"666" ,"{ #MACRO_CODES}":"777"},{"{#MACRO_CODES_SEP}":"666", "{#MACRO_CODES_SEP}":"777"}]}
I have created a discovery rule that generates 2 macros as output for further item prototype-creating purpose. The discovery rule works correctly and item prototypes are creating items but I am having an error icon on the list with discovery rules saying:
Cannot create item: item with the same key "foo_bar_[{#MACRO_CODES_SEP}]" already exists.
Cannot create item: item with the same key "foo_bar_[{#MACRO_CODES_SEP}]" already exists.
Cannot create item: item with the same key "foo_bar_[{#MACRO_CODES_SEP}]" already exists.
Cannot create item: item with the same key "foo_bar_[{#MACRO_CODES_SEP}]" already exists.
Cannot create item: item with the same key "foo_bar_[{#MACRO_CODES_SEP}]" already exists.
Cannot create item: item with the same key "foo_bar_[{#MACRO_CODES_SEP}]" already exists.
Cannot create item: item with the same key "foo_bar_[{#MACRO_CODES_SEP}]" already exists.
Cannot create item: item with the same key "foo_bar_[{#MACRO_CODES_SEP}]" already exists.
Originally I created JSON that has for each [HASHTAG="t5"]macro[/HASHTAG] corresponding several #MACRO_CODES:
{"data":[{"{#MACRO}":"GROUP1","{#MACRO_CODES}":"666","{# MACRO_CODES}" :"777"},{"{#MACRO}":"GROUP2","{#MACRO_CODES}":" 666 ","{# MACRO_CODES}":"777"},{"{#MACRO}":"GROUP3","{#MACRO _CODES}":" 666","{#MACRO_CODES}":"777"},{"{#MACRO}":"GROUP4" , "{#MACRO_CODES}":"666","{#MACRO_CODES}":"777"}]}
It works very well for all combinations of prototypes except of using only MACRO_CODES as key/name:
foo_bar_[{#MACRO_CODES}]
Other combinations do not return error, ex.:
foo_bar_[{#MACRO}_{#MACRO_CODES}]
I did testing as well with creating additional object with seperated {#MACRO_CODES_SEP} but it still returns an error:
{"data":[{"{#MACRO}":"GROUP1","{#MACRO_CODES}":"666","{# MACRO_CODES}":"777"},{"{#MACRO}":"GROUP2","{#MACRO _CO DES}":"666","{#MACRO_CODES}":"777"},{"{#MACRO}":"G ROUP3","{#MACRO_CODES}":"666","{#MACRO_CODES}":"77 7"},{"{#MACRO}":"GROUP4","{#MACRO_CODES}":"666" ,"{ #MACRO_CODES}":"777"},{"{#MACRO_CODES_SEP}":"666", "{#MACRO_CODES_SEP}":"777"}]}
Comment