web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Cannot create job to clear PJOURNAL

(1) ShareShare
ReportReport
Posted on by

Attempts to run PJjob.sql (GP 2013R2) fail repeatedly.  I ran the script from the Util folder in GP 2013 R2 (12.00.2038) against SQL 2014 (compatibility OK, I checked), and the following error is thrown. 

 

Msg 14262, Level 16, State 1, Procedure sp_verify_jobstep, Line 294

The specified @database_name ('%DBNAM%') does not exist.

 

Parsing the query comes up clean.  The job name creates, but there are no steps, so of course it will not run.  I have tried several copies of this file in the event the first was damaged - no joy.

Select @@servername returns the correct server name and instance for the results obtained in Select * from master..sysservers so we can rule out a renamed server.

I have also tried to run the earlier version of the job that creates one job for each GP company.  That one fails as well with an error related to companies existing in the SY01500 that are not on the SQL instance, however I have checked DYNAMICS..SY01500 with the databases known to the SQL instance and they match.

Any ideas?  Thanks in advance!

*This post is locked for comments

I have the same question (0)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Dan Liebl Profile Picture

Dan Liebl 2

#2
Shravan Attelli Profile Picture

Shravan Attelli 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans