Skip to main content

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
0 answers
24 views

Namespace files and filenames are not replaced with the namespace’s prefix using Cumulusci deploy command

I am trying to do Namespace Injectionion Cumulusci deploy command Getting below error Error: Could not process MDAPI response: Update of CustomField Financial__c.Budget__c: Error on line 1016, col 13: ...
Pronit Agrawal's user avatar
2 votes
1 answer
121 views

SOQL error on Same-Name Fields in 2nd-Generation Package

I have a 2nd-generation package that includes an Apex Class which is able to read from custom fields inside the org it's installed in. I have multiple packages using the same namespace, let's call it ...
Dylan Bowman's user avatar
0 votes
1 answer
37 views

Will Lightning Web Components get my managed package prefix?

I am wondering if lwc gets a managed package prefix. If the prefix is "ABC", will the component look like ABC__myComponent.js, etc. in VS Code or on an org or will it stay on the default ...
Kacper Walat's user avatar
1 vote
1 answer
64 views

Problem with namespace referencing in LWC in package deployment

We are trying to deploy our package, but a weird error is thrown: The thing is, in that LWC, we are in fact NOT adding the namespace when importing those fields: import PRODUCTO_FIELD from '@...
joacoiudica's user avatar
0 votes
0 answers
26 views

Expected name collision behavior between 2GP managed package and 2GP unlocked package with same namespace

I am trying to understand the expected behavior for the following scenario: Under the same dev hub, I have developed a pair of 2G packages. Both of them share the same namespace (myns): Package A: 2GP,...
jonathanrico's user avatar
1 vote
1 answer
78 views

Second Dev Org for 1st Gen Package Developement

Having recently joined an ISV with an old 1GP, I want to make some significant improvements to the code. (We are planning a new 2GP, but not just yet). Making major changes in our single Partner Dev ...
cyberspy's user avatar
  • 210
1 vote
1 answer
184 views

2GP managed package:version:create No such column xxx on entity

I get the following error when I try to create a 2GP version using SF CLI. No such column 'Mynamespace__Opportunity__c' on the 'Mynamespace__Contract__c' entity. If you're trying to use a custom field,...
Paco's user avatar
  • 21
0 votes
1 answer
58 views

Multiple unlocked packages with different namespace possible in one salesforce org?

Hello Salesforce Ohana, I am looking for suggestions/help if someone has implemented Unlocked packages with multiple namespace in single org as we have 3-4 applications in salesforce and we are trying ...
Sushil Dholani's user avatar
1 vote
1 answer
45 views

Modify/Alter Namespaced Unlocked Package data and metadata

What I am facing is that, I have an Unlocked Package without a namespace and I am able to alter/modify in that package, but in another package which is namespaced I am not being able to make any ...
Dheeraj Varyani's user avatar
0 votes
2 answers
165 views

2nd Generation package should be developed in which org?

I am quite confused with the 2nd generation package dev process. Based on the documentation here, https://developer.salesforce.com/docs/atlas.en-us.pkg2_dev.meta/pkg2_dev/sfdx_dev_dev2gp_before.htm I ...
Wayne Ni's user avatar
  • 609
1 vote
0 answers
105 views

Is there an easy way to get the namespace of an LWC component (without calling Apex)?

Use Case: I want to be able to debug even JS resources, but when the managed package is installed I want to use the minified/obfuscated version of the JS library. Basic idea: For the purpose, I am ...
Искрен Станиславов's user avatar
0 votes
1 answer
84 views

SOQL always append the managed package namespace to the custom field (Custom field API name colision)

On my managed package, I have a custom field: namespace__A__c The user also has a custom field A__c If I do the following SOQL (dynamic or not) SELECT Id, Name FROM Contact WHERE A__c != NULL it ...
SamuelCarreira's user avatar
0 votes
0 answers
51 views

How can I push code to a scratch org that belongs to an installed package?

I am working on an application that is built from several separate unlocked packages, managed through cumulusci. The packages all share the same namespace. When cumulusci creates a development org it ...
TemporaryFix's user avatar
  • 2,956
0 votes
0 answers
96 views

Namespace portable field references in LWC (Lightning Web Component) html markup

I've developed a Lightning Web Component (LWC) in a development org without a namespace but now must get it to work in a managed package I'm building which of course has a name space. I get out to do ...
Ken's user avatar
  • 488
1 vote
1 answer
85 views

Can we add/create a duplicate field with and without namespace prefix in a same object

I have seen this type of scenario in one of the org, where the same field is present with and without namespace-prefix I want to know if is it possible, if possible can you please mention how to ...
Durgesh Patidar's user avatar
2 votes
2 answers
362 views

Flow in Unlocked Package fails as Formula uses no namespace

I created a Namespaced Unlocked package out of that repo. https://github.com/rsoesemann/salesforce-isv-cockpit/blob/master/force-app/main/default/flows/NotifySlackOnError.flow-meta.xml It contains a ...
Robert Sösemann's user avatar
0 votes
0 answers
133 views

Create package version with namespace: Error to access custom field in FlexiPage

Hi I understand it don't need to add NAMESPACE in prefix when access <FIELD>, but I still have case like below. My package have relationship between 3 objects: Contact - Affiliations - Account. ...
vctqs1's user avatar
  • 105
0 votes
1 answer
313 views

Permission sets with namespace

It seems some permission sets permissions can not be edited at all (the Edit button is missing) It seems this is for permission sets with a namespace and these are installed as part of a managed ...
jani_r's user avatar
  • 123
0 votes
1 answer
164 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
0 votes
1 answer
187 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,956
2 votes
1 answer
493 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
399 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
351 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
585 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
  • 118
1 vote
1 answer
368 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
  • 17.4k
2 votes
0 answers
192 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
151 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
2k 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
109 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
1 vote
2 answers
2k 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
1k 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,545
1 vote
1 answer
384 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.3k
6 votes
1 answer
222 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,237
0 votes
1 answer
318 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
96 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
428 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,320
0 votes
2 answers
1k 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
172 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
425 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
520 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
  • 3,140
0 votes
0 answers
314 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
283 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
  • 469
5 votes
1 answer
172 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
737 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
167 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
2k 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,426
0 votes
2 answers
403 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
104 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
102 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