OLE IDispatch exception code 0 from wwDotNetBridge: Server was unable to process request. ---> Unexpected Exception: Failed to enable constraints. One or more rows contain values violating non-null, unique, or foreign-key constraints. Failed to enab".
Strange error, I am only retrieving data not saving.
Any idea?
Paul
LOCAL loBridge as wwDotNetBridge DO sanitel_sanitelservicesproxy.prg loservice = CREATEOBJECT('sanitel_sanitelservicesproxy') &&"http://qas.sanitrace.be/int/QAS_Sanitel_ExtInterfacingSvcs/SanitelServices.asmx" loBridge = loservice.oBridge loService.oService.HttpLogin("WS4SNTRC","ed5R#CK5",.T.) lExport = loBridge.createinstance("Sanitel_SanitelServices.ExportAnimalOverviewAnimalOverviewExportRequest") lExport.User = "TESTXML" lResult = loBridge.createinstance("Sanitel_SanitelServices.AnimalOverviewExport") lAnimal = loBridge.createinstance("Sanitel_SanitelServices.ExportAnimalOverviewAnimalOverviewExportRequestAnimal") lAnimal.ANTP_CDE ="BOV" lAnimal.SNUN_CDE = "BE10147113-0101" loBridge.CreateArrayOnInstance(lExport,"Animal",1) loBridge.SetPropertyEx(lExport,"Animal[0]",lAnimal) loBridge.Addarrayitem(lExport,"Animal",lAnimal) lResult = loservice.ExportAnimalOverview(lExport)