본문 바로가기

Development/AX 2012

AX2012: 전기(Post)기능 temp table 관련 오류

If you face above error when you try to post, you may be able to see the error which says you cannot delete because that there isn't specific table in temp db or no permission

 

Reason: Since SQL server was terminated while AOS service is running or unexpectedly, AOS is trying to refer to legacy cache.

 

Solution: Restart AOS and SQL Server

 

현상: "전기" ​기능을 클릭했을 때 위와 같은 오류가 발생하면서 기능이 동작하지 않습니다.

이벤트뷰어를 찾아보면 TempDB에서 어떤 테이블이 존재하지 않거나 권한이 없어서 삭제할 수 없다는 오류를 확인할 수 있습니다.

 

원인: AOS가 실행 중에 있을 때 SQL​ Server가 종료되거나 비정상적으로 종료 되었을 때 AOS에서 Temp 테이블에 대한 잘못된 cache를 계속해서 참조하려고 해서 발생하는 오류입니다.

 

해결: ​AOS와 SQL Server를 재시작하면 AOS가 다시 Temp 테이블에 대한 cache 데이터를 바르게 참조할 수 있게 됩니다.