Question: i have written following stored procedure:
in which there are 2 tables arts and artist.artistId is a foreign key in arts table.

```
create procedure spInsertArts(
     @artsId int out,
     @name varchar(50),
     @category varchar(50),
     @artistId int
     )
     as
          begin
            declare @artistId int
    set @artistId=@@IDENTITY

            if exists(select artistId from artist)
              insert into arts(name,category,artistId) values(@name,@category,@artistId)
           end

```

I am getting error as:

> 
> Procedure or function spInsertArts has too many arguments specified.
> 
> 
> 

The code used to call this procedure is:

```
cmd.CommandType = System.Data.CommandType.StoredProcedure; 
cmd.Parameters.AddWithValue("@name", TextBox1.Text); 
cmd.Parameters.AddWithValue("@category", DropDownList1.SelectedValue); 
SqlParameter output = new SqlParameter(); 
output.ParameterName = "@artsId"; 
output.SqlDbType = System.Data.SqlDbType.Int; 
output.Direction = System.Data.ParameterDirection.Output; 
cmd.Parameters.Add(output); 
con.Open(); 
cmd.ExecuteNonQuery();

```

please help

Answer: 
The error is in /app/etc/modules/Emm\_Sales.xml file. XML tags are case sensitive, so you need to write codePool with capital letter, like this:

```
<?xml version="1.0"?> 
<config>
    <modules>
        <Emm_Sales>
            <active>true</active>
            <codePool>local</codePool>
        </Emm_Sales>
    </modules> 
</config>

```

In your file, you wrote codepool instead of codePool. That was the error.

And you should also need to add order\_history tag instead of just history:

```
<config>
    <global>
       <blocks>
          <sales>
                  <rewrite>
                      <order_history>Emm_Sales_Block_Order_History</order_history>
                  </rewrite>        
          </sales>
       </blocks>
    </global>
</config>

```
Try changing your /app/code/local/Emm/etc/config.xml file.

Change the tag history by order\_history

```
<?xml version="1.0"?>
<config>
    <global>
       <blocks>
          <sales>
                  <rewrite>
                      <order_history>Emm_Sales_Block_Order_History</order_history>
                  </rewrite>        
          </sales>
       </blocks>
    </global>
</config>

```