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: 
There are issue in `config.xml path`

it Should be

```
app/code/local/Emm/Sales/etc/config.xml

```

from `app/code/local/Emm/etc/config.xml`

Also Need to modify config.xml

```
<?xml version="1.0" ?>
<config>
    <modules>
        <Emm_Sales>
            <version>1.0.0</version>
        </Emm_Sales>
    </modules>
    <global>
     <blocks>
            <emmsales>
            <class>Emm_Sales_Block</class>
            </emmsales>
            <sales>
            <rewrite>
                          <order_history>Emm_Sales_Block_Order_History</order_history>
            </rewrite>        
        </sales>
    </blocks>
</config>

```

Try this
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>

```