We are pretty new to Corteza. We have two copies of Corteza deployed, one in dev and one in staging. We have added several fields and modules to the CRM namespace in dev and added some branding/styling. We would like to copy all of these changes from dev to staging. I used the instructions here to export the namespace from dev.
I tried importing this namespace into staging as CRM2 but got an error: Namespace failed to import: not unique.
I then deleted the CRM namespace from staging and tried reimporting using different names but the import always fails with this error.
Can anyone point me to a solution?
When importing, you should have the option to specify both the name and the handle – did you change both?
As a side note, the namespace export/import may not be the most appropriate way to manage site promotion.
We generally do this via DB dumps as we currently don’t have a proper built-in solution
Also, what version are you on? I just tried it on a fresh 2023.9
and it worked just fine.
Hello tjerman,
Thank you for the quick response. I have verified that the source and destination are both Corteza 2023.9.2.
I am guessing my issue is specific to changes that we have made to the CRM module. We have added several additional fields, etc.
I would be glad to send you the .zip exported from the source copy of Corteza, but I am new to the forum, and don’t have upload privileges yet.
Thanks again.
-Todd
I have related question so posting here. Not sure how to create a new question without creating a new Category.
Exported a Namespace from Corteza Cloud and tried to import it in locally installed Corteza.
Got this error:
issue with file upload: “namespace reference must be scalar (2.5)”
What does it mean? (“must be scalar”)
That’s a good question.
Could you screenshot your namespace edit screen (where you punch in namespace name and handle)?
I’ve encountered “Namespace failed to import: not unique” when trying to import a namespace that has EN locale information (from some partial localization). Taking it out of the yaml file and re-zipping allowed me to successfully import my namespace.
Hmm sounds like an easter egg… would you mind opening a GitHub issue?
I don’t know if you submitted the issue, but I’m having the same issue. Both instances run 2023.9.9. After deleting the locale section, it imported no problem.
Here’s the locale section I deleted:
locale:
en:
compose:page/epot/mandant_mieter:
title: Mieter
compose:page-layout/epot/ansicht_mandant/primary:
meta.title: Ăśbersicht
compose:module-field/epot/epot/userMieter:
label: Nutzer Mieter
compose:module-field/epot/gebaeude/userMieter:
label: Nutzer Mieter
compose:module/epot/zaehlerstand:
name: 'Zählerstand '
compose:page-layout/epot/413197356718030849/primary:
meta.title: Record page for module "abcd"
compose:page-layout/epot/413197379882123265/primary:
meta.title: Record page for module "Zähler"
compose:page-layout/epot/mandant_rfid/primary:
meta.title: RFID
compose:module-field/epot/epot/installationID:
label: abcd ID
compose:module-field/epot/gebaeude/userMandant:
label: Nutzer Mandant
compose:module-field/epot/wallbox/rfid:
label: RFID
compose:page-layout/epot/413197356718686209/primary:
meta.title: Record page for module "Gebäude"
compose:page-layout/epot/mandant_gebaude/primary:
meta.title: Gebäude
compose:module/epot/adresse:
name: Adresse
compose:module-field/epot/mieter/vorname:
label: Vorname
compose:module-field/epot/zaehler/gebaeude:
label: Gebäude
compose:module/epot/epot:
name: abcd
compose:module-field/epot/mieter/firma:
label: Firma
compose:module-field/epot/zaehler/displayName:
label: Anzeigename
compose:page/epot/413197379878846465:
title: Record page for module "Mieter"
compose:page/epot/413197379879501825:
title: Record page for module "potties"
compose:page/epot/mandant_rfid:
title: RFID
compose:module-field/epot/ladung/userMieter:
label: Nutzer Mieter
compose:module-field/epot/mieter/gebaeude:
label: Gebäude
compose:module-field/epot/wartung/wartungsende:
label: Wartungsende
compose:page/epot/mandant_ladungen:
title: Ladungen
compose:page-layout/epot/413197356717375489/primary:
meta.title: Record page for module "Adressen"
compose:page-layout/epot/413197379878846465/primary:
meta.title: Record page for module "Mieter"
compose:page-layout/epot/mandant_zaehlerstand/primary:
meta.title: Zählerstand
compose:module-field/epot/adresse/firma:
label: Firma
compose:module-field/epot/ladeinfrastruktur/wallboxen:
label: Wallboxen
compose:page/epot/413197379876225025:
title: Record page for module "Gebäude"
compose:page-layout/epot/413197356676546561/413337581786365953:
meta.title: Copy of Admin Panel
compose:module-field/epot/mieter/mandant:
label: Mandant
compose:page/epot/413197379875569665:
title: Record page for module "abcd"
pageBlock.2.title: potties
pageBlock.3.button.0.label: eAP Bericht Erstellen
compose:page/epot/mandant-epot:
title: abcd
compose:page/epot/413197379878191105:
title: Record page for module "Mandanten"
compose:page-layout/epot/413197356719996929/primary:
meta.title: Record page for module "Ladungen"
compose:page-layout/epot/413197356726616065/primary:
meta.title: Record page for module "Zähler"
compose:page-layout/epot/413197379876880385/primary:
meta.title: Record page for module "Ladeinfrastruktur"
compose:module-field/epot/gebaeude/anschrift:
label: Anschrift
compose:module-field/epot/mieter/telefon:
label: Telefon
compose:module/epot/wartung:
name: Wartung
compose:module-field/epot/adresse/ansprechpartner:
label: Ansprechpartner
compose:module-field/epot/epot/gebaeude:
label: Gebäude
compose:module-field/epot/pottie/pottieName:
label: pottie Name
compose:module-field/epot/zaehler/pottie:
label: pottie
compose:module-field/epot/zaehler/reportRelevant:
label: Im Report Aufnehmen
compose:page/epot/mandant_pottie:
title: pottie
compose:page-layout/epot/413197356676546561/primary:
meta.title: Admin Panel
compose:page-layout/epot/413197356722618369/primary:
meta.title: Record page for module "RFID"
compose:module-field/epot/epot/epotName:
label: abcd Name
compose:module-field/epot/mandant/anrede:
meta.options.divers.text: Divers
label: Anrede
meta.options.herr.text: Herr
meta.options.frau.text: Frau
compose:module-field/epot/wartung/epot:
label: abcd
compose:page-layout/epot/mandant_mieter/primary:
meta.title: Mieter
compose:module-field/epot/mandant/rechnungsadresse:
label: Rechnungsadresse
compose:module-field/epot/zaehler/letzterBericht:
label: Letzter Bericht
compose:page-layout/epot/413197356725305345/primary:
meta.title: Record page for module "Wallboxen"
compose:page-layout/epot/413197379875569665/primary:
meta.title: Record page for module "abcd"
compose:module-field/epot/adresse/strasse:
label: StraĂźe
compose:module-field/epot/adresse/hausnummer:
label: Hausnummer
compose:module-field/epot/ladung/startzeit:
label: Startzeit
compose:page/epot/413197379877535745:
title: Record page for module "Ladungen"
compose:module-field/epot/epot/support:
label: Support
compose:module/epot/gebaeude:
name: Gebäude
compose:module-field/epot/gebaeude/mandanten:
label: Mandanten
compose:module-field/epot/zaehlerstand/userMieter:
label: Nutzer Mieter
compose:page/epot/413197379880812545:
title: Record page for module "Wallboxen"
compose:page/epot/413197379881467905:
title: Record page for module "Wartung"
compose:page/epot/mandant_zaehler:
title: Zähler
compose:module-field/epot/epot/mandant:
label: Mandant
compose:module/epot/ladeinfrastruktur:
name: Ladeinfrastruktur
compose:module-field/epot/ladeinfrastruktur/userMieter:
label: Nutzer Mieter
compose:page/epot/413197379882123265:
title: Record page for module "Zähler"
pageBlock.3.title: Bericht herunterladen
pageBlock.3.button.0.label: Zählerdaten Herunterladen
pageBlock.3.button.1.label: EAP Zählerdaten Herunterladen
compose:page-layout/epot/413197356721307649/primary:
meta.title: Record page for module "Mieter"
compose:module-field/epot/ladung/zaehlerstandEnde:
label: Zähler Ende
compose:module-field/epot/ladung/rfid:
label: RFID
compose:module/epot/mandant:
name: Mandant
compose:module-field/epot/mieter/userMieter:
label: Nutzer Mieter
compose:module-field/epot/rfid/rfidNummer:
label: RFID Nummer
compose:module-field/epot/mandant/firma:
label: Firma
compose:module-field/epot/mandant/userMandant:
label: Nutzer Mandant
compose:module-field/epot/mieter/email:
label: E-Mail
compose:page-layout/epot/413197379879501825/primary:
meta.title: Record page for module "potties"
compose:page-layout/epot/413197356676546561/413337581779091457:
meta.title: Copy of Admin Panel
compose:page-layout/epot/mandant_zaehler/primary:
meta.title: Zähler
compose:module-field/epot/ladeinfrastruktur/userMandant:
label: Nutzer Mandant
compose:module-field/epot/ladung/ladung:
label: Ladung
compose:page/epot/mandant_zaehlerstand:
title: Zählerstand
compose:module-field/epot/zaehler/userMieter:
label: Nutzer Mieter
compose:module-field/epot/zaehlerstand/zeitstempel:
label: Zeitstempel
compose:module-field/epot/zaehlerstand/uom:
label: MaĂźeinheit
compose:page-layout/epot/413197356725960705/primary:
meta.title: Record page for module "Wartung"
compose:page-layout/epot/413197379881467905/primary:
meta.title: Record page for module "Wartung"
compose:module-field/epot/epot/userMandant:
label: Nutzer Mandant
compose:module-field/epot/mandant/lieferadresse:
label: Lieferadresse
compose:module-field/epot/zaehler/epot:
label: abcd
compose:module-field/epot/ladung/wallbox:
label: Wallbox
compose:module-field/epot/mandant/email:
label: E-Mail
compose:module-field/epot/wallbox/userMandant:
label: Nutzer Mandant
compose:module-field/epot/wartung/mandant:
label: Mandant
compose:module-field/epot/zaehlerstand/zaehlerstand:
label: Zählerstand
compose:module-field/epot/zaehlerstand/zaehler:
label: Zähler
compose:page/epot/mandant_wallbox:
title: Wallbox
compose:page-layout/epot/413197356727271425/primary:
meta.title: Record page for module "Zählerstand "
compose:module-field/epot/adresse/userMieter:
label: Nutzer Mieter
compose:module-field/epot/gebaeude/displayName:
label: Anzeigename
compose:module-field/epot/wallbox/name:
label: Name
compose:page-layout/epot/413197379880157185/primary:
meta.title: Record page for module "RFID"
compose:page-layout/epot/413197379874914305/primary:
meta.title: Record page for module "Adressen"
compose:module-field/epot/mandant/gebaeude:
label: Gebäuede
compose:module-field/epot/zaehler/reportWasserverbraucher:
label: Wasserverbraucher
compose:page/epot/413197379880157185:
title: Record page for module "RFID"
compose:module-field/epot/adresse/ort:
label: Ort
compose:module-field/epot/zaehlerstand/userMandant:
label: Nutzer Mandant
compose:page-layout/epot/413197356719341569/primary:
meta.title: Record page for module "Ladeinfrastruktur"
compose:chart/epot/mandant-uebersicht-laden:
metrics.420315058891915265.label: Jahresbilanz pro RFID
compose:module-field/epot/pottie/geraetetyp:
label: Gerätetyp
compose:page/epot/413197356676546561:
pageBlock.10.title: Wartung
title: Admin Panel
pageBlock.5.title: Mandant
pageBlock.13.title: Ladeinfrastruktur
pageBlock.2.title: Adresse
pageBlock.6.title: Mieter
pageBlock.11.title: Zähler
pageBlock.12.title: Zählerstand
pageBlock.14.title: Ladung
pageBlock.12.button.0.label: Bericht herunterladen
pageBlock.3.title: abcd
pageBlock.4.title: Gebäude
pageBlock.7.title: pottie
pageBlock.8.title: RFID
pageBlock.9.title: Wallbox
compose:page-layout/epot/413197379877535745/primary:
meta.title: Record page for module "Ladungen"
compose:module-field/epot/mieter/anrede:
label: Anrede
meta.options.herr.text: Herr
meta.options.frau.text: Frau
meta.options.divers.text: Divers
compose:module-field/epot/pottie/epot:
label: abcd
compose:page/epot/413197379874914305:
title: Record page for module "Adressen"
compose:module-field/epot/adresse/userMandant:
label: Nutzer Mandant
compose:module-field/epot/epot/letzterBericht:
label: Letzter Bericht
meta.description.view: 'Hier wird der zuletzt generierter Bericht fĂĽr diesen abcd verfĂĽgbar. '
meta.hint.view: Nach der Generierung kann er herunterladen werden. Nach erneuter Generierung, wird der bestehende Bericht ĂĽberschrieben.
compose:module/epot/mieter:
name: Mieter
compose:module-field/epot/mandant/nachname:
label: Nachname
compose:module-field/epot/zaehler/zaehlername:
label: Zählername
compose:module-field/epot/zaehler/reportStromerzeuger:
label: Stromerzeuger
compose:page-layout/epot/mandant_ladungen/primary:
meta.title: Ladungen
compose:module-field/epot/ladeinfrastruktur/gebaeude:
label: Gebäude
compose:module/epot/ladung:
name: Ladung
compose:module-field/epot/ladung/zaehlerstandAnfang:
label: Zähler Start
compose:module-field/epot/zaehler/reportWaermeverbraucher:
label: Wärmeverbraucher
compose:module-field/epot/gebaeude/gebaeudetyp:
meta.options.sonstiges.text: sonstiges
meta.options.wug-haus.text: Wohn- u. Geschäftshaus
label: Gebäudetyp
meta.options.einfamilienhaus.text: Einfamilienhaus
meta.options.mehrfamilienhaus.text: Mehrfamilienhaus
meta.options.doppelhaushälfte.text: Doppelhaushälfte
meta.options.gewerbe.text: Gewerbe
compose:module-field/epot/mandant/vorname:
label: Vorname
compose:module-field/epot/wartung/userMandant:
label: Nutzer Mandant
compose:module/epot/pottie:
name: pottie
compose:module-field/epot/rfid/userMandant:
label: Nutzer Mandant
compose:module-field/epot/wallbox/userMieter:
label: Nutzer Mieter
compose:module-field/epot/wartung/wartungsbeginn:
label: Wartungsbeginn
compose:module-field/epot/zaehler/userMandant:
label: Nutzer Mandant
compose:module-field/epot/adresse/plz:
label: Postleitzahl
compose:module-field/epot/adresse/bundesland:
meta.options.MV.text: Mecklenburg-Vorpommern
meta.options.NI.text: Niedersachsen
meta.options.SN.text: Sachsen
meta.options.BW.text: Baden-WĂĽrttemberg
meta.options.BY.text: Bayern
meta.options.BB.text: Brandenburg
meta.options.HE.text: Hessen
meta.options.SL.text: Saarland
meta.options.ST.text: Sachsen-Anhalt
meta.options.HH.text: Hamburg
meta.options.NW.text: Nordrhein-Westfalen
meta.options.SH.text: Schleswig-Holstein
meta.options.RP.text: Rheinland-Pfalz
meta.options.TH.text: ThĂĽringen
label: Bundesland
meta.options.BE.text: Berlin
meta.options.HB.text: Bremen
compose:module-field/epot/mieter/nachname:
label: Nachname
compose:page-layout/epot/413197379876225025/primary:
meta.title: Record page for module "Gebäude"
compose:page-layout/epot/mandant_wallbox/primary:
meta.title: Wallbox
compose:page-layout/epot/mandant_pottie/primary:
meta.title: pottie
compose:module-field/epot/ladung/userMandant:
label: Nutzer Mandant
compose:module-field/epot/wallbox/pottie:
label: pottie
compose:module-field/epot/zaehler/zaehlernummer:
label: Zählernummer
compose:module-field/epot/zaehler/reportStromverbraucher:
label: Stromverbraucher
compose:page-layout/epot/413197379882778625/primary:
meta.title: Record page for module "Zählerstand "
compose:page-layout/epot/418376174977155073/primary:
meta.title: Dashboard
compose:chart/epot/lastChargingSessions:
metrics.416719260396552193.label: ladung
yAxis.label: Geladen pro Tag
compose:module-field/epot/adresse/land:
label: Land
compose:module-field/epot/pottie/userMandant:
label: Nutzer Mandant
compose:module/epot/rfid:
name: RFID
compose:module/epot/wallbox:
name: Wallbox
compose:module-field/epot/wallbox/epot:
label: abcd
compose:page/epot/413197379882778625:
title: Record page for module "Zählerstand "
pageBlock.2.title: 'Zählerstand '
compose:page/epot/ansicht_mandant:
pageBlock.3.title: Tabs
pageBlock.6.title: Zählerstände
pageBlock.7.title: Ladevorgänge
pageBlock.6.button.0.label: eAP Bericht Herunterladen
title: Ăśbersicht
pageBlock.1.content.body: <h1><strong>Hallo ${user.name},</strong> </h1>
pageBlock.2.title: Navigation
compose:page/epot/mandant_gebaude:
title: Gebäude
compose:module-field/epot/epot/epotLizenz:
label: abcd Lizenz
compose:module-field/epot/mandant/telefon:
label: Telefonnummer
compose:module-field/epot/pottie/objectID:
label: Objektbezeichnung
compose:page-layout/epot/413197379880812545/primary:
meta.title: Record page for module "Wallboxen"
compose:module-field/epot/mandant/userMieter:
label: Nutzer Mieter
compose:module-field/epot/mieter/userMandant:
label: Nutzer Mandant
compose:module-field/epot/rfid/rfidNutzer:
label: RFID Nutzer
compose:module-field/epot/rfid/userMieter:
label: Nutzer Mieter
compose:module/epot/zaehler:
name: Zähler
compose:module-field/epot/adresse/location:
label: Location
compose:module-field/epot/epot/wartung:
label: Wartung
compose:module-field/epot/ladung/endzeit:
label: Endzeit
compose:module-field/epot/zaehler/reportWasserzuleitung:
label: Wasserzuleitung
compose:page-layout/epot/413197356720652289/primary:
meta.title: Record page for module "Mandanten"
compose:module-field/epot/pottie/energietyp:
meta.options.HEATOIL.text: Ă–l
meta.options.HEATSTORE.text: Wärmespeicher
meta.options.WATERCONSUMPT.text: Wasserverbrauch
meta.options.GRID.text: Netz
meta.options.PV.text: Photovoltaik
meta.options.HEATHP.text: Wärmepumpe
meta.options.ACCONSUMPT.text: Klimaanlage
meta.options.HEATELEC.text: Heizstab
meta.options.HEATGAS.text: Gas
meta.options.HEATBIOGAS.text: Biogas
meta.options.PWRCONSUMPT.text: Stromverbrauch
meta.options.NOPOWER.text: Kein
meta.options.CHP.text: BHKW
meta.options.HEATWOOD.text: Holz
meta.options.HEATCONSUMPT.text: Wärme Verbrauch
meta.options.HEATOTHER.text: sonstige Heizung
label: Energietyp
meta.options.BATT.text: Batterie
meta.options.WALLBOX.text: Wallbox
compose:module-field/epot/pottie/userMieter:
label: Nutzer Mieter
compose:page-layout/epot/413197356721963009/primary:
meta.title: Record page for module "potties"
compose:page-layout/epot/mandant-epot/primary:
meta.title: abcd
compose:namespace/epot:
name: abcd
compose:module-field/epot/epot/anzahlPotties:
label: Anzahl Potties
compose:module-field/epot/ladung/uom:
label: Einheit
compose:page-layout/epot/413197379878191105/primary:
meta.title: Record page for module "Mandanten"
compose:module-field/epot/wartung/userMieter:
label: Nutzer Mieter
compose:module-field/epot/zaehler/reportWaermeerzeuger:
label: Wärmeerzeuger
compose:page/epot/413197379876880385:
title: Record page for module "Ladeinfrastruktur"
EDIT:
Nevermind. I could import the entire namespace, but whenever I try to add or read a record, I get an error: “Could not create record: cannot create data entry: model does not exist”. I wish there was a way to have a staging corteza server.
Do you mind sharing your approach? Which tables do you dump? I naively tried dumping the entire corteza DB but when I tried the push in into production, the site broke.