# Error with remake function in ODE Problems

**URL:** https://discourse.julialang.org/t/error-with-remake-function-in-ode-problems/103902
**Category:** Modelling & Simulations
**Tags:** modelingtoolkit, sbml
**Created:** [September 15, 2023, 3:19pm UTC](https://discourse.julialang.org/t/error-with-remake-function-in-ode-problems/103902 "2023-09-15T15:19:20Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Nick1](https://avatars.discourse-cdn.com/v4/letter/n/47e85d/32.png) [@Nick1](https://discourse.julialang.org/u/Nick1)
#### Post date: [September 15, 2023, 3:19pm UTC](https://discourse.julialang.org/t/error-with-remake-function-in-ode-problems/103902/1 "2023-09-15T15:19:20Z")

</div>

Hi everyone,

I am importing an SBML file and try to change the initial condition and remake the problem but I get the following error:

ERROR: ArgumentError: This problem does not support symbolic maps with `remake`, i.e. it does not have a symbolic origin. Please use `remake` with the `p` keyword argument as a vector of values, paying attention to parameter order.

It used to work but does not now. Here is an example of my code:

```julia
using SBMLToolkit
using DifferentialEquations, ModelingToolkit
using SBML, Symbolics, Catalyst

SBMLToolkit.checksupport_file("sbml_file.xml");
mdl = readSBML("sbml_file.xml");

rn = ReactionSystem(mdl);
odesys = convert(ODESystem, rn);

T=300.0; 
tspan = (0.0, T);
prob = ODEProblem(odesys, Float64[], tspan, Float64[]);

defs = ModelingToolkit.defaults(odesys);
getval(v) = defs[v];
pmap = parameters(odesys) .=> getval.(parameters(odesys));
u0map = states(odesys) .=> getval.(states(odesys));

p = getval.(parameters(odesys));
p[1] = 10.0 ; # change the value of an initial condition to 10.0

for (idx, param) in enumerate(p)
    pmap[idx] = pmap[idx][1] => param
end
prob2 = remake(prob; p=pmap, u0=u0map)

```
