# "Unknown procedure label" for a procedure called from hand-written embed code

**URL:** <https://forums.softvelocity.com/t/unknown-procedure-label-for-a-procedure-called-from-hand-written-embed-code/416>\
**Category:** Knowledge Base\
**Tags:** templates, unverified\
**Created:** [November 9, 2026, 12:56am UTC](https://forums.softvelocity.com/t/unknown-procedure-label-for-a-procedure-called-from-hand-written-embed-code/416 "2026-11-09T00:56:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rzaunere](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rzaunere](https://forums.softvelocity.com/u/rzaunere)\
**Post date:** [November 9, 2026, 12:56am UTC](https://forums.softvelocity.com/t/unknown-procedure-label-for-a-procedure-called-from-hand-written-embed-code/416/1 "2026-11-09T00:56:35Z")

</div>

**Applies to:** posted in the Clarion 6 group (September 2007); the poster used C6.3.

**Problem**

In an embed for a button on a form the poster called two procedures by name, EmailSend2 and textformsend, after selecting a record. The compile gave an unknown procedure label error for both, although the procedures exist. When he used the Call a Procedure extended template for one, its error went away; the other still failed until it was called through the template too.

**Solution**

1. The procedures are not in the map for the calling procedure. Open the calling procedure's Procedures button and add the other procedures to the list.
2. Alternatively, check "Declare Globally" on each of the called procedures.
3. The poster added them to the list and it worked.

**Caveats**

- The poster took it for a new C6 feature. Two replies said it has always been there: adding a procedure to the calling procedure puts it in the map, and it has existed since at least C5, maybe C4.
- A reply suggested checking the Create Local Maps option on the Generation tab of the application options in case it had been switched off.

**Today (2026)**

Likely unchanged; not re-tested.

**Sources:** Ray R. (Sep 2007, the question), Lee W., Abe J., Carl B. (Sep 2007) in softvelocity.public.clarion6.
