gatewayContext.getTagManager().read() error

In the gateway scope (Ignition 7.9.9), I try to read tags (with good qualities), but I have some tag provideur not found error ?

logger.info("read tagPaths={}",tagPaths);
qualifiedValues = this.gatewayContext.getTagManager().read(tagPaths);
logger.info("read qualifiedValues={}",qualifiedValues);
read tagPaths=[[[default]]TVG/ENE/CDJ01/50001/TS/MODE, [[default]]TVG/ENE/HRD02/60003/TS/MODE, [[default]]TVG/ENE/CRJ01/30001/TS/FERME, [[default]]TVG/ENE/CRD01/10002/TA/DEF_DDL, [[default]]TVG/ENE/CDK02/60003/TS/PRESENCE_U, [[default]]TVG/ENE/OND01/60002/TA/ALM_FIN_AUTONOMIE, [[default]]TVG/ENE/CDJ01/30001/TS/MODE, [[default]]TVG/ENE/BRD01/30001/TS/FERME, [[default]]TVG/ENE/HLD01/30001/TS/FERME, [[default]]TVG/ENE/CRQ01/20001/TS/INTERDICTION, [[default]]TVG/ENE/HRD01/30001/TA/DEF_DISC]
 read qualifiedValues=[[null, [CONFIG_ERROR] Tag provider '[default]' not found., Tue Dec 11 15:56:01 CET 2018], [null, [CONFIG_ERROR] Tag provider '[default]' not found., Tue Dec 11 15:56:01 CET 2018], [null, [CONFIG_ERROR] Tag provider '[default]' not found., Tue Dec 11 15:56:01 CET 2018], [null, [CONFIG_ERROR] Tag provider '[default]' not found., Tue Dec 11 15:56:01 CET 2018], [null, [CONFIG_ERROR] Tag provider '[default]' not found., Tue Dec 11 15:56:01 CET 2018], [null, [CONFIG_ERROR] Tag provider '[default]' not found., Tue Dec 11 15:56:01 CET 2018], [null, [CONFIG_ERROR] Tag provider '[default]' not found., Tue Dec 11 15:56:01 CET 2018], [null, [CONFIG_ERROR] Tag provider '[default]' not found., Tue Dec 11 15:56:01 CET 2018], [null, [CONFIG_ERROR] Tag provider '[default]' not found., Tue Dec 11 15:56:01 CET 2018], [null, [CONFIG_ERROR] Tag provider '[default]' not found., Tue Dec 11 15:56:01 CET 2018], [null, [CONFIG_ERROR] Tag provider '[default]' not found., Tue Dec 11 15:56:01 CET 2018]]

the function is gatewayContext.getTagManager().read(tagPaths) still works ???
or we have to use :

this.gatewayContext.getTagManager().getTagProvider("[default]").read(...)

Can we use a “system” user ?

qualifiedValues = this.gatewayContext.getTagManager().read(tagPaths,null,true); is Deprecated

Doesn’t work anymore…

It looks like you have extra square brackets around your tag provider name. The square brackets are delimiters in tagpath strings, not to be used when interacting with the API for providers.

1 Like

Thanks a lot @pturmel .
Provider names doesn’t need bracket.