
I am working with our vendor who is trying to access the GP SBA API and is running into errors when trying to add an invoice. Can anyone point me in the right direction as to how to correct this error or a resource that can assist?
The curl code: (Text in grey has been modified for security purposes)
curl -X POST https://example.com/GPService/Tenants(DefaultTenant)/Companies(My%20Company)/Dynamics/Sales/SalesOrderProcessing/Transactions ^ -d "{ \"Payload\": { \"SOPTransactionHeader\":{ \"SOPType\": 3, \"SOPNumber\":\"JWLL1234567890\", \"DocumentID\":\"2\" } } }" ^ -k --ntlm --negotiate --user domain\user:password -v -H "Content-type:application/json" -H "Accept:application/json"
The error we are getting:
----------BEGIN CONTEXT EVENTS----------
09:37:40.300 | Process Started with ID:[9148], PATH:[C:\Program Files (x86)\Microsoft Dynamics\GP2016\Microsoft.Dynamics.GP.Svc.DexterityProcess.exe], CULTURE:[en-US]
09:37:40.300 | Arguments
{
ProcessLogFolder:[C:\ProgramData\Microsoft Dynamics\GPSvc\Logs\Inst_DEFAULT_16\DexterityProcesses]
RequestLogFolder:[C:\ProgramData\Microsoft Dynamics\GPSvc\Logs\Inst_DEFAULT_16\DexterityRequests]
ProcessSandboxFolder:[C:\ProgramData\Microsoft Dynamics\GPSvc\Sandbox\DEFAULT_16\mbvr34cy.le2]
StartHandleId:[Local\0621a58aedc04fd7bab65dbd263980b4]
StartupLoggingEnabled:[False]
InitialCorrelationId:[5c0aaeea24b14d7485f589e98893f06c]
Instance:[DEFAULT]
GPVersion:[16]
LogLevel:[Verbose]
ParentManagementAddress:[net.pipe://localhost/DEFAULT_16/Management]
}
09:37:40.331 | Sandbox Folder is at:[C:\ProgramData\Microsoft Dynamics\GPSvc\Sandbox\DEFAULT_16\mbvr34cy.le2]
09:37:40.331 | Temporary Directory Information
DesiredNewTemp= C:\ProgramData\Microsoft Dynamics\GPSvc\Sandbox\DEFAULT_16\mbvr34cy.le2\Temp
Path.GetTempPath()=C:\ProgramData\Microsoft Dynamics\GPSvc\Sandbox\DEFAULT_16\mbvr34cy.le2\Temp\
09:37:41.472 | CorrelationId: [5c0aaeea24b14d7485f589e98893f06c]
09:37:41.472 | ProxyId: [5c0aaeea24b14d7485f589e98893f06c]
09:37:41.472 | OperationNumber: [1]
09:37:41.472 | RuntimeDir: [C:\Program Files (x86)\Microsoft Dynamics\GP2016]
09:37:41.472 | HTTPVerb: [POST]
09:37:41.472 | Full URI: [https://gp.r2logistics.com/GPService/Tenants(DefaultTenant)/Companies(R2 Logistics)/Dynamics/Sales/SalesOrderProcessing/Transactions]
09:37:41.472 | Operation URI: [/Dynamics/Sales/SalesOrderProcessing/Transactions]
09:37:41.472 | CustomAction: []
09:37:41.472 | Tenant: [DefaultTenant]
09:37:41.472 | Company: [R2 Logistics]
09:37:41.472 | SetFile: [C:\Program Files (x86)\Microsoft Dynamics\GP2016\Dynamics.set]
09:37:41.472 | IniFile: [C:\Program Files (x86)\Microsoft Dynamics\GP2016\Data\Dex.ini]
09:37:41.472 | AuthType: [NTLM]
09:37:41.472 | RequestUser: [domain\username]
09:37:41.472 | ProcessUser: [domain\dynamicsgp]
09:37:41.472 | ProcessId: [9148]
09:37:41.472 | OperationTimeout: [00:00:00]
09:37:41.472 | ForceBackground: [False]
09:37:41.472 | ResponseFormat: [Json]
09:37:41.487 | Service executable: [1.0.296.0]
09:37:41.487 | DynamicsRuntime.dll: [16.00.0033.000]
-----------END CONTEXT EVENTS-----------
09:37:42.362 | [*Error*]::Unhandled service exception -- source is not a trigger procedure so the operation will fail.
09:37:42.378 | [*Error*]::Product 0 Form '25996' Script 'Cleanup' not found.
09:37:42.378 | [*Error*]::Product 0 Form '25996' did not close even after attempting cleanup. The process must terminate.
09:37:42.409 | [*Error*]::Request Exception (pipeline - unexpected) :: Microsoft.Dexterity.Bridge.DexterityException: Do you want to add this Invoice ID?
at DtwVSToolsScripts.Invoke(Int16 script_type, Int16 script_id, Int16 form_id, Argument[] argArray)
at AppDispatch.InvokeScript(Int16 scriptType, String scriptName, String formName, Argument[] arguments)
at Microsoft.Dexterity.Bridge.AppController.Invoke(Script script, Argument[] args, Int32 options)
at Microsoft.Dexterity.Applications.DynamicsDictionary.ServiceLogoutProcedure.Invoke(Field`1& Success)
at Microsoft.Dexterity.Applications.DynamicsDictionary.ServiceLogoutProcedure.Invoke(IRequestParser parser, IResponseBuilder builder)
at Microsoft.Dynamics.GP.Svc.DexterityProcess.OperationManagement.OperationManager.LogOff()
at Microsoft.Dynamics.GP.Svc.DexterityProcess.DexInterop.SecurityHandler.CallLogout()
at Microsoft.Dynamics.GP.Svc.DexterityProcess.DexInterop.Steps.LogoutStep.ExecuteInternal(ExecutionContext context)
at Microsoft.Dynamics.GP.Svc.DexterityProcess.DexInterop.ExecutionPipeline.Execute(ExecutionContext context)
09:37:42.425 | [*Error*]::***** PROCESS IS TERMINATING -- UNEXPECTED EXCEPTION CAUGHT OR DIRTY STATE DETECTED *****
*This post is locked for comments
I have the same question (0)What resources we can engage to find a solution to this problem? Are there more appropriate forums? Does Microsoft have further support documentation or personnel we can approach? Are there companies that would be able to point us in the right direction?