Complex profiles are attributes (as you have already gathered).
Archicad refers to the attribute via the attribute index number (that you can only see in the Attribute Manager) and not by the name.
If the same profile has been created with the same name in different modules, it can possibly have different attribute numbers - which seems to be the case here.
So as you bring the modules into the main file it will appear that you have multiple profiles in the main file - same name but with a number in brackets at the end on the name (or they may have different names if they were saved with different names).
The module files will only contain the profiles they had in the first place.
In the main file you can delete the duplicate profiles in the Profile Manager - make sure you REPLACE them with the one you want to keep.
This way you should end up with one profile with the correct name and it will have a particular index number.
You can now export this attribute and then import it (via Attribute Manager) into the module files.
But you must import it and overwrite BY NAME so that the attribute number changes in the module file.
You need to do this for all of the module files - so they all have the same profile with the same name and most importantly the same attribute number.
Now when you add the module to your main files you will have just the one complex profile attribute.
The short story is if you create a complex profile in one module (or file) then you need to import/export it with the Attribute Manager to all of the other files you might need it in - rather than re-create it in each file.
If you copy and paste a placed complex profile from one file to another, the attribute numbers can change.
The same applies to all other attributes - lines, layers, fills, composites, etc.
You need to be careful to keep all of the attributes the same (index numbers) across all files that you intend to use as modules , merge or copy and paste between.
Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11