It seems that your dataset supports less parameters that the one at the sampleserver. This is independent from the JavaScript API that you use and probably would happen in any application. I would check the Network Dataset, rebuild it and ask in the corresponding Network Analyst forum and/or later in the REST API forum. I guess you will get better answers there.