Hello,
I am migrating code from 100 to 200 and I am running into an issue trying to load layers from a ServiceFeatureTable. The credentials are stored using ArcGISEnvironment.authenticationManager.arcGISCredentialStore.add(cred)
The layers are then added to the map using map.addOperationalLayers
However, all they layers fail to load with the error: credentialCannotBeShared
Any pointers on what would cause this error?
Solved! Go to Solution.
Hi @RTC,
Sorry to hear that you are running into this issue. The error means the url of the credential is not matching with the layer url.
Can you please check the serverContext url of the credential and url of the ServiceFeatureTable and post it here?
Regards,
Nimesh
Hi @RTC,
Sorry to hear that you are running into this issue. The error means the url of the credential is not matching with the layer url.
Can you please check the serverContext url of the credential and url of the ServiceFeatureTable and post it here?
Regards,
Nimesh
Hi Nimesh,
OK, I will check the urls an see what I get. Would there be any reason why this is working in 100 but not 200?
Thanks!
Thanks for the tip, it lead me to the issue. Thanks!
Hi @RTC,
If you could provide examples of the v100 and v200 codes/URLs, I would be able to assist you in identifying why it was working in v100 and not in v200.
Regards,
Nimesh