Hi,
AX 2012 R3
getting following error when posting vendor invoice
Bad repsonse. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'AuditInvoiceReversalFromDatabaseGenerator': Invocation of init method failed; nested exception is javax.persistence.PersistenceException: org.hibernate.exception.GenericJDBCException: could not execute batch.
Steps
Open PO
Go to the ‘invoice’ tab and ‘Generate Invoice’…
On the invoice form, enter an ‘invoice #’, ‘description’ and ‘date’, then try to “Post”...
I debug the code and reach the point where it is calling service. Ii am not sure how to debug further .. or fix this issue. please help.
like
\Classes\SysOperationServiceController\runOperationWithRunAs
private void runOperationWithRunAs()
{
container returnValue;
// running on the server interpreter or in BC.NET. Try to marshall to an
// IL session
returnValue = SysOperationRPCFrameworkService::runServiceOperation(classIdGet(this), this.pack());
// Unpack return value and call after operation. After operation is called in the caller's session
this.unPackServiceReturnValue(returnValue);
}
>>>
\Classes\SysOperationRPCFrameworkService\runServiceOperation
public static container runServiceOperation(ClassId controllerClassId, container packedController)
{
// Use the runas API to transition to a CLR session
new XppILExecutePermission().assert();
return SysDictClass::invokeStaticMethodIL(classStr(SysOperationServiceController), staticMethodStr(SysOperationServiceController, runServiceOperation),[controllerClassId, packedController]);
}