Lately I completed T89597 and rolled out on Commons [[Module:Creator]] that mimics [[Template:Creator]] but can also fetch any field from Wikidata if needed. The module is used by 28k creator templates on 1.6M pages. The issue I have is that out of 28k creator templates 12 show "The ID entered is unknown to the system. Please use a valid entity ID" error without any additional explanation. According to T143970, the error message is due to bad q-code, but all of the pages have valid q-codes. Strangely most
My request is to provide more usable information when throwing this error, like which q-code is not valid and in which line was it called. I also would appreciate any hints of how to debug this issue, and what might cause it. See c:User:Jarekt/a for example of the error.
Affected q-codes are: Q2441898, Q558060, Q146691, Q313638, Q19675193, Q113775, Q1394, Q33391, Q559531, Q1988310, Q51088, Q1978510.