0

I used the LWC component which works on orgs of all types (sandboxes, scratches, etc) and used in screen flow. There were no errors when I've ever deployed to these orgs. BUT

When I've tried to create 2nd gen package version and received the error:

(Flow_Name) duplicate value found: <unknown> duplicates value on record with id: <unknown>
Flow_Name: duplicate value found: <unknown> duplicates value on record with id: <unknown>

All attempts to find problem lead to this LWC component and it gives the error even it is the only one appearance. After I deleted LWC component usage - all works.

Part of flow below:

<screens>
       ...
            <name>Client_Info_Yes</name>
            <extensionName>c:navigateButton</extensionName>
            <fieldType>ComponentInstance</fieldType>
       ...
</screens>

Could someone help with this issue?

1 Answer 1

3

The component reference in your flow is currently:

<extensionName>c:navigateButton</extensionName>

This needs to be updated to use the namespace prefix for your package. If your package namespace is "abc", update to:

<extensionName>abc:navigateButton</extensionName>

The prefix c is the no-namespace namespace placeholder.

3
  • It works, it is perfect but ambiguous solution. Thanks a lot! Could you please share a link to documentation where I can read about this?
    – oldgunner
    Mar 23, 2023 at 18:36
  • 1
    This is a "feature" of flows in packaging. It does not correctly handle namespaces. It is fine if you develop for packaging using namespaced scratch orgs, but does mean you have to mess about with the prefix if you take the metadata from one place to another where the namespaces are different.
    – Phil W
    Mar 23, 2023 at 20:22
  • 1
    This is not (yet) documented anywhere I have found. Not even on the partner forums.
    – Phil W
    Mar 23, 2023 at 20:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .