Skip to main content

Notifications

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

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans