Questions tagged [namespace]

Although namespaces are not available for use in Apex code, they are used by the system to segregate components which are part of managed packages.

Filter by
Sorted by
Tagged with
0 votes
1 answer
33 views

Deploy a new LWC to a namespaced scratch org which references Apex methods belonging to a package which shares the same namespace

Context We have an unlocked package with a namespace (call it XYZ) that contains public @AuraEnabled methods in a number of our Apex classes. When developers need to work on new features for the ...
AJW's user avatar
  • 3
-2 votes
0 answers
25 views

Custom metadata is not accessible in a batch class belonging to the same package if the API name is not appended with namespace

Please help me understand the nomenclature of the metadata created in the namespace enabled org IF the org is Namespace enabled org Metadata API name -- NBPS__Examplemetadata__mdt working sql query : ...
Sai Suresh's user avatar
0 votes
1 answer
37 views

Can I use an externally namespaced component in my namespace?

I want to experiment with nebula logger in my namespaced scratch org. After installing the package as a managed package and updating an LWC to use it, I get the error: No MODULE named Nebula:logger ...
TemporaryFix's user avatar
  • 2,867
0 votes
0 answers
104 views

FLOW_ELEMENT_ERROR Value of class java.lang.Boolean is not a ValueType: ANYTYPE FlowScreen Search_Params

I have a screen flow that, after some parameters to define on the first screen, makes a call to a controller that makes a callout to an external REST service and then returns the result to the flow. ...
Fabrice Fontenoy's user avatar
1 vote
1 answer
195 views

Moving a Namespace from one org to another

We have a first-generation managed package that was authored on a Partner Developer Edition org created by a subcontractor. We have other Developer Edition orgs we created. One is a Dev Hub and we ...
nstuyvesant's user avatar
0 votes
1 answer
151 views

How to expose stack trace from one managed package to another managed package

In my org I have managed package with namespace DeltaLKU which contains apex classes & components for the application that we are developing and I have installed another third party managed ...
AdityaHM's user avatar
  • 133
1 vote
1 answer
249 views

Why namespace can't be created in an org when devhub is enabled?

I am trying to understand the rationale behind this from a technical design perspective. why would creating namespace be limited in an org that's been marked as devhub? wouldn't the other way easier ...
Don's user avatar
  • 108
1 vote
1 answer
327 views

Why gack Id Error ID: 248606545-14096 (-1147209962) is displayed when I try to review the information for my managed package?

Why gack Id Error ID: 248606545-14096 (-1147209962) is displayed when I try to review the information for my managed package? I cannot view the details of my 1GMP because of this Gack Id.
Patlatus's user avatar
  • 15.8k
2 votes
0 answers
125 views

Packaging org removes Namespace prefix from element references of packaged Flows

We're developing a 1st generation managed package that includes Flows triggered by a Custom Object insertion. Previously we've been using Ant Migration Tool to deploy/retrieve metadata to our ...
sfr's user avatar
  • 21
0 votes
1 answer
99 views

Salesforce - Best way to pass namespace__ (e.g:Apttus__, svmax__ etc) to get('obj').getDescribe().fields.getMap(); method

We have a requirement to prefix namespace__ value object at below code. For e.g : For template, need to prefix Apttus__, so the object value will be Apttus_template . We have multiple managed packages ...
Hemant-2's user avatar
1 vote
0 answers
1k views

Trouble completing the Trailhead Challenge in Playground due to namespace prefix issue

I use Playgrounds for completing my Trailhead challenges, but now I keep running into an error. the common decision is to create a fresh Playground so that namespace prefix was disabled. the issue is ...
MiddleMemologist's user avatar
2 votes
1 answer
79 views

Custom MetaData creation using apex for a nameSpacedOrg

This Is the Error I am getting {"status":500,"body":{"message":"An internal server error has occurred\nError ID: 1020912311-169956 (-524102090)"},"headers&...
Pavan Sahil's user avatar
0 votes
2 answers
806 views

Call managed package apex class after retrieving namespace dynamically

So, I retrieved the namespace of the managed package since I know name of the class. But the question is how can I call the method of the managed apex class. Since the namespace returned is of type ...
samCoder's user avatar
1 vote
1 answer
841 views

Issue with Dependency Package Picklist Value Not Found

I was facing issue while creating managed Package. Where my managed package has dependecy with one more managed package called Financial Service Cloud. While Building Package it is failing because of ...
NITHESH K's user avatar
  • 2,515
1 vote
1 answer
223 views

Can we change the namespace case?

We are building a managed package and we have set a namespace for the package and the package is almost ready for security review. Our marketing department have come back to us to say that we need the ...
Prady's user avatar
  • 12.2k
6 votes
1 answer
190 views

In Apex, how do I reference a non-namespaced object that collides with a namespaced object from namespaced code? (TDTM with EDA and EASY applications)

Does anyone know how to reference a non-namespaced object from a namespaced context when the two names collide? I'm dealing with a codebase that uses both EDA and EASY, and EASY has an Application__c ...
k..'s user avatar
  • 1,167
0 votes
1 answer
199 views

Can a managed package access and render a Visualforce page from the default namespace or a different namespace? [duplicate]

A managed package implementing the PageReference's method getContentAsPDF implements a certain logic that allows the name of the page being called to be dynamic. Is it possible that this Apex code in ...
Renato Oliveira's user avatar
0 votes
1 answer
59 views

2gp, 2 dev hubs, 2 repositories, 1 namespace. Will there be ancestry issues?

I have a 2gp, namespaced package working great. My question is, if I want to experiment in a fork of my git repository, wipe out my sfdx-project.json file in the fork, link it to a NEW dev_hub in the ...
Thad's user avatar
  • 51
0 votes
1 answer
273 views

Is it possible to link a namespace frome a developer org to a developer hub

We currently have an unlocked package with a namespace linked to a developer edition hub since at the time we where not aware of the limitations. Since we have the limitation to only do 5 package ...
Thomas's user avatar
  • 2,294
0 votes
2 answers
744 views

How can I write Apex Classes that share the same name as Standard or Custom objects? Is this even recommended?

I'm working on a third-party API integration and whilst modeling the relationship between classes and objects, I hit a roadblock. I need to write Apex classes that have the same namespace as standard ...
Ricky Viejo's user avatar
0 votes
1 answer
132 views

Retrive source code from pkgOrg without namespace

I am trying to retrieve the source code using mdapi/source commands from a pkgOrg which has 1Gen Managed package. But, namespace is appending in the salesforce components. I have known that namespace ...
Vijaykumar's user avatar
1 vote
1 answer
308 views

Suscribe to LMS published from an LWC in other package namespace

In a Managed Package, am publishing a message using a Lightning Message Channel in a Lightning Web Component. I want to be able to suscribe to this Lightning Message Channel from a Lightning Web ...
Gabriel Serrano Salas's user avatar
3 votes
1 answer
402 views

2gp: Should components names be unique across all the packages of the same namespace?

Let's say that we have couple 2gp managed packages all sharing the same namespace. Should all components/classes/pages etc. have unique name across all the packages of the same namespace? Are there ...
wesaw's user avatar
  • 2,980
0 votes
0 answers
258 views

Cannot read URL parameter from LWC if 'c__' not added to the link

I have a salesforce tab that contains a search screen, now some external system is redirecting users to this page. When the external system redirects the user to the salesforce screen it appends a ...
adnan_aust's user avatar
2 votes
2 answers
235 views

How to get the local object from a string in the managed package?

Our managed package has a namespace, say DemoApp, and a custom object named Form__c, the client's org also has a custom object Form__c According to the doc here: https://developer.salesforce.com/docs/...
Adam's user avatar
  • 459
5 votes
1 answer
158 views

Fail to deploy Event + Flow from Dev to 1GP Packaging org

I try to deploy a custom Platform Event MyEvent__e and a Flow MyFlow referencing it as Resume event for a Pause Element. Both worked perfectly in my non-namespaced developer org but when deploying to ...
Shivankar Raina's user avatar
1 vote
1 answer
423 views

Managed Package on Sandbox : Namespace is not removed and the entire app just crashes

I've installed a managed package (released version) on a sandbox and it doesn't work because Namespaces are not removed on the Custom fields API name from Lightning component controllers : From my dev ...
Bryce's user avatar
  • 442
1 vote
0 answers
139 views

Best practice to avoid naming collisions - lwc app

I wonder what is known best practice to deal with name collisions for salesforce lwc applications. Do we need to prefix names of classes, components, etc. with abbreviations. Unlocked package with ...
Grzegorz Połuch's user avatar
1 vote
1 answer
1k views

ERROR running force:org:create: We don’t recognize this namespace: x. Did you register it in your Dev Hub org?

I am trying to create a Scratch Org with a Namespace using command: sfdx force:org:create -s -f config/project-scratch-def.json -a my-namespace -d 30 But I get this error: ERROR running force:org:...
Robs's user avatar
  • 9,027
0 votes
2 answers
270 views

Managed package Custom Label inconsistencies develop through scratch org

We are recently facing some issue related to custom label when we are creating managed package and installing in another org the custom label value is not populating . Below is the code sample : ...
Somnath's user avatar
  • 15
0 votes
1 answer
78 views

setFixedSearchResults not working?

I have a test method calling setFixedSearchResults with 5 ids, and then a method performing an SOSL search. I expect my search to return 5 records. In fact, it did in my previous scratch org, test ...
Emmanuel BRUNO's user avatar
0 votes
0 answers
35 views

REST callout to another org - unable to access custom field due to it ending with __c [duplicate]

I am making a callout from my org to the REST endpoint of another org in our business. This is using the standard query endpoint /services/data/v48.0/query?q=SELECT+Fields+FROM+Contact+WHERE+.... ...
SBB's user avatar
  • 173
0 votes
0 answers
80 views

Removing or restoring package name

In the first part id the tutorial bellow, created a package name for my account. Then i realized that probably all the components i already had would stop working, so i deleted that prefix, and ...
Luis Aguiar's user avatar
2 votes
1 answer
154 views

Do 2nd Generation Managed Package name space dev org's expire?

Say I'm developing a 2nd generation package (managed or unlocked) with a new namespace and I create a developer org and register the new namespace in it and link the namespace to my devhub. Do I need ...
muchavie's user avatar
  • 483
1 vote
1 answer
161 views

Unlink Namespace Dev Hub

Obviously you can link a namespace to a Dev Hub, but is it possible to unlink a namespace from a Dev Hub and link it to a new one?
Bryan Anderson's user avatar
1 vote
1 answer
232 views

Link Namespace window throwing an error

When I click the "Link Namespace" button, it pops up a new window and then give this error: Is the only way to resolve by contacting support?
Bryan Anderson's user avatar
1 vote
0 answers
2k views

Failing this.template.querySelector

I have a component and am trying to retrieve an element from the template using querySelector, as follows: const elt = this.template.querySelector('.thunder-ng'); But instead of returning the element,...
kamezaburo's user avatar
0 votes
1 answer
514 views

Prefix on fields & Objects - New Implementation

I have a new implementation where i want the fields and objects to have a prefix (e.g. ggtest_ ). However, this is neither a managed package nor a solution that is going to be as a partner. We also ...
Giorgos Galaios's user avatar
2 votes
1 answer
877 views

Considering for developing code for managed package

I have a question in managed package. Let say I am writing a SOQL query in Apex class as /* Apex */ [SELECT Id, custom1__c, custom2__c, custom3__c FROM CustomObject__c]; /* VF or Aura */ <input ...
SFDC's user avatar
  • 461
3 votes
1 answer
350 views

Visualforce Component wrapped in a Managed Package Visualforce Component throws the error: Unknown component c:mycomponent

I have a managed package installed in a subscriber org. The managed package contains a Visualforce Component that I want to use in subscriber org. My goal is to use a subscriber org VF component ...
Nick Cook's user avatar
  • 6,344
0 votes
1 answer
252 views

Attaching namespaces to mdapi object before deploying to a sandbox org?

I am currently deploying my Salesforce code to a qa sandbox environment with the mdapi (sfdx force:source:convert -> sfdx force:mdapi:deploy). However, we need the object and pages and etc when ...
Adam's user avatar
  • 3
8 votes
2 answers
4k views

Link Namespace error=invalid_client_id&error_description=client%20identifier%20invalid

Following occurred while executing this Build First Generation Managed Packages with Salesforce CLI - Setup your Dev Hub Playground Trailhead error=invalid_client_id&error_description=client%...
cropredy's user avatar
  • 69k
3 votes
1 answer
105 views

Problem with object layouts and custom global actions in package (2GP)

So I'm trying to install a new 2GP package that has an object with a custom global action as part of it's page layout. I'm running into problems and I'm wondering whether I've missed something or if ...
MikeO's user avatar
  • 91
1 vote
1 answer
620 views

Why did my lightning components stop showing up on my record pages in my scratch org after including my namespace?

I am using custom permissions to control when my lightning component appears on a given flexipage record page. The intent here is to make it easy for an admin to use a UI that I made to toggle ...
Robert Hyatt's user avatar
1 vote
0 answers
84 views

Second Generation Unlocked Packages without Namespace not including components

I'm trying to create a package version for an Unlocked Package with no namespace specified. I can verify this works when running force:package:list and force:package:version:list. I'm including some ...
Anthony Wheeler's user avatar
2 votes
1 answer
190 views

Adding a namespace to already released packages

We already have released one unlocked package in production for six months, without namespaces. We are considering developing new unlocked packages, and we were thinking about using namespaces and ...
Edmondo's user avatar
  • 1,692
1 vote
1 answer
2k views

How can I include translations in my managed package?

I want to include translations in my managed package so that all the text in my managed package matches the user's locale if I included a translation for that locale. What I have done so far: So far ...
Robert Hyatt's user avatar
2 votes
0 answers
192 views

SFDX Snapshot - Unsupported snapshot signup request fields: Namespace

How to create a scratch org from a snapshot with namespace? Any workaround or solution? Error { "status": 1, "name": "INVALID_INPUT", "message": "Unsupported snapshot signup request fields: ...
Pablo Fischer's user avatar
3 votes
1 answer
2k views

Cannot add component of type:CustomObject to another package because it is an installed component

I created a package and now I want to create a dependent package. Let's say the parent package has a custom object: namespace__Application__c In my child package, under the objects directory, I have: ...
Rai's user avatar
  • 316
3 votes
1 answer
750 views

@namespaceAccessible class's properties are not accessible from another package

I am trying to create two second-generation (2GP) packages with the same namespace but running into an issue where one of the packages is not able to access the properties of a class from the other ...
Vinod Rondla's user avatar