November Happy Hour will be moved to Thursday December 5th.

Scheduled jobs with parameters problem

Vote:
 

I have three scheduled jobs with input parameters. I followed this guide:

https://blog.mathiaskunto.com/2012/02/13/supplying-episerver-scheduled-jobs-with-parameters-through-admin-mode/

I has worked and showed the input, but all of a sudden the input is not shown anymore. The values are still saved and used when running the job. But there is no way of changing them now.

Im running CMS 7.13.1.

#90431
Sep 09, 2014 14:47
Vote:
 

Is the AdapterMappings.browser file present in App_Browsers folder or has it been deleted or overwritten?

If you put a breakpoint in DatabaseJobAdapter.OnInit does it the debugger stop there when you click on the Job in Admin Mode?

#90441
Sep 09, 2014 21:49
Vote:
 

The values are stored in EPiServers DynamicDataStore, which is why they are still being persisted and used. I think Fredrik is correct, the adapter mappings being faulty or missing is likely the cause of the problem; that mapping is what connects EPiServer's code with the DatabaseJobAdapter so that the fields can be injected into the page.

Here is an example mapping at GitHub.

Did you install the NuGet package or do you work with the source code? Anything useful in the logs?

#90449
Sep 10, 2014 7:33
Vote:
 

The Adapatermappings is correct and nothing in the logs. I tried the breakpoint and nothing. But when I tried entering a faulty adapter on purpose and it displayed an error. But when changing back it worked all of sudden.

#90482
Sep 10, 2014 14:06
Vote:
 

Hm, I'm not sure I like problems that solve themselves ;) Glad to hear you got it working though! Should you figure out the cause, please tell, it would be interesting to know.

#90508
Sep 11, 2014 7:21
Vote:
 

If it happens again, shutdown VS and IIS then delete all ASP.NET Temporary Files. 

Strange things can happen if you have optimizeCompilation enabled on the compilation-tag in your web.config files. This behavior sounds like that. 

#90592
Sep 12, 2014 17:07
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.