function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
nello_THnello_TH 

Uppercase package namespace issue

I have inadvertently created a package namespace that contains uppercase characters and I have come across an issue with the uppercase characters. The org seems to save the namespace with the uppercase characters. And when object or field level meta data is returned in apex using describe methods, the namespace is returned in the same case (i.e. with uppercase characters). But if it is then used in apex code for retrieval, for example:

 

Map<String, Schema.SObjectType> gd = Schema.getGlobalDescribe(); 
gd.get('MYNS__Document_Setting__c').getDescribe(); 

Nothing is returned unless the namespace is first converted to lowercase. 

This is an annoying issue, as developers will need to convert the namespace retrieved from describe methods before reusing it for retrieval.
Why does the SF UI allow uppercase characters to be accepted as a namespace if there is an issue with it? Surely this is a bug? I notice on the visualforce urls the namespace is converted to lowercase...

Is it possible for Salesforce to change the namespace in our org and covert it to lowercase?

 

Any information or shared experience on this would be much appreciated.

Thanks