Report 296 Jobsceduler doesn't run
BlackBird
Member Posts: 52
Hi Forum,
I'm trying to automate the process of posting salesorders. Therefore i want to run report 296 throught the jobsceduler.
This does'n't work however. Job sceduler management keeps saying: "The job scheduler stopped due to an error. The program has moved the job to the next run date and time.".
When activating the jobsceduler report 296 stops when executing the command "IF SalesPost.RUN("Sales Header") THEN BEGIN"
Does anyone have any idea why this doesn't work and how to fix/change it?
Best Regards,
Hans
I'm trying to automate the process of posting salesorders. Therefore i want to run report 296 throught the jobsceduler.
This does'n't work however. Job sceduler management keeps saying: "The job scheduler stopped due to an error. The program has moved the job to the next run date and time.".
When activating the jobsceduler report 296 stops when executing the command "IF SalesPost.RUN("Sales Header") THEN BEGIN"
Does anyone have any idea why this doesn't work and how to fix/change it?
Best Regards,
Hans
0
Comments
-
This turns out te be a known Navision error. The resolution was published under KB-article 906876.
Hans0 -
Where do i find KB-article 906876.0
-
-
I do not have rights to open this link, could anyone open it for me and copy the info into the forum.0
-
As an end user myself, I can tell you, that you won't have access to many knowledge base articles regarding Navision, it seems we are left to have to use our solution center to trouble shoot most of our problemsKeesMeuzelaar wrote:I do not have rights to open this link, could anyone open it for me and copy the info into the forum.0 -
This is from the article. You have to have a Solution Developer's license though:
To install this hotfix, change the code in the JobScheduler-Run code unit (5961) as follows:
Trigger OnRun(VAR Rec : Record "Job Scheduler Setup")
Existing code
LOCKTABLE;
GET(ID);
CASE "Object Type" OF
"Object Type"::Report:
REPORT.RUNMODAL("Object No.",FALSE,FALSE);
"Object Type"::Dataport:
DATAPORT.RUNMODAL("Object No.",FALSE);
"Object Type"::Codeunit:
CODEUNIT.RUN("Object No.");
END;
"Message Text" := Text002;
MODIFY;
Replacement code
CASE "Object Type" OF
"Object Type"::Report:
REPORT.RUNMODAL("Object No.",FALSE,FALSE);
"Object Type"::Dataport:
DATAPORT.RUNMODAL("Object No.",FALSE);
"Object Type"::Codeunit:
CODEUNIT.RUN("Object No.");
END;
"Message Text" := Text002;
MODIFY;
Note Always test code fixes in a controlled environment before you apply the fixes to your production computers.0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 611 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 253 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
