One of our customers has inconsistently been receiving errors when posting to PM. We have been tracking this for months now. It can happen a few times and then will go away, just to appear a few weeks later. Something else odd is that they will receive errors, but then, if they wait a certain amount of time, then the errors go away and they are able to post. They are using a terminal server on a hyper v station. The sql server is also on the hyper v so I don't think there would a connection issue. I would normally think that something is running in the background on the servers to cause issues, but we have not found anything consistent.
Now, for the "fun" part. We have been combing through about a months worth of the dex.ini file that we have collected (we consistently copy and remove the file to keep space low - and also only implemented this after months of not being able to resolve the issue and not knowing when it will happen). There are a couple error messages that consistently pop up. I'm not sure if they are applicable to the issue or not. The newest discovery I had found was the "Could not find stored procedures" error message. I looked and compared to other clients and it seems like a large portion of stored procedures are missing. I definitely think this would be causing the issue except sometimes they can post and sometimes they cannot. In all honesty, this has really baffled everyone here. Any thoughts are appreciated.
I am thinking of trying to re-install the stored procedures. If anyone has any ideas on the best way to deal with that, please let me know. I think database maintenance was the normal way to correct that issue but we are on 18.2 and it was not in the upgrade.
Stored Procedure Errors (not the only stored procedure errors but a big portion of these ones)
SQLSTATE:(37000) Native Err:(2812) stmt(139737160):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Could not find stored procedure 'GRI.dbo.zDP_GL10000SS_1'
SQLSTATE:(37000) Native Err:(2812) stmt(139812064):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Could not find stored procedure 'GRI.dbo.zDP_WF100002SS_3'.
SQLSTATE:(37000) Native Err:(2812) stmt(139737160):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Could not find stored procedure 'GRI.dbo.zDP_GL00100SS_1'
SQLSTATE:(37000) Native Err:(2812) stmt(140404704):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Could not find stored procedure 'GRI.dbo.zDP_GL40000F_1'
SQLSTATE:(37000) Native Err:(2812) stmt(139731544):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Could not find stored procedure 'GRI.dbo.zDP_SY01300SS_1'
SQLSTATE:(37000) Native Err:(2812) stmt(139816744):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Could not find stored procedure 'GRI.dbo.zDP_SY00700SS_1'.
SQLSTATE:(37000) Native Err:(2812) stmt(139732480):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Could not find stored procedure 'GRI.dbo.zDP_PM10000F_1'
SQLSTATE:(37000) Native Err:(2812) stmt(139926312):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Could not find stored procedure 'GRI.dbo.zDP_PM10300F_8'
SQLSTATE:(37000) Native Err:(2812) stmt(139924440):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Could not find stored procedure 'GRI.dbo.zDP_PM80100SI'
SQLSTATE:(37000) Native Err:(2812) stmt(139930056):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Could not find stored procedure 'GRI.dbo.zDP_PM40102SS_1
SQLSTATE:(37000) Native Err:(2812) stmt(139929120):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Could not find stored procedure 'GRI.dbo.zDP_PM00200SS_1'
SQLSTATE:(37000) Native Err:(2812) stmt(139929120):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Could not find stored procedure 'GRI.dbo.zDP_PM00200SS_1'
Duplicate Key Errors:
SQLSTATE:(23000) Native Err:(2627) stmt(139814872):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Violation of PRIMARY KEY constraint 'PKPOA40001'. Cannot insert duplicate key in object 'dbo.POA40001'. The duplicate key value is (1).
SQLSTATE:(23000) Native Err:(2627) stmt(140490080):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Violation of PRIMARY KEY constraint 'PKPM30300'. Cannot insert duplicate key in object 'dbo.PM30300'. The duplicate key value is (0007208 , 1, 0006921 , 6)
SQLSTATE:(23000) Native Err:(2627) stmt(431907296):*/
[Microsoft][SQL Server Native Client 11.0][SQL Server]Violation of PRIMARY KEY constraint 'PKPM00204'. Cannot insert duplicate key in object 'dbo.PM00204'. The duplicate key value is (VENDORID , 3, 2020, 9, 13).*/